:root {
  color-scheme: light;
  --ink: #071813;
  --muted: #5d6760;
  --paper: #fffdf4;
  --cloud: #eef8ef;
  --aqua: #00a8a8;
  --coral: #dc7f4b;
  --gold: #d9ad55;
  --forest: #044735;
  --pine: #01261f;
  --limestone: #f5ead4;
  --line: rgba(7, 24, 19, 0.13);
  --shadow: 0 24px 72px rgba(1, 38, 31, 0.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 0%, rgba(0, 168, 168, 0.12), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(217, 173, 85, 0.14), transparent 28%),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.topbar {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  width: min(1120px, calc(100% - 32px));
  min-height: 66px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 253, 244, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(13, 41, 38, 0.12);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; text-transform: uppercase; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 128px;
  height: 42px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #dff8fb);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: white;
  font-size: 0.86rem;
  box-shadow: 0 12px 28px rgba(0, 153, 199, 0.16);
}
.brand-mark > span:last-child {
  color: var(--forest);
  font-weight: 950;
  letter-spacing: 0;
}
.buddy-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua), var(--forest));
  color: white;
  font-size: 0.72rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.34);
}
.brand > span:last-child {
  text-transform: none;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-style: italic;
  color: #101715;
}
.nav-links { display: flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 700; font-size: 0.92rem; }
.nav-links a, .nav-action { padding: 12px 14px; border-radius: 999px; }
.nav-links a:hover { background: rgba(0, 168, 168, 0.09); color: var(--ink); }
.nav-action { color: white; background: linear-gradient(135deg, var(--forest), var(--aqua)); font-weight: 800; }

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 128px 24px 54px;
}
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(1, 31, 25, 0.88), rgba(4, 71, 53, 0.55) 46%, rgba(0, 168, 168, 0.06)),
    linear-gradient(0deg, rgba(255, 253, 244, 0.95) 0%, rgba(255, 253, 244, 0) 26%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: end;
  gap: 34px;
}
.hero-copy { color: white; max-width: 680px; padding-bottom: 42px; }
.eyebrow {
  margin: 0 0 12px;
  color: #f1c46a;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}
h1, h2, h3, h4, p { margin-top: 0; }
h1 {
  margin-bottom: 18px;
  font-size: clamp(3.25rem, 7vw, 6.5rem);
  line-height: 0.88;
  text-transform: uppercase;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.28);
}
.hero-lede { max-width: 620px; font-size: clamp(1.1rem, 2vw, 1.38rem); line-height: 1.55; color: rgba(255, 255, 255, 0.9); }
.hero-actions, .field-row, .card-header, .phone-body, footer, .form-topline { display: flex; align-items: center; }
.hero-actions { flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.button, .trip-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 850;
}
.button.primary, .trip-card button { background: linear-gradient(135deg, var(--forest), var(--aqua)); color: white; }
.button.secondary {
  background: rgba(255, 255, 255, 0.16);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.34);
}
.wide { width: 100%; }

