/* nicekin.css - Modern Pinterest-style design for Vanlifer.com */
/* Travel & Community theme — fresh green, emerald, warm coral */

/* ===================================================
   CSS CUSTOM PROPERTIES
   =================================================== */
:root {
  /* Brand colors — fresh green travel palette */
  --primary:         #C04E2A;   /* Forest green */
  --primary-hover:   #9C3A1E;
  --primary-light:   #F4E2D7;
  --primary-glow:    rgba(46,125,50,0.15);

  /* Accent */
  --teal:            #2F5D43;   /* Dark emerald – high contrast on white */
  --teal-hover:      #234835;
  --coral:           #EF476F;   /* Vivid coral */
  --female-safe:     #E91E8C;   /* Female safe pink */
  --female-light:    #fce4f3;
  --bff-color:       #9B59B6;   /* BFF purple */
  --bff-light:       #f5eeff;
  --verified:        #00C853;   /* Verified green */
  --gold:            #FFB703;   /* Warm gold */

  /* Neutrals */
  --bg:              #F5FAF5;
  --surface:         #FFFFFF;
  --surface-2:       #F0F7F0;
  --border:          #D7E8D7;
  --text-primary:    #1A2E1A;
  --text-secondary:  #4A6B4A;
  --text-muted:      #8BA68B;

  /* Status colors */
  --hosting-yes:     #00C853;
  --hosting-maybe:   #FFC107;
  --hosting-no:      #F44336;
  --travelling:      #2F5D43;

  /* Shadows */
  --shadow-xs:       0 1px 3px rgba(0,0,0,0.07);
  --shadow-sm:       0 2px 8px rgba(0,0,0,0.09);
  --shadow:          0 6px 20px rgba(0,0,0,0.11);
  --shadow-lg:       0 12px 40px rgba(0,0,0,0.15);
  --shadow-xl:       0 24px 64px rgba(0,0,0,0.20);

  /* Shape */
  --radius-xs:       4px;
  --radius-sm:       8px;
  --radius:          16px;
  --radius-lg:       24px;
  --radius-full:     9999px;

  /* Motion */
  --transition:      all 0.2s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.35s cubic-bezier(0.4,0,0.2,1);

  /* Typography */
  --font:            'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===================================================
   RESET & BASE
   =================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  padding-bottom: 80px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }
h1,h2,h3,h4,h5,h6 { font-weight: 800; line-height: 1.2; letter-spacing: -0.3px; }

/* ===================================================
   NAVBAR
   =================================================== */
.navbar {
  background: var(--surface) !important;
  box-shadow: 0 1px 0 var(--border) !important;
  padding: .55rem 0 !important;
  position: sticky !important;
  top: 0; z-index: 1030;
}
.navbar-brand {
  font-size: 1.6rem !important;
  font-weight: 900 !important;
  color: var(--primary) !important;
  letter-spacing: -1px;
  display: flex; align-items: center; gap: 8px;
}
.navbar-brand .brand-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--teal), var(--primary));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem;
}
.navbar-brand:hover { color: var(--primary-hover) !important; }

/* Search bar */
.navbar-search { flex:1; max-width:560px; margin:0 1rem; }
.navbar-search .search-wrap {
  background: var(--bg);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  display: flex; align-items: center;
  padding: 0 1rem;
  transition: var(--transition);
}
.navbar-search .search-wrap:focus-within {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.navbar-search .search-icon { color: var(--text-secondary); font-size:1rem; margin-right:8px; }
.navbar-search input {
  background: transparent; border: none; outline: none;
  padding: .55rem 0; font-size:.9rem; font-weight:600;
  font-family: var(--font); color: var(--text-primary); width:100%;
}
.navbar-search input::placeholder { color: var(--text-secondary); }

/* Nav icon buttons */
.nav-icon-btn {
  width:40px; height:40px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%;
  color: var(--text-primary) !important;
  font-size:1.1rem;
  transition: var(--transition);
  background:transparent; border:none; cursor:pointer; position:relative;
}
.nav-icon-btn:hover { background: var(--bg); }
.nav-profile-thumb {
  width:36px; height:36px; border-radius:50%;
  object-fit:cover; border:2px solid var(--border); cursor:pointer;
  transition: var(--transition);
}
.nav-profile-thumb:hover { border-color: var(--primary); }

/* Notification badge */
.notification-count {
  position:absolute; top:-4px; right:-4px;
  background: var(--coral); color:white;
  border-radius:9999px; font-size:.65rem;
  font-weight:900; min-width:18px; height:18px;
  display:flex; align-items:center; justify-content:center;
  padding:0 4px; border:2px solid white;
}

/* Dropdown */
.dropdown-menu {
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: .5rem !important;
}
.dropdown-item {
  border-radius: var(--radius-sm) !important;
  font-weight:700 !important; font-size:.875rem !important;
  padding:.55rem .85rem !important;
  display:flex; align-items:center; gap:8px;
  transition: var(--transition);
}
.dropdown-item:hover { background: var(--primary-light) !important; color: var(--primary) !important; }

/* ===================================================
   CATEGORY NAV PILLS
   =================================================== */
.category-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: .5rem 0;
  position: sticky; top: 58px; z-index: 1020;
  overflow-x: auto; white-space: nowrap;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav-inner {
  display: inline-flex; gap: .4rem;
  padding: 0 1rem;
}
.cat-pill {
  display: inline-flex; align-items: center; gap:5px;
  background: var(--bg); color: var(--text-primary);
  border-radius: var(--radius-full);
  padding: .4rem 1rem;
  font-weight:700; font-size:.82rem;
  transition: var(--transition);
  cursor: pointer; white-space: nowrap;
  border: 2px solid transparent;
}
.cat-pill:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.cat-pill.active { background: var(--primary); color: white; }
.cat-pill.female { background: var(--female-light); color: var(--female-safe); border-color: var(--female-safe); }
.cat-pill.bff { background: var(--bff-light); color: var(--bff-color); border-color: var(--bff-color); }

/* ===================================================
   INVITE SHARE BAR
   Sticky, prominent, sits directly under the filter bar.
   =================================================== */
.invite-bar {
  position: sticky;
  top: 96px; /* navbar (~58) + category-nav (~38) */
  z-index: 1015;
  background: linear-gradient(135deg,
              rgba(232,245,233,0.96) 0%,
              rgba(252,228,243,0.96) 100%);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(46,125,50,0.08);
  padding: .55rem .9rem;
}
.invite-bar-inner {
  display: flex; align-items: center; gap: 14px;
  max-width: 1200px; margin: 0 auto;
  flex-wrap: wrap;
}
.invite-bar-headline {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.invite-bar-emoji { font-size: 1.5rem; line-height: 1; }
.invite-bar-text {
  display: flex; flex-direction: column; line-height: 1.2;
}
.invite-bar-text strong {
  color: var(--primary); font-weight: 900; font-size: .92rem;
  letter-spacing: -0.2px;
}
.invite-bar-sub {
  color: var(--text-secondary); font-size: .74rem; font-weight: 600;
}
.invite-bar-actions {
  display: flex; align-items: center; gap: 7px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1; min-width: 0;
}
.invite-bar-actions::-webkit-scrollbar { display: none; }

.invite-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .42rem .8rem;
  border-radius: var(--radius-full);
  font-weight: 800; font-size: .78rem;
  background: white;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none !important;
  transition: var(--transition);
  flex-shrink: 0;
}
.invite-share-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}
.invite-share-btn i { font-size: 1rem; }