.trip-card, .search-panel, .profile-form, .profile-preview-panel, .post-composer, .match-list, .tools-panel, .community-search, .business-form, .business-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 244, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.trip-card {
  border-color: rgba(255, 255, 255, 0.28);
  padding: 20px;
  color: var(--ink);
}
.card-header, .form-topline { justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-header span, .tag, .verified {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 168, 168, 0.1);
  color: #05726c;
  font-size: 0.78rem;
  font-weight: 900;
}
label { display: grid; gap: 8px; color: var(--muted); font-size: 0.84rem; font-weight: 800; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
  font-weight: 750;
}
textarea { padding: 12px; resize: vertical; line-height: 1.45; }
.field-row { gap: 12px; margin-top: 12px; }
.field-row label { flex: 1 1 0; min-width: 0; }
.match-meter { margin: 18px 0; display: grid; gap: 8px; color: var(--forest); font-size: 0.9rem; font-weight: 850; }
.match-meter div { height: 10px; overflow: hidden; border-radius: 999px; background: rgba(18, 60, 51, 0.12); }
.match-meter i { display: block; width: 20%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--forest), var(--aqua), var(--gold), var(--coral)); transition: width 0.3s ease; }
.live-match-list {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}
.live-match-card {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}
.live-match-card h4 {
  margin: 0 0 2px;
  font-size: 0.92rem;
}
.live-match-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}
.live-match-card strong {
  color: var(--forest);
  font-size: 0.86rem;
}
.live-match-empty {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

section:not(.hero) { padding: 82px 24px; }
.search-band { padding-top: 30px !important; padding-bottom: 34px !important; background: linear-gradient(180deg, var(--paper), #f7fff8); }
.search-panel, .app-shell, .feed-layout, .tools-layout, .map-layout, .community-layout, .business-layout, .market-grid, .local-row, .agents, footer, .section-heading {
  width: min(1120px, 100%);
  margin: 0 auto;
}
.search-panel {
  margin-top: -78px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
}
.segmented { display: grid; grid-template-columns: repeat(4, minmax(78px, 1fr)); gap: 6px; padding: 6px; border-radius: 8px; background: #e7f6ee; }
.segmented button { min-height: 40px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-weight: 850; }
.segmented button.active { color: white; background: linear-gradient(135deg, var(--forest), #047466); }
.quick-fields { display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: end; gap: 12px; }
.toggle { width: 48px; accent-color: var(--aqua); }

.section-heading { margin-bottom: 34px; }
.section-heading.compact { margin: 0 0 20px; }
.section-heading h2, .agents h2 { max-width: 780px; margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 0.98; }
.section-heading p:not(.eyebrow), .agents p { max-width: 760px; color: var(--muted); font-size: 1.06rem; line-height: 1.65; }

.platform-overview {
  background:
    radial-gradient(circle at 86% 0%, rgba(0, 184, 212, 0.15), transparent 30%),
    linear-gradient(180deg, var(--paper), #f2fffe);
}
.overview-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.overview-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 42px rgba(0, 93, 117, 0.09);
}
.overview-card span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean), var(--aqua));
  color: white;
  font-weight: 950;
}
.overview-card h3 {
  margin-bottom: 8px;
  font-size: 1.28rem;
}
.overview-card p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.profile-showcase {
  background:
    radial-gradient(circle at 8% 18%, rgba(125, 228, 232, 0.22), transparent 28%),
    linear-gradient(180deg, #f2fffe, #fbfffb 58%, #eef9f2);
}
.showcase-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}
.showcase-phone {
  min-height: 620px;
  padding: 18px;
  border: 10px solid var(--forest);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 76px rgba(0, 93, 117, 0.22);
}
.showcase-media {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 14px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(1, 43, 46, 0), rgba(1, 43, 46, 0.72)),
    url("assets/buddyup-hero.png") center / cover;
}
.showcase-body {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 8px 12px;
}
.showcase-body h3 {
  margin-bottom: 5px;
  font-size: 1.58rem;
}
.showcase-body p {
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 0;
}
.showcase-tags {
  display: grid;
  gap: 8px;
}
.showcase-tags span {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #dff8fb;
  color: #006f8d;
  font-weight: 700;
  font-size: 0.9rem;
}
.showcase-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.showcase-feature-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 44px rgba(0, 93, 117, 0.08);
}
.showcase-feature-card span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), var(--ocean));
  color: white;
  font-weight: 760;
}
.showcase-feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}
.showcase-feature-card p {
  color: var(--muted);
  line-height: 1.6;
}

.app-section { background: linear-gradient(180deg, var(--paper), #f4f8e9 45%, #e4f7f4); }
.app-shell { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 18px; align-items: start; }
.profile-form, .profile-preview-panel, .post-composer, .match-list { padding: 22px; }
.profile-form h3, .profile-preview-panel h3, .match-list h3 { margin-bottom: 0; }
.ghost-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--forest);
  padding: 0 14px;
  font-weight: 850;
}
.avatar-uploader { display: grid; grid-template-columns: 86px 1fr; gap: 14px; align-items: center; margin-bottom: 18px; }
.avatar-uploader input { display: none; }
.avatar-drop, .profile-cover {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), var(--aqua));
  color: white;
  font-size: 1.4rem;
  font-weight: 950;
}
.avatar-drop { width: 86px; height: 86px; cursor: pointer; }
.avatar-drop img, .profile-cover img { width: 100%; height: 100%; object-fit: cover; display: none; }
.avatar-uploader p { margin: 4px 0 0; color: var(--muted); line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.profile-form > label { margin-bottom: 14px; }
.check-row { display: grid; gap: 10px; margin: 16px 0; }
.check-row label { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.check-row input { width: auto; min-height: 0; accent-color: var(--aqua); }
.save-note { margin: 12px 0 0; color: var(--forest); font-weight: 850; }

.profile-preview-panel { display: grid; gap: 16px; }
.profile-card-live, .media-board, .feature-grid article, .listing, .local-row article, .agent-card, .post-card, .match-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}
.profile-card-live {
  padding: 18px;
  border: 10px solid var(--forest);
  border-radius: 38px;
  background: white;
  box-shadow: 0 24px 70px rgba(0, 93, 117, 0.18);
}
.profile-cover {
  width: 100%;
  height: auto;
  min-height: 340px;
  margin-bottom: 18px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(1, 43, 46, 0), rgba(1, 43, 46, 0.7)),
    url("assets/buddyup-hero.png") center / cover;
  align-items: end;
  justify-items: start;
  padding: 14px;
}
.profile-cover img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.profile-cover > span:not(.profile-media-stats span) {
  position: relative;
  z-index: 1;
}
.profile-media-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  align-items: center;
}
.profile-media-stats span {
  color: white;
  background: rgba(1, 43, 46, 0.66);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 0.76rem;
  font-weight: 760;
}
.profile-live-body { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.profile-live-body h3 { margin-bottom: 5px; font-size: 1.55rem; }
.profile-live-body p { color: var(--muted); margin-bottom: 0; }
#liveBio { color: var(--muted); line-height: 1.55; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-row span { border-radius: 999px; background: #e7f6ee; color: var(--forest); padding: 8px 10px; font-weight: 850; font-size: 0.82rem; }
.media-board { padding: 16px; }
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.media-grid img, .media-grid video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--cloud); }
.empty-state { grid-column: 1 / -1; min-height: 120px; display: grid; place-items: center; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; padding: 16px; }

.feed-section { background: #f7fbf6; }
.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 18px; align-items: start; }
.post-composer { margin-bottom: 16px; }
.post-composer button { margin-top: 12px; }
.post-list { display: grid; gap: 12px; }
.post-card { padding: 16px; }
.post-card strong { display: block; margin-bottom: 8px; }
.post-card p { color: var(--muted); line-height: 1.55; margin-bottom: 8px; }
.post-card span { color: var(--forest); font-size: 0.8rem; font-weight: 850; }
.match-list { display: grid; gap: 12px; }
.match-list article { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px; box-shadow: none; }
.match-list h4 { margin: 0 0 3px; }
.match-list p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.35; }
.avatar { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--forest), var(--aqua)); color: white; font-weight: 900; font-size: 1.2rem; }
.avatar.small { width: 44px; height: 44px; margin: 0; font-size: 0.9rem; }

.travel-tools {
  background:
    radial-gradient(circle at 85% 10%, rgba(0, 168, 168, 0.16), transparent 28%),
    linear-gradient(180deg, #fff8ec, var(--paper));
}

.business-section,
.agent-builder {
  background:
    radial-gradient(circle at 12% 4%, rgba(125, 228, 232, 0.18), transparent 30%),
    linear-gradient(180deg, var(--paper), #f7fff8);
}
.business-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 18px;
  align-items: start;
}
.business-form,
.business-preview {
  padding: 22px;
}
.business-form > label {
  margin-bottom: 14px;
}
.business-list {
  display: grid;
  gap: 12px;
}
.business-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}
.business-card h4 {
  margin: 0 0 6px;
}
.business-card p {
  margin-bottom: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.business-card a {
  color: #006f8d;
  font-weight: 850;
}
.business-card .community-meta {
  margin-bottom: 10px;
}
.tools-layout {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.tools-panel {
  padding: 22px;
}
.tools-grid {
  display: grid;
  gap: 12px;
}
.tool-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tool-cards article {
  min-height: 220px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 42px rgba(1, 38, 31, 0.09);
}
.tool-cards h3 {
  margin-bottom: 8px;
  font-size: 1.24rem;
}
.tool-cards p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}
.tool-cards button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--forest), var(--aqua));
  color: white;
  font-weight: 850;
}
.tool-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--limestone);
  color: var(--forest);
  font-weight: 950;
}