.invite-share-btn.invite-wa    { background:#25D366; color:white; border-color:#25D366; }
.invite-share-btn.invite-wa:hover    { background:#1da851; border-color:#1da851; color:white; }
.invite-share-btn.invite-tg    { background:#229ED9; color:white; border-color:#229ED9; }
.invite-share-btn.invite-tg:hover    { background:#1a83b6; border-color:#1a83b6; color:white; }
.invite-share-btn.invite-fb    { background:#1877F2; color:white; border-color:#1877F2; }
.invite-share-btn.invite-fb:hover    { background:#155cb8; border-color:#155cb8; color:white; }
.invite-share-btn.invite-x     { background:#0F1419; color:white; border-color:#0F1419; }
.invite-share-btn.invite-x:hover     { background:#000; border-color:#000; color:white; }
.invite-share-btn.invite-mail  { background:#fff3e0; color:#ef6c00; border-color:#ffcc80; }
.invite-share-btn.invite-mail:hover  { background:#ffe0b2; color:#e65100; }
.invite-share-btn.invite-copy  { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.invite-share-btn.invite-copy:hover  { background: var(--primary); color: white; }
.invite-share-btn.invite-copy.invite-copy-flash { background: var(--verified); color: white; border-color: var(--verified); }
.invite-share-btn.invite-native { background: white; color: var(--primary); border-color: var(--primary); }
.invite-share-btn.invite-board {
  background: linear-gradient(135deg,#FFB703,#EF476F);
  color: white; border-color: transparent;
}
.invite-share-btn.invite-board:hover { filter: brightness(1.08); color:white; }

.invite-bar-close {
  position: absolute;
  right: 6px; top: 4px;
  background: none; border: none;
  color: var(--text-muted);
  font-size: 1.2rem; line-height: 1;
  cursor: pointer; padding: 4px 8px;
  border-radius: 50%;
}
.invite-bar-close:hover { background: rgba(0,0,0,0.06); color: var(--text-primary); }

@media (max-width: 720px) {
  .invite-bar { top: 86px; padding: .45rem .55rem .5rem; }
  .invite-bar-headline { width: 100%; }
  .invite-bar-text strong { font-size: .85rem; }
  .invite-bar-sub { font-size: .68rem; }
  .invite-share-btn { padding: .35rem .65rem; font-size: .72rem; }
  .invite-share-btn span { display: inline; }
}
@media (max-width: 480px) {
  /* Show only the icon on the smallest phones to keep all 6 platforms inline */
  .invite-share-btn span { display: none; }
  .invite-share-btn { padding: .42rem .55rem; }
  .invite-share-btn i { font-size: 1.05rem; }
}

/* ===================================================
   LEADERBOARD PAGE
   =================================================== */
.leaderboard-hero {
  background: linear-gradient(135deg,#fffbe6 0%,#ffe9f0 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px 22px;
  text-align: center;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.leaderboard-hero-emoji { font-size: 2.6rem; line-height: 1; }
.leaderboard-hero-title {
  font-size: 1.8rem; font-weight: 900;
  color: var(--text-primary); margin: .35rem 0 .25rem;
}
.leaderboard-hero-sub {
  color: var(--text-secondary); font-weight: 600;
  font-size: .92rem; max-width: 540px; margin: 0 auto;
}

.leaderboard-mystats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin: 18px auto 0; max-width: 480px;
}
.leaderboard-mystat {
  background: white; border-radius: var(--radius);
  padding: 12px 8px; border: 1px solid var(--border);
}
.leaderboard-mystat-num {
  font-size: 1.5rem; font-weight: 900;
  color: var(--primary); line-height: 1;
}
.leaderboard-mystat-label {
  font-size: .72rem; color: var(--text-secondary);
  font-weight: 700; margin-top: 4px;
}

.leaderboard-share { margin-top: 18px; }
.leaderboard-share-link {
  display: flex; align-items: center; gap: 8px;
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 14px;
  max-width: 540px; margin: 0 auto 12px;
  box-shadow: var(--shadow-xs);
}
.leaderboard-share-link i:first-child { color: var(--primary); }
.leaderboard-share-link input {
  border: none; outline: none; flex: 1;
  font-weight: 700; font-size: .85rem;
  background: transparent; color: var(--text-primary);
  min-width: 0;
}
.lb-copy-btn {
  background: var(--primary); color: white;
  border: none; border-radius: var(--radius-full);
  padding: 7px 14px; font-weight: 800; font-size: .82rem;
  cursor: pointer; flex-shrink: 0;
  transition: var(--transition);
}
.lb-copy-btn:hover { background: var(--primary-hover); }
.lb-copy-btn.lb-copy-ok { background: var(--verified); }

.leaderboard-share-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
}

.leaderboard-podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end; gap: 12px;
  margin: 0 0 22px;
}
.podium-card {
  background: white; border-radius: var(--radius-lg);
  padding: 18px 12px 14px; text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-decoration: none !important;
  color: var(--text-primary);
  transition: var(--transition);
  position: relative;
}
.podium-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.podium-card.podium-rank-1 {
  background: linear-gradient(180deg,#FFF3C4 0%,#fff 70%);
  border-color: #FFB703; transform: scale(1.04);
}
.podium-card.podium-rank-1:hover { transform: translateY(-3px) scale(1.04); }
.podium-card.podium-rank-2 { background: linear-gradient(180deg,#ECEFF1 0%,#fff 70%); }
.podium-card.podium-rank-3 { background: linear-gradient(180deg,#FFE0CC 0%,#fff 70%); }
.podium-medal { font-size: 1.8rem; line-height: 1; margin-bottom: 6px; }
.podium-avatar {
  width: 70px; height: 70px; border-radius: 50%;
  object-fit: cover; border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  margin-bottom: 8px;
}
.podium-name {
  font-weight: 900; font-size: .92rem;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.podium-loc {
  font-size: .7rem; color: var(--text-secondary);
  font-weight: 700; margin-top: 2px;
}
.podium-count {
  margin-top: 8px;
  font-size: 1.4rem; font-weight: 900; color: var(--primary);
  line-height: 1;
}
.podium-count span {
  display: block; font-size: .68rem;
  color: var(--text-secondary); font-weight: 700;
}

.leaderboard-list {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.leaderboard-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none !important;
  color: var(--text-primary);
  transition: background .15s;
}
.leaderboard-row:last-child { border-bottom: none; }
.leaderboard-row:hover { background: var(--surface-2); }
.leaderboard-row-me {
  background: linear-gradient(90deg, var(--primary-light), transparent 80%);
  border-left: 4px solid var(--primary);
}
.leaderboard-rank {
  font-weight: 900; font-size: 1rem;
  color: var(--text-secondary);
  width: 44px; text-align: center; flex-shrink: 0;
}
.leaderboard-rank-medal { font-size: 1.4rem; }
.leaderboard-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover; border: 1.5px solid var(--border);
  flex-shrink: 0;
}
.leaderboard-meta { flex: 1; min-width: 0; }
.leaderboard-name {
  font-weight: 800; font-size: .92rem;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.leaderboard-you-tag {
  background: var(--primary); color: white;
  font-size: .65rem; padding: 1px 7px;
  border-radius: var(--radius-full); font-weight: 900;
}
.leaderboard-loc {
  font-size: .76rem; color: var(--text-secondary);
  font-weight: 600;
}
.leaderboard-count {
  text-align: right; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: flex-end;
}
.leaderboard-count strong {
  color: var(--primary); font-size: 1.25rem;
  font-weight: 900; line-height: 1;
}
.leaderboard-count span {
  color: var(--text-secondary); font-size: .68rem;
  font-weight: 700; margin-top: 2px;
}
.leaderboard-empty {
  text-align: center; padding: 60px 20px;
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border);
}

@media (max-width: 600px) {
  .leaderboard-hero { padding: 22px 14px 18px; }
  .leaderboard-hero-title { font-size: 1.45rem; }
  .leaderboard-podium { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .podium-card { padding: 14px 6px 10px; }
  .podium-card.podium-rank-1 { transform: none; }
  .podium-avatar { width: 56px; height: 56px; }
  .podium-name { font-size: .78rem; }
  .leaderboard-row { padding: 10px 10px; gap: 8px; }
  .leaderboard-rank { width: 32px; font-size: .9rem; }
  .leaderboard-avatar { width: 36px; height: 36px; }
  .leaderboard-name { font-size: .85rem; }
  .leaderboard-count strong { font-size: 1.05rem; }
}

/* ===================================================
   PAGE CONTENT WRAPPER
   =================================================== */
.page-content-wrapper { min-height: 80vh; }

/* ===================================================
   MASONRY GRID (Pinterest-style)
   =================================================== */
.masonry-grid {
  /* Row-first CSS Grid so cards visually flow left-to-right in DOM
     order (id DESC for ?filter=new). Previously this used
     `column-count` which flows top-to-bottom per column, making the
     New Members feed look scrambled even though the SQL was correct. */
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 14px 12px;
  padding: 16px 12px;
  align-items: start;
}
@media (max-width: 1400px) { .masonry-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .masonry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px)  { .masonry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .masonry-grid { grid-template-columns: 1fr; } }

.host-card {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(0,0,0,.06);
}
.host-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,0,0,.13);
}
.host-card-cover {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light), #C8E6C9);
}
.host-card-cover img {
  width: 100%; display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.host-card:hover .host-card-cover img { transform: scale(1.06); }

/* No-photo placeholder — centered avatar on gradient */
.host-card-cover.no-photo {
  min-height: 130px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #F4E2D7, #fce4f3);
}
.host-card-cover.no-photo img {
  width: 80px !important; height: 80px !important;
  aspect-ratio: 1 !important;
  border-radius: 50% !important;
  border: 3px solid white !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.15) !important;
  object-fit: cover !important;
}
.host-card-cover.no-photo i { font-size: 2.2rem; color: var(--primary); opacity: .4; }

/* Overlay badges */
.host-card-badges {
  position: absolute; top: 8px; left: 8px;
  display: flex; flex-wrap: wrap; gap: 3px;
  max-width: calc(100% - 16px);
}
.badge-hosting,
.badge-female,
.badge-verified,
.badge-traveller {
  border-radius: var(--radius-full);
  font-size: .67rem; font-weight: 800;
  padding: 3px 8px;
  display: inline-flex; align-items: center; gap: 3px;
  line-height: 1; backdrop-filter: blur(4px);
  white-space: nowrap;
}
.badge-hosting { background: rgba(0,200,83,.9); color: white; }
.badge-hosting.maybe { background: rgba(255,152,0,.9); color: white; }
.badge-hosting.no    { background: rgba(244,67,54,.88); color: white; }
.badge-female  { background: rgba(233,30,140,.9); color: white; }
.badge-verified{ background: rgba(0,200,83,.9); color: white; }
.badge-traveller { background: rgba(67,160,71,.92); color: white; }
.badge-traveller {
  background: var(--travelling); color: white;
  border-radius: var(--radius-full);
  font-size: .68rem; font-weight: 800;
  padding: 3px 9px;
  display: flex; align-items: center; gap: 4px;
  line-height: 1;
}
.badge-traveller i,
.badge-female i,
.badge-hosting i,
.badge-verified i {
  font-size: .65rem !important;
  line-height: 1;
}

/* Save button (top-right) */
.host-card-save {
  position: absolute; top: 10px; right: 10px;
  opacity: 0; transition: var(--transition);
}
.host-card:hover .host-card-save { opacity: 1; }
.btn-save {
  background: var(--primary); color: white;
  border: none; border-radius: var(--radius-full);
  padding: 6px 14px; font-size: .8rem; font-weight: 800;
  cursor: pointer; transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-save:hover { background: var(--primary-hover); transform: scale(1.05); }

/* Card body */
.host-card-body { padding: 12px 14px 14px; }
.host-card-name {
  font-weight: 800; font-size: .95rem;
  color: var(--text-primary); margin-bottom: 2px;
  display: flex; align-items: center; gap: 6px;
}
.host-card-location {
  font-size: .78rem; color: var(--text-secondary);
  font-weight: 600; margin-bottom: 6px;
  display: flex; align-items: center; gap: 4px;
}
.host-card-about {
  font-size: .8rem; color: var(--text-secondary);
  line-height: 1.5; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.host-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px; border-top: 1px solid var(--border);
}
.host-card-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--border);
}
.host-card-stats {
  display: flex; gap: 10px; font-size: .75rem;
  color: var(--text-secondary); font-weight: 700;
}
.host-card-stats span { display: flex; align-items: center; gap: 3px; }

/* Quick action row */
.host-card-actions {
  display: flex; gap: 6px; margin-top: 8px;
}
.btn-xs {
  border: none; border-radius: var(--radius-full);
  padding: 4px 10px; font-size: .72rem; font-weight: 800;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 4px;
}
.btn-request { background: var(--primary); color: white; }
.btn-request:hover { background: var(--primary-hover); }
.btn-message { background: var(--bg); color: var(--text-primary); }
.btn-message:hover { background: var(--border); }
/* ===================================================
   HERO SECTION
   =================================================== */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
  color: white;
  padding: 5rem 1rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-section > * { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero-title .brand { color: rgba(255,255,255,0.9); }
.hero-subtitle {
  font-size: 1.15rem; opacity: .9;
  max-width: 600px; margin: 0 auto 2rem;
  font-weight: 600;
}
.hero-stats {
  display: flex; justify-content: center;
  gap: 3rem; margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat-val {
  display: block; font-size: 2rem;
  font-weight: 900; line-height: 1;
}
.hero-stat-label {
  font-size: .85rem; opacity: .8; font-weight: 600;
}

/* ===================================================
   SIGNUP CARD (homepage hero form)
   The card lives inside .hero-section which sets color:white,
   so we reset text colors on every descendant — otherwise
   labels render white-on-white and become invisible.
   =================================================== */
.signup-card {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 460px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  color: var(--text-primary, #1A2E1A);
  text-align: left;
}
.signup-card,
.signup-card * { text-shadow: none; }

.signup-card .card-header {
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff;
  padding: 1.1rem 1.5rem;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: .2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
}
.signup-card .card-header i { font-size: 1.05rem; opacity: .95; }
.signup-card .card-body {
  padding: 1.6rem 1.5rem 1.4rem;
  background: #fff;
  color: var(--text-primary, #1A2E1A);
}

/* Inputs / selects */
.form-control,
.signup-card select.form-control {
  border-radius: var(--radius-sm) !important;
  border: 1.5px solid var(--border) !important;
  background: #fff !important;
  color: var(--text-primary, #1A2E1A) !important;
  font-weight: 600 !important;
  font-family: var(--font) !important;
  transition: var(--transition) !important;
  padding: .65rem .9rem !important;
  font-size: .92rem !important;
  line-height: 1.35 !important;
}
.form-control::placeholder { color: #94a394 !important; font-weight: 500 !important; }
.form-control:hover { border-color: #b9d4b9 !important; }
.form-control:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-glow, rgba(46,125,50,.18)) !important;
  outline: none !important;
}

/* Native <select> chevron — Bootstrap drops it when we use form-control */
.signup-card select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232E7D32' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right .9rem center !important;
  background-size: 12px 12px !important;
  padding-right: 2.2rem !important;
  cursor: pointer;
}

/* Labels — explicit color so the hero's white doesn't bleed in */
.signup-card .form-label,
.form-label {
  font-weight: 700;
  font-size: .82rem;
  margin-bottom: .35rem;
  color: var(--text-primary, #1A2E1A);
  letter-spacing: .15px;
}
.signup-card .form-text {
  color: var(--text-secondary, #4A6B4A);
  font-size: .76rem;
  margin-top: .3rem;
}

/* Tighter, consistent spacing between fields */
.signup-card .mb-3 { margin-bottom: 1rem !important; }
.signup-card .mb-3:last-of-type { margin-bottom: .85rem !important; }

/* Checkbox row — terms + privacy */
.signup-card .form-check {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding-left: 0;
  margin: .25rem 0 1.1rem;
}
.signup-card .form-check-input {
  width: 1.05rem;
  height: 1.05rem;
  margin: .15rem 0 0 0;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  flex-shrink: 0;
  cursor: pointer;
}
.signup-card .form-check-label {
  margin-left: 0;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-secondary, #4A6B4A);
  line-height: 1.45;
  cursor: pointer;
}
.signup-card .form-check-label a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: var(--transition);
}
.signup-card .form-check-label a:hover {
  border-bottom-color: var(--primary);
}

/* Submit button inside the card — slightly bigger, bolder */
.signup-card .btn-primary {
  padding: .75rem 1.5rem !important;
  font-size: .98rem !important;
  font-weight: 900 !important;
  letter-spacing: .2px;
  box-shadow: 0 4px 14px rgba(46,125,50,.25);
}
.signup-card .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(46,125,50,.35);
}

/* "Already a member?" footer line */
.signup-card .card-body > .text-center {
  color: var(--text-secondary, #4A6B4A);
  padding-top: .25rem;
}

/* Alerts inside the card stay readable too */
.signup-card .alert { color: #842029; }
.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  border-radius: var(--radius-full) !important;
  font-weight: 800 !important;
  font-family: var(--font) !important;
  transition: var(--transition) !important;
  padding: .65rem 1.5rem !important;
}
.btn-primary:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow) !important;
}
.btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  border-radius: var(--radius-full) !important;
  font-weight: 800 !important;
  font-family: var(--font) !important;
}
.btn-outline-primary:hover {
  background: var(--primary) !important;
  color: white !important;
}

/* ===================================================
   PROFILE PAGE
   =================================================== */
.profile-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
  padding: 3rem 1rem 5rem;
  text-align: center;
  position: relative;
}
.profile-avatar-wrap {
  position: relative; display: inline-block; margin-bottom: 1rem;
}
.profile-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: var(--shadow-lg);
}
.profile-name {
  font-size: 1.8rem; font-weight: 900;
  color: white; margin-bottom: .3rem;
}
.profile-location {
  font-size: 1rem; color: rgba(255,255,255,.85);
  font-weight: 600; margin-bottom: 1rem;
}
.profile-badges {
  display: flex; justify-content: center;
  gap: 8px; flex-wrap: wrap; margin-bottom: 1.2rem;
}
.profile-badge {
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: .8rem; font-weight: 800;
  display: flex; align-items: center; gap: 5px;
}
.profile-badge.female { background: var(--female-safe); color: white; }
.profile-badge.verified { background: var(--verified); color: white; }
.profile-badge.traveller { background: var(--travelling); color: white; }
.profile-badge.hosting { background: var(--hosting-yes); color: white; }
.profile-stats-row {
  display: flex; justify-content: center;
  gap: 2rem; flex-wrap: wrap;
  background: white; border-radius: var(--radius-lg);
  max-width: 600px; margin: -30px auto 0;
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative; z-index: 5;
}
.profile-stat { text-align: center; }
.profile-stat-val {
  font-size: 1.4rem; font-weight: 900;
  color: var(--primary); line-height: 1;
}
.profile-stat-label {
  font-size: .75rem; color: var(--text-secondary);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px;
}

/* Profile tabs */
.profile-tabs {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
  display: flex; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tab {
  padding: 1rem 1.3rem;
  font-weight: 800; font-size: .9rem;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  cursor: pointer; transition: var(--transition);
  white-space: nowrap; text-decoration: none;
  display: flex; align-items: center; gap: 6px;
}
.profile-tab:hover { color: var(--primary); }
.profile-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ===================================================
   EXPERIENCE / BFF CARDS
   =================================================== */
.experience-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: var(--transition);
  margin-bottom: 1rem;
}
.experience-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.experience-card-header {
  display: flex; align-items: center; gap: 12px;
  padding: 1rem 1.2rem .5rem;
}
.experience-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--border);
  flex-shrink: 0;
}
.experience-meta { flex: 1; min-width: 0; }
.experience-author {
  font-weight: 800; font-size: .9rem;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 5px;
}
.experience-time { font-size: .75rem; color: var(--text-muted); font-weight: 600; }
.experience-type-badge {
  border-radius: var(--radius-full);
  padding: 3px 10px; font-size: .7rem; font-weight: 800;
  flex-shrink: 0;
}
.type-experience { background: #e3f2fd; color: #1565c0; }
.type-bff { background: var(--bff-light); color: var(--bff-color); }
.type-event { background: #fff3e0; color: #e65100; }
.type-tip { background: #F4E2D7; color: #C04E2A; }
.experience-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}
.experience-body {
  padding: .8rem 1.2rem 1rem;
}
.experience-title {
  font-weight: 900; font-size: 1.05rem;
  margin-bottom: .4rem;
}
.experience-text {
  font-size: .875rem; color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden;
}
.experience-actions {
  display: flex; gap: .5rem;
  padding: .8rem 1.2rem;
  border-top: 1px solid var(--border);
}
.btn-like, .btn-comment-btn, .btn-share {
  background: var(--bg); border: none;
  border-radius: var(--radius-full);
  padding: 6px 14px; font-size: .8rem;
  font-weight: 700; font-family: var(--font);
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 5px;
  color: var(--text-secondary);
}
.btn-like:hover { background: #fee2e2; color: var(--coral); }
.btn-like.liked { background: #fee2e2; color: var(--coral); }
.btn-comment-btn:hover { background: var(--primary-light); color: var(--primary); }
.btn-share:hover { background: var(--bg); color: var(--teal); }

/* ===================================================
   BFF SECTION
   =================================================== */
.bff-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  padding: 1.2rem;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}
.bff-card:hover {
  border-color: var(--bff-color);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.bff-avatar {
  width: 80px; height: 80px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--bff-color);
  margin: 0 auto .8rem;
}
.bff-name { font-weight: 900; font-size: 1rem; margin-bottom: .2rem; }
.bff-location { font-size: .8rem; color: var(--text-secondary); font-weight: 600; margin-bottom: .8rem; }
.bff-tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-bottom: .8rem; }
.bff-tag {
  background: var(--bff-light); color: var(--bff-color);
  border-radius: var(--radius-full);
  padding: 2px 8px; font-size: .7rem; font-weight: 700;
}

/* ===================================================
   MESSAGES
   =================================================== */
.inbox-sidebar {
  height: calc(100vh - 130px);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.conversation-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  cursor: pointer; transition: var(--transition);
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
}
.conversation-item:hover, .conversation-item.active {
  background: var(--primary-light);
}
.conversation-avatar {
  width: 46px; height: 46px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border); flex-shrink: 0;
  position: relative;
}
.conversation-info { flex: 1; min-width: 0; }
.conversation-name {
  font-weight: 800; font-size: .9rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.conversation-preview {
  font-size: .78rem; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.conversation-time { font-size: .72rem; color: var(--text-muted); font-weight: 600; }
.unread-dot {
  width: 10px; height: 10px;
  background: var(--primary); border-radius: 50%; flex-shrink: 0;
}

/* Chat area */
.chat-area {
  display: flex; flex-direction: column;
  height: calc(100vh - 130px);
}
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 1.2rem; display: flex; flex-direction: column; gap: 10px;
}
.message-bubble {
  max-width: 75%;
  display: flex; gap: 8px;
}
.message-bubble.own { align-self: flex-end; flex-direction: row-reverse; }
.message-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; align-self: flex-end;
}
.bubble-content {
  background: var(--bg);
  border-radius: var(--radius);
  padding: .65rem 1rem;
  font-size: .875rem; line-height: 1.5;
  position: relative;
}
.message-bubble.own .bubble-content {
  background: var(--primary); color: white;
  border-bottom-right-radius: 4px;
}
.bubble-time { font-size: .68rem; opacity: .7; margin-top: 3px; display: block; }
.chat-input-bar {
  border-top: 1px solid var(--border);
  padding: .8rem 1rem;
  display: flex; gap: .6rem; align-items: flex-end;
  background: var(--surface);
}
.chat-input {
  flex: 1; border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: .6rem 1rem; font-family: var(--font);
  font-weight: 600; resize: none; outline: none;
  transition: var(--transition); font-size: .9rem;
  max-height: 120px;
}
.chat-input:focus { border-color: var(--primary); }
.btn-send {
  background: var(--primary); color: white;
  border: none; border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); flex-shrink: 0;
}
.btn-send:hover { background: var(--primary-hover); transform: scale(1.05); }

/* ===================================================
   STAY REQUEST CARD
   =================================================== */
.request-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}
.request-card:hover { box-shadow: var(--shadow); }
.request-card.pending { border-left-color: var(--hosting-maybe); }
.request-card.accepted { border-left-color: var(--hosting-yes); }
.request-card.declined { border-left-color: var(--hosting-no); }
.request-status {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: var(--radius-full);
  padding: 3px 10px; font-size: .75rem; font-weight: 800;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-accepted { background: #d1f2eb; color: #0a5c45; }
.status-declined { background: #fee2e2; color: #991b1b; }

/* ===================================================
   EVENTS
   =================================================== */
.event-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: var(--transition);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.event-card-banner {
  height: 160px; position: relative;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.event-card-banner img { width:100%; height:100%; object-fit:cover; }
.event-date-badge {
  position: absolute; top: 12px; left: 12px;
  background: white; border-radius: var(--radius-sm);
  padding: 6px 10px; text-align: center;
  box-shadow: var(--shadow-sm); min-width: 52px;
}
.event-day { font-size: 1.4rem; font-weight: 900; color: var(--primary); line-height: 1; }
.event-month { font-size: .7rem; font-weight: 800; color: var(--text-secondary); text-transform: uppercase; }
.event-card-body { padding: 1rem 1.2rem; }
.event-title { font-weight: 900; font-size: 1rem; margin-bottom: .3rem; }
.event-location { font-size: .8rem; color: var(--text-secondary); font-weight: 600; margin-bottom: .6rem; }
.event-attendees {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--text-secondary); font-weight: 700;
}
.event-attendee-avatars { display: flex; }
.event-attendee-avatars img {
  width: 24px; height: 24px; border-radius: 50%;
  object-fit: cover; border: 2px solid white;
  margin-left: -6px;
}
.event-attendee-avatars img:first-child { margin-left: 0; }

/* ===================================================
   NOTIFICATIONS
   =================================================== */
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none; color: inherit;
}
.notif-item:hover { background: var(--primary-light); }
.notif-item.unread { background: var(--primary-light); }
.notif-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.notif-icon-wrap {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
}
.notif-body { flex: 1; min-width: 0; }
.notif-text { font-size: .875rem; font-weight: 700; line-height: 1.4; }
.notif-time { font-size: .75rem; color: var(--text-muted); font-weight: 600; margin-top: 2px; }

/* ===================================================
   SEARCH / FILTERS
   =================================================== */
.search-hero {
  background: linear-gradient(135deg, var(--primary), var(--teal));
  padding: 3rem 1rem;
  text-align: center;
}
.search-hero h1 { color: white; font-size: 2.2rem; font-weight: 900; margin-bottom: .5rem; }
.search-hero p { color: rgba(255,255,255,.85); font-size: 1rem; font-weight: 600; }
.search-big-bar {
  background: white; border-radius: var(--radius-full);
  padding: .7rem 1.5rem;
  display: flex; align-items: center; gap: .8rem;
  max-width: 640px; margin: 1.5rem auto 0;
  box-shadow: var(--shadow-lg);
}
.search-big-bar input {
  flex: 1; border: none; outline: none;
  font-size: 1rem; font-weight: 600;
  font-family: var(--font); color: var(--text-primary);
}
.search-big-bar .btn-search {
  background: var(--primary); color: white;
  border: none; border-radius: var(--radius-full);
  padding: .55rem 1.3rem; font-weight: 800;
  font-family: var(--font); cursor: pointer;
  transition: var(--transition);
}
.search-big-bar .btn-search:hover { background: var(--primary-hover); }
.filter-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: .6rem 1rem;
  display: flex; gap: .5rem; flex-wrap: wrap;
  align-items: center;
}
.filter-chip {
  background: var(--bg); border: 2px solid var(--border);
  border-radius: var(--radius-full);
  padding: .35rem .9rem; font-size: .8rem; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 5px;
}
.filter-chip:hover, .filter-chip.active {
  background: var(--primary-light);
  border-color: var(--primary); color: var(--primary);
}
.filter-chip.female-filter.active {
  background: var(--female-light);
  border-color: var(--female-safe); color: var(--female-safe);
}

/* ===================================================
   SECTION TITLES
   =================================================== */
.section-title {
  font-size: 1.3rem; font-weight: 900;
  color: var(--text-primary); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 8px;
}
.section-title-icon {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
}

/* ===================================================
   INSTAGRAM LINK
   =================================================== */
.instagram-link {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white !important;
  border-radius: var(--radius-full);
  padding: 6px 16px; font-weight: 800; font-size: .85rem;
  transition: var(--transition);
  text-decoration: none;
}
.instagram-link:hover { transform: scale(1.04); box-shadow: var(--shadow-sm); }

/* ===================================================
   FEMALE SAFE SECTION
   =================================================== */
.female-safe-banner {
  background: linear-gradient(135deg, #fce4f3, #f8bbdd);
  border: 2px solid var(--female-safe);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 1.2rem;
}
.female-safe-icon {
  width: 44px; height: 44px;
  background: var(--female-safe); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.female-safe-text h5 { font-size: .95rem; font-weight: 900; color: var(--female-safe); margin-bottom: .2rem; }
.female-safe-text p { font-size: .82rem; color: #555; margin: 0; }

/* ===================================================
   FORM CARD (common panel)
   =================================================== */
.form-panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  max-width: 500px; margin: 0 auto;
}
.form-panel-title {
  font-size: 1.5rem; font-weight: 900;
  margin-bottom: .3rem; color: var(--primary);
}
.form-panel-sub {
  font-size: .875rem; color: var(--text-secondary);
  font-weight: 600; margin-bottom: 1.5rem;
}

/* ===================================================
   HOSTING STATUS TOGGLE
   =================================================== */
.hosting-toggle {
  display: flex; gap: .5rem; flex-wrap: wrap;
}
.hosting-opt {
  flex: 1; min-width: 120px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: .8rem;
  text-align: center; cursor: pointer;
  transition: var(--transition);
}
.hosting-opt:hover { border-color: var(--primary); background: var(--primary-light); }
.hosting-opt.selected.yes { border-color: var(--hosting-yes); background: #e8f8ef; }
.hosting-opt.selected.maybe { border-color: var(--hosting-maybe); background: #fff8e1; }
.hosting-opt.selected.no { border-color: var(--hosting-no); background: #fef2f2; }
.hosting-opt i { font-size: 1.4rem; display: block; margin-bottom: .3rem; }
.hosting-opt.yes i { color: var(--hosting-yes); }
.hosting-opt.maybe i { color: var(--hosting-maybe); }
.hosting-opt.no i { color: var(--hosting-no); }
.hosting-opt span { font-size: .8rem; font-weight: 800; }

/* ===================================================
   REVIEW STARS
   =================================================== */
.star-rating { display: flex; gap: 2px; }
.star-rating i { color: #FFD700; font-size: .9rem; }
.star-rating i.empty { color: var(--border); }
.review-card {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: .8rem;
}
.review-author {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: .5rem;
}
.review-author img { width:36px; height:36px; border-radius:50%; object-fit:cover; }
.review-author-name { font-weight: 800; font-size: .875rem; }
.review-text { font-size: .85rem; color: var(--text-secondary); line-height: 1.5; }

/* ===================================================
   MOBILE BOTTOM NAV
   =================================================== */
.mobile-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex; z-index: 1040;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.mobile-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: .6rem .4rem;
  font-size: .65rem; font-weight: 800;
  color: var(--text-muted);
  text-decoration: none; transition: var(--transition);
  position: relative;
}
.mobile-nav-item i { font-size: 1.2rem; margin-bottom: 2px; }
.mobile-nav-item:hover, .mobile-nav-item.active {
  color: var(--primary);
}
.mobile-nav-item.active::after {
  content: '';
  position: absolute; top: 0; left: 30%; right: 30%;
  height: 3px; background: var(--primary);
  border-radius: 0 0 3px 3px;
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: #1A202C;
  color: rgba(255,255,255,.7);
  padding: 3rem 1rem 1.5rem;
  margin-top: 3rem;
}
.footer-brand {
  font-size: 1.4rem; font-weight: 900;
  color: white; margin-bottom: .4rem;
}
.footer-tagline { font-size: .85rem; margin-bottom: 1.2rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .85rem; font-weight: 600; transition: color .15s; }
.footer-links a:hover { color: white; }
.footer-divider { border-color: rgba(255,255,255,.1); margin: 1.5rem 0 1rem; }
.footer-bottom { font-size: .78rem; color: rgba(255,255,255,.5); }

/* ===================================================
   ALERTS / TOASTS
   =================================================== */
.alert { border-radius: var(--radius-sm) !important; font-weight: 700 !important; border:none !important; }
.alert-success { background: #d1f2eb !important; color: #0a5c45 !important; }
.alert-danger  { background: #fee2e2 !important; color: #991b1b !important; }
.alert-info    { background: var(--primary-light) !important; color: var(--primary) !important; }
.alert-warning { background: #fff3cd !important; color: #856404 !important; }

/* ===================================================
   UTILITY
   =================================================== */
.text-primary { color: var(--primary) !important; }
.text-teal { color: var(--teal) !important; }
.text-female { color: var(--female-safe) !important; }
.text-bff { color: var(--bff-color) !important; }
.bg-primary-light { background: var(--primary-light) !important; }

.card-clean {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  padding: 1.2rem 1.4rem;
}
.divider { border-color: var(--border); margin: 1rem 0; }

/* Spinner */
.spinner-cs {
  width: 40px; height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================================================
   TOP ANNOUNCEMENT BAR
   =================================================== */
.top-bar {
  background: linear-gradient(90deg, var(--primary), var(--teal));
  color: white; text-align: center;
  padding: 7px 16px; font-size: .82rem;
  font-weight: 700; position: relative;
}
.top-bar a { color: white; text-decoration: underline; }

/* ===================================================
   STATUS BAR (compact)
   =================================================== */
.status-bar-compact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-bar-link {
  display: flex; align-items: center; gap: 5px;
  text-decoration: none; color: var(--primary);
  font-weight: 700; font-size: .82rem;
  white-space: nowrap; flex-shrink: 0;
}
.status-bar-link:hover { color: var(--primary-hover); }
.status-bar-input-fake {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 50px; padding: 7px 14px;
  font-size: .82rem; color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.status-bar-input-fake:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.status-bar-input-fake span {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ===================================================
   STATUS MODAL
   =================================================== */
.status-modal-overlay {
  position: fixed; inset: 0; z-index: 1050;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.status-modal-box {
  background: white; border-radius: 16px;
  padding: 20px; width: 100%; max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  animation: modalSlideUp .2s ease;
}
.status-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   RESPONSIVE TWEAKS
   =================================================== */
@media (max-width: 768px) {
  .hero-section { padding: 2.5rem .8rem 2rem; }
  .hero-title { font-size: 1.5rem; }
  .hero-subtitle { font-size: .88rem; }
  .hero-stats { gap: .8rem; }
  .hero-stat-val { font-size: 1.1rem; }
  .hero-stat-label { font-size: .65rem; }
  .profile-hero { padding: 2rem 1rem 4rem; }
  .form-panel { padding: 1rem; }
  .profile-stats-row { gap: .8rem; }
  .chat-area { height: calc(100vh - 180px); }
  .inbox-sidebar { height: auto; max-height: 280px; border-right: none; border-bottom: 1px solid var(--border); }

  /* Navbar tighter on mobile */
  .navbar { padding: .4rem 0 !important; }
  .navbar-brand { font-size: 1.2rem !important; gap: 5px; }
  .navbar-brand .brand-icon { width: 28px; height: 28px; font-size: .85rem; }
  .navbar-search { margin: 0 .5rem; }
  .navbar-search input { padding: .45rem 0; font-size: .82rem; }
  .nav-icon-btn { width: 34px; height: 34px; font-size: 1rem; }
  .nav-profile-thumb { width: 30px; height: 30px; }

  /* Category pills scroll gracefully */
  .category-nav { top: 48px; padding: .35rem 0; }
  .category-nav-inner { padding: 0 .5rem; gap: .3rem; }
  .cat-pill { padding: .3rem .7rem; font-size: .75rem; }

  /* Status bar on mobile */
  .status-bar-compact { padding: 6px 10px; gap: 8px; margin: 0 4px 10px; border-radius: 10px; }
  .status-bar-link { font-size: .75rem; }
  .status-bar-input-fake { padding: 6px 12px; font-size: .78rem; }

  /* Grid: tighter gutters on mobile */
  .masonry-grid { padding: 10px 6px; gap: 10px 8px; }
  .host-card-body { padding: 10px; }
  .host-card-name { font-size: .82rem; }
  .host-card-location { font-size: .72rem; }
  .host-card-about { font-size: .75rem; -webkit-line-clamp: 2; }

  /* Modal full-width on mobile */
  .status-modal-overlay { padding: 10px; align-items: flex-end; }
  .status-modal-box { max-width: 100%; border-radius: 16px 16px 0 0; padding: 16px; }

  /* Filter chips */
  .filter-chip { font-size: .72rem; padding: .25rem .6rem; }

  /* Container padding */
  .container { padding-left: 10px; padding-right: 10px; }

  /* General sections tighter */
  section { overflow-x: hidden; }
}

@media (max-width: 480px) {
  .hero-section { padding: 2rem .6rem 1.5rem; }
  .hero-title { font-size: 1.25rem; }
  .hero-subtitle { font-size: .82rem; }
  .hero-stats { gap: .5rem; flex-wrap: wrap; justify-content: center; }

  .navbar-brand { font-size: 1.05rem !important; }
  .navbar-brand .brand-icon { width: 24px; height: 24px; font-size: .75rem; border-radius: 7px; }

  .status-bar-compact { flex-wrap: wrap; }

  /* Cards single column full width */
  .host-card-photo img { height: 180px; }
}

/* Prevent horizontal overflow globally.
   `overflow-x: clip` (not `hidden`) so position:sticky on the navbar
   still works — `hidden` would silently create a scroll container
   and demote sticky to static. */
html, body { overflow-x: clip; max-width: 100vw; }
img { max-width: 100%; height: auto; }

/* SEO landing pages — sections overflow fix */
section > .container { overflow: hidden; }

/* ===================================================
   BOOTSTRAP 5 PRIMARY COLOR OVERRIDES
   =================================================== */
:root {
  --bs-primary:           #C04E2A;
  --bs-primary-rgb:       46,125,50;
  --bs-link-color:        #C04E2A;
  --bs-link-hover-color:  #9C3A1E;
}
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: white !important;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}
.btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}
.btn-outline-primary:hover {
  background-color: var(--primary) !important;
  color: white !important;
}
.text-primary { color: var(--primary) !important; }
.bg-primary   { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.form-control:focus, .form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-glow) !important;
}
.form-check-input:checked {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}
.nav-link { color: var(--text-primary); font-weight: 700; }
.nav-link:hover { color: var(--primary); }
.site-footer { background: linear-gradient(180deg, #1A2E1A 0%, #0D1A0D 100%); }
.top-bar { background: linear-gradient(90deg, var(--primary), var(--coral)); }