.map-section {
  background:
    radial-gradient(circle at 15% 20%, rgba(217, 173, 85, 0.16), transparent 32%),
    linear-gradient(180deg, var(--paper), #e9f8f5);
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 390px;
  gap: 18px;
  align-items: stretch;
}
.map-panel,
.map-results {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.world-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  background: rgba(255, 253, 244, 0.94);
}
.quick-destinations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 16px;
  background: rgba(255, 253, 244, 0.94);
}
.quick-destinations button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--forest);
  padding: 0 12px;
  font-weight: 850;
}
.quick-destinations button.active {
  background: linear-gradient(135deg, var(--forest), var(--aqua));
  color: white;
}
.world-map-frame {
  display: block;
  width: 100%;
  min-height: 490px;
  border: 0;
  background: var(--cloud);
}
.map-results {
  padding: 22px;
}
.map-results > p {
  color: var(--muted);
  line-height: 1.55;
}
.map-profile-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.map-open-link {
  width: 100%;
  margin-top: 8px;
  color: var(--forest);
  border-color: var(--line);
  background: white;
}
.map-profile-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 244, 0.72);
}
.map-profile-card h4 {
  margin: 0 0 3px;
}
.map-profile-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}
.map-profile-card strong {
  color: var(--forest);
}

.community-section {
  background:
    radial-gradient(circle at 80% 0%, rgba(220, 127, 75, 0.12), transparent 28%),
    linear-gradient(180deg, #e9f8f5, #fffdf4);
}
.community-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.community-search {
  padding: 22px;
  display: grid;
  gap: 14px;
}
.inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.inline-check input {
  width: auto;
  min-height: 0;
  accent-color: var(--aqua);
}
.community-main {
  display: grid;
  gap: 14px;
}
.community-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}
.community-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}
.community-tabs button.active {
  color: white;
  background: linear-gradient(135deg, var(--forest), var(--aqua));
}
.community-results {
  display: grid;
  gap: 14px;
}
.community-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 42px rgba(1, 38, 31, 0.08);
}
.community-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--forest), var(--aqua));
  color: white;
  font-weight: 950;
  font-size: 1.2rem;
}
.community-card h3 {
  margin: 0 0 5px;
}
.community-card p {
  margin-bottom: 10px;
  color: var(--muted);
  line-height: 1.52;
}
.community-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.community-meta span {
  border-radius: 999px;
  background: #e7f6ee;
  color: var(--forest);
  padding: 7px 9px;
  font-size: 0.76rem;
  font-weight: 850;
}
.feed-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}
.feed-card header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.feed-card h3 {
  margin: 0;
  font-size: 1.05rem;
}
.feed-card small {
  color: var(--muted);
  font-weight: 800;
}
.media-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.media-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(1, 38, 31, 0.05), rgba(1, 38, 31, 0.68)),
    url("assets/buddyup-hero.png") center / cover;
}
.media-tile span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: white;
  font-weight: 900;
  line-height: 1.2;
}
.empty-community {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
}

.marketplace { background: radial-gradient(circle at 20% 0%, rgba(0, 168, 168, 0.18), transparent 34%), linear-gradient(180deg, rgba(1, 38, 31, 0.98), rgba(4, 71, 53, 0.96)), var(--pine); color: white; }
.marketplace .section-heading p { color: rgba(255, 255, 255, 0.74); }
.market-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.listing { min-height: 250px; color: var(--ink); padding: 22px; background: linear-gradient(180deg, rgba(255, 253, 244, 0.88), rgba(255, 253, 244, 0.98)), var(--limestone); }
.listing.large { grid-row: span 2; min-height: 516px; display: flex; flex-direction: column; justify-content: end; background: linear-gradient(180deg, rgba(1, 38, 31, 0.04), rgba(1, 38, 31, 0.88)), url("assets/buddyup-hero.png") center / cover; color: white; }
.listing.large p { color: rgba(255, 255, 255, 0.82); }
.listing.luxury { background: linear-gradient(135deg, rgba(255, 253, 244, 0.96), rgba(0, 168, 168, 0.12), rgba(217, 173, 85, 0.18)), white; }
.listing h3, .local-row h3, .agent-card h3 { margin-bottom: 10px; font-size: 1.32rem; }
.listing p, .local-row p, .agent-card li { color: var(--muted); line-height: 1.58; }
.listing strong { display: block; margin-top: 18px; font-size: 1.15rem; }

.locals { background: linear-gradient(180deg, #f7fbf6, #fff8ec); }
.local-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.local-row article { padding: 22px; }
.agents { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center; }
.agent-card { padding: 22px; background: linear-gradient(135deg, rgba(0, 168, 168, 0.12), rgba(217, 173, 85, 0.14)), var(--forest); color: white; box-shadow: var(--shadow); }
.agent-card .tag { background: rgba(242, 184, 75, 0.14); color: var(--gold); }
.agent-card ul { padding-left: 20px; margin: 20px 0 26px; }
.agent-card li { color: rgba(255, 255, 255, 0.78); margin-bottom: 10px; }
footer { justify-content: space-between; gap: 16px; padding: 28px 24px 40px; color: var(--muted); }
footer strong { color: var(--ink); }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .hero-grid, .search-panel, .app-shell, .feed-layout, .tools-layout, .map-layout, .community-layout, .business-layout, .market-grid, .agents { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-copy { padding-bottom: 0; }
  .trip-card { max-width: 520px; }
  .search-panel { margin-top: -52px; }
  .quick-fields, .local-row, .form-grid, .tool-cards, .media-wall, .overview-grid { grid-template-columns: 1fr; }
  .listing.large { min-height: 360px; }
}

@media (max-width: 560px) {
  .topbar { top: 10px; width: calc(100% - 20px); border-radius: 8px; gap: 8px; }
  .brand span:last-child { max-width: 96px; line-height: 1.05; }
  .nav-action { padding: 10px 11px; font-size: 0.86rem; }
  .hero { padding: 110px 16px 36px; }
  .hero-shade { background: linear-gradient(180deg, rgba(1, 31, 25, 0.58), rgba(1, 31, 25, 0.76)), linear-gradient(0deg, rgba(255, 253, 244, 0.94) 0%, rgba(255, 253, 244, 0) 20%); }
  section:not(.hero) { padding: 58px 16px; }
  .field-row, .card-header, footer, .profile-live-body { align-items: stretch; flex-direction: column; }
  .segmented { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .avatar-uploader { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .world-search { grid-template-columns: 1fr; }
  .world-map-frame { min-height: 360px; }
  .community-card { grid-template-columns: 1fr; }
  .community-tabs { grid-template-columns: 1fr; }
}

/* Brighter BuddyUp direction: Caribbean water, open sky, soft luxury. */
:root {
  --ink: #071b22;
  --muted: #5a6970;
  --paper: #fbfffb;
  --cloud: #eaf9f7;
  --aqua: #00b8d4;
  --ocean: #0099c7;
  --lagoon: #7de4e8;
  --forest: #063f35;
  --palm: #0a6d4f;
  --pine: #012b2e;
  --shadow: 0 26px 80px rgba(0, 93, 117, 0.18);
}

body {
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 184, 212, 0.16), transparent 30%),
    radial-gradient(circle at 90% 8%, rgba(125, 228, 232, 0.2), transparent 28%),
    var(--paper);
}

.topbar {
  background: rgba(251, 255, 251, 0.84);
  box-shadow: 0 12px 36px rgba(0, 93, 117, 0.12);
}

.nav-action,
.button.primary,
.trip-card button,
.segmented button.active,
.community-tabs button.active,
.tool-cards button {
  background: linear-gradient(135deg, var(--ocean), var(--aqua));
  box-shadow: 0 12px 30px rgba(0, 153, 199, 0.24);
}

.hero {
  min-height: 96vh;
  padding-bottom: 72px;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(1, 43, 46, 0.74), rgba(6, 63, 53, 0.36) 48%, rgba(0, 184, 212, 0.02)),
    linear-gradient(0deg, rgba(251, 255, 251, 0.96) 0%, rgba(251, 255, 251, 0) 24%);
}

.eyebrow {
  color: #9af4ff;
}

h1 {
  text-shadow: 0 5px 0 rgba(0, 71, 83, 0.28);
}

.trip-card,
.search-panel,
.profile-form,
.profile-preview-panel,
.post-composer,
.match-list,
.tools-panel,
.community-search,
.map-panel,
.map-results {
  background: rgba(251, 255, 251, 0.88);
}

.card-header span,
.tag,
.verified {
  background: rgba(0, 184, 212, 0.12);
  color: #006f8d;
}

.match-meter i {
  background: linear-gradient(90deg, var(--ocean), var(--lagoon), var(--gold), var(--coral));
}

.segmented,
.pill-row span {
  background: #dff8fb;
}

.pill-row span {
  color: #006f8d;
}

.search-band {
  padding-top: 42px !important;
  background: linear-gradient(180deg, var(--paper), #f2fffe);
}

.app-section {
  background: linear-gradient(180deg, var(--paper), #ecfbff 45%, #f8fff4);
}

.avatar-drop,
.profile-cover,
.avatar,
.community-avatar,
.tool-icon {
  background: linear-gradient(135deg, var(--ocean), var(--aqua));
}

.page-profile main,
.page-discover main,
.page-map main,
.page-community main,
.page-tools main,
.page-businesses main,
.page-getaways main,
.page-agents main {
  padding-top: 96px;
}

.page-home #profile-app,
.page-home .feed-section,
.page-home #travel-tools,
.page-home #map,
.page-home #community,
.page-home #businesses,
.page-home #agent-builder {
  display: none;
}

.page-profile main > section,
.page-discover main > section,
.page-map main > section,
.page-community main > section,
.page-tools main > section,
.page-businesses main > section,
.page-getaways main > section,
.page-agents main > section {
  display: none;
}

.page-profile #profile-app,
.page-profile .feed-section,
.page-discover #match,
.page-discover #stays,
.page-map #map,
.page-community #community,
.page-tools #travel-tools,
.page-businesses #businesses,
.page-getaways #stays,
.page-getaways #locals,
.page-agents #agents,
.page-agents #agent-builder {
  display: block;
}

.page-discover #match {
  padding-top: 82px !important;
}

.page-discover .search-panel {
  margin-top: 0;
}

.page-profile footer,
.page-discover footer,
.page-map footer,
.page-community footer,
.page-tools footer,
.page-businesses footer,
.page-getaways footer,
.page-agents footer {
  border-top: 1px solid var(--line);
}

/* Softer premium typography pass: confident, less shouty. */
body {
  font-weight: 450;
}

.brand {
  font-weight: 820;
}

.brand-mark > span:last-child {
  font-weight: 820;
  text-transform: none;
}

.buddy-icon {
  font-weight: 820;
}

.nav-links {
  font-weight: 620;
}

.nav-action,
.button,
.trip-card button,
.segmented button,
.community-tabs button,
.tool-cards button {
  font-weight: 720;
}

.eyebrow {
  font-weight: 760;
  letter-spacing: 0.04em;
}

h1 {
  text-transform: none;
  font-weight: 780;
  line-height: 0.95;
  text-shadow: 0 3px 0 rgba(0, 71, 83, 0.18);
}

.section-heading h2,
.agents h2 {
  font-weight: 720;
  line-height: 1.04;
}

h3,
h4,
strong,
label,
.tag,
.verified,
.card-header span,
.pill-row span,
.community-meta span,
.live-match-card strong,
.match-list strong,
.listing strong {
  font-weight: 700;
}

input,
select,
textarea {
  font-weight: 560;
}

/* App-like action tabs and warmer brand lockup. */
.topbar {
  width: min(1240px, calc(100% - 32px));
  border-radius: 24px;
  gap: 12px;
}

.brand {
  flex: 0 0 auto;
}

.brand-tagline {
  position: relative;
  top: 1px;
  text-transform: none;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 520;
  color: #173d3f;
  white-space: nowrap;
}

.nav-links {
  min-width: 0;
  flex: 1 1 auto;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 153, 199, 0.16);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 8px 24px rgba(0, 93, 117, 0.06);
}

.nav-links a:hover {
  background: #dff8fb;
  color: #006f8d;
}

@media (max-width: 1040px) {
  .topbar {
    align-items: center;
    flex-wrap: wrap;
    padding: 10px;
    border-radius: 18px;
  }

  .brand {
    max-width: calc(100% - 156px);
  }

  .nav-links {
    order: 3;
    display: flex;
    width: 100%;
    padding-top: 2px;
  }

  .hero {
    padding-top: 158px;
  }
}

@media (max-width: 920px) {
  .showcase-layout {
    grid-template-columns: 1fr;
  }

  .showcase-phone {
    max-width: 430px;
  }

  .showcase-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-tagline {
    display: none;
  }

  .brand {
    max-width: calc(100% - 130px);
  }

  .brand-mark {
    min-width: 118px;
  }

  .topbar {
    width: calc(100% - 20px);
  }

  .nav-links a {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 0.86rem;
  }

  .showcase-phone {
    min-height: auto;
    padding: 12px;
    border-width: 7px;
    border-radius: 28px;
  }

  .showcase-media {
    min-height: 300px;
    border-radius: 20px;
  }

  .showcase-feature-card {
    min-height: auto;
  }
}
