@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --green: #1a6b3c;
  --green-light: #228b4e;
  --green-dark: #0d3d22;
  --gold: #e6a817;
  --gold-light: #f5c842;
  --cream: #faf7f2;
  --dark: #111a14;
  --grey: #6b7280;
  --grey-light: #f3f4f6;
  --border: #e5e7eb;
  --white: #ffffff;
  --red: #dc2626;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--cream); color: var(--dark); overflow-x: hidden; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(250,247,242,0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); height: 64px; display: flex; align-items: center; padding: 0 24px; }
.nav-inner { max-width: 1200px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; color: var(--green); letter-spacing: -0.5px; cursor: pointer; }
.nav-logo span { color: var(--gold); }
.nav-center { display: flex; gap: 24px; align-items: center; }
.nav-center a { font-size: 14px; font-weight: 500; color: var(--dark); transition: color 0.2s; padding: 4px 0; border-bottom: 2px solid transparent; cursor: pointer; }
.nav-center a:hover, .nav-center a.active { color: var(--green); border-bottom-color: var(--green); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: flex; gap: 2px; background: var(--grey-light); border-radius: 20px; padding: 3px; }
.lang-btn { padding: 4px 10px; border-radius: 16px; border: none; background: none; font-size: 12px; font-weight: 600; color: var(--grey); transition: all 0.2s; }
.lang-btn.active { background: var(--green); color: white; }
.btn { padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; border: none; transition: all 0.2s; cursor: pointer; }
.btn-outline { background: none; border: 1.5px solid var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: white; }
.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: var(--green-light); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--dark); font-weight: 700; }
.btn-gold:hover { background: var(--gold-light); }
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: 10px; }
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; }

.page { display: none; padding-top: 64px; min-height: 100vh; }
.page.active { display: block; }

.section { padding: 72px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.section-title { font-family: 'Syne', sans-serif; font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -0.5px; margin-bottom: 14px; }
.section-sub { color: var(--grey); font-size: 16px; line-height: 1.7; max-width: 520px; }

.card { background: var(--white); border-radius: 16px; border: 1px solid var(--border); transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-body { padding: 20px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-green { background: #d1fae5; color: var(--green); }
.badge-gold { background: #fef3c7; color: #92400e; }
.badge-grey { background: var(--grey-light); color: var(--grey); }

.stars { color: var(--gold); font-size: 13px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 11px; font-weight: 600; color: var(--grey); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; color: var(--dark); background: white; outline: none; transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { font-size: 12px; color: var(--grey); margin-top: 4px; }

.modal-overlay { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: white; border-radius: 20px; width: 100%; max-width: 460px; padding: 36px; position: relative; max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 22px; color: var(--grey); cursor: pointer; }
.modal h2 { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.modal-sub { color: var(--grey); font-size: 14px; margin-bottom: 24px; }

.tabs { display: flex; gap: 4px; background: var(--grey-light); border-radius: 10px; padding: 4px; margin-bottom: 24px; }
.tab-btn { flex: 1; padding: 8px; border-radius: 7px; border: none; background: none; font-size: 13px; font-weight: 600; color: var(--grey); transition: all 0.2s; }
.tab-btn.active { background: white; color: var(--green); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--dark); color: white; padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 500; z-index: 9999; transition: transform 0.3s; white-space: nowrap; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }

footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 56px 24px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; color: white; margin-bottom: 12px; }
.footer-logo span { color: var(--gold); }
.footer-desc { font-size: 13px; line-height: 1.7; }
.footer-col h4 { color: white; font-size: 12px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a { display: block; color: rgba(255,255,255,0.5); font-size: 13px; margin-bottom: 10px; transition: color 0.2s; cursor: pointer; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 12px; }

.sidebar-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.sidebar { background: white; border-radius: 16px; border: 1px solid var(--border); padding: 22px; position: sticky; top: 84px; }
.sidebar h3 { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.filter-group { margin-bottom: 16px; }
.filter-group label { display: block; font-size: 11px; font-weight: 600; color: var(--grey); margin-bottom: 6px; text-transform: uppercase; }
.filter-group select, .filter-group input { width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; outline: none; }
.filter-group select:focus, .filter-group input:focus { border-color: var(--green); }

.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.results-count { font-size: 14px; color: var(--grey); }

.whatsapp-btn { display: inline-flex; align-items: center; gap: 7px; background: #25D366; color: white; padding: 9px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; border: none; cursor: pointer; transition: background 0.2s; }
.whatsapp-btn:hover { background: #1fb855; }

.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: white; display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px; flex-shrink: 0; }

.dash-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 28px 24px; min-height: calc(100vh - 64px); }
.dash-sidebar { background: white; border-radius: 16px; border: 1px solid var(--border); padding: 18px; height: fit-content; position: sticky; top: 84px; }
.dash-user { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.dash-user-name { font-size: 14px; font-weight: 600; }
.dash-user-role { font-size: 12px; color: var(--grey); }
.dash-nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--grey); cursor: pointer; transition: all 0.2s; margin-bottom: 2px; border: none; background: none; width: 100%; text-align: left; }
.dash-nav-item:hover { background: var(--grey-light); color: var(--dark); }
.dash-nav-item.active { background: #d1fae5; color: var(--green); font-weight: 600; }
.dash-nav-item .di { font-size: 17px; width: 22px; }
.dash-section { display: none; }
.dash-section.active { display: block; }
.dash-title { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.dash-sub { color: var(--grey); font-size: 14px; margin-bottom: 24px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat-card { background: white; border-radius: 12px; border: 1px solid var(--border); padding: 18px; }
.stat-val { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; color: var(--green); }
.stat-label { font-size: 12px; color: var(--grey); margin-top: 3px; }

.hero-section { min-height: calc(100vh - 64px); background: linear-gradient(140deg, var(--green-dark) 0%, var(--green) 65%, #2d9e5f 100%); display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-section::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 15% 85%, rgba(230,168,23,0.15) 0%, transparent 50%), radial-gradient(circle at 85% 15%, rgba(255,255,255,0.04) 0%, transparent 50%); }
.hero-content { max-width: 1200px; margin: 0 auto; padding: 60px 24px; display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: center; position: relative; z-index: 1; width: 100%; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(230,168,23,0.18); border: 1px solid rgba(230,168,23,0.35); color: var(--gold-light); padding: 5px 14px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 20px; text-transform: uppercase; }
.hero h1 { font-family: 'Syne', sans-serif; font-size: clamp(34px, 4.5vw, 54px); font-weight: 800; color: white; line-height: 1.05; letter-spacing: -1px; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-desc { color: rgba(255,255,255,0.72); font-size: 16px; line-height: 1.7; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card { background: white; border-radius: 20px; padding: 26px; box-shadow: 0 24px 60px rgba(0,0,0,0.25); }
.hero-card-title { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.search-tabs { display: flex; gap: 4px; background: var(--grey-light); border-radius: 8px; padding: 4px; margin-bottom: 18px; }
.search-tab { flex: 1; padding: 8px; border-radius: 6px; border: none; background: none; font-size: 13px; font-weight: 600; color: var(--grey); cursor: pointer; transition: all 0.2s; }
.search-tab.active { background: white; color: var(--green); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.search-field { margin-bottom: 12px; }
.search-field label { display: block; font-size: 11px; font-weight: 600; color: var(--grey); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.search-field select, .search-field input { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; color: var(--dark); background: white; outline: none; }
.search-field select:focus, .search-field input:focus { border-color: var(--green); }
.search-btn { width: 100%; background: var(--green); color: white; padding: 11px; border-radius: 8px; border: none; font-size: 14px; font-weight: 700; cursor: pointer; margin-top: 4px; transition: background 0.2s; }
.search-btn:hover { background: var(--green-light); }
.hero-stats { display: flex; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.hero-stat { flex: 1; text-align: center; }
.hero-stat strong { display: block; font-family: 'Syne', sans-serif; font-size: 20px; color: var(--green); }
.hero-stat span { font-size: 11px; color: var(--grey); }

.profile-hero { background: linear-gradient(135deg, var(--green-dark), var(--green)); padding: 48px 24px 80px; }
.profile-hero-inner { max-width: 1200px; margin: 0 auto; }
.profile-icon { width: 72px; height: 72px; border-radius: 14px; background: white; display: flex; align-items: center; justify-content: center; font-size: 32px; margin-bottom: 14px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.profile-hero h1 { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; color: white; margin-bottom: 8px; }
.profile-hero p { color: rgba(255,255,255,0.72); font-size: 14px; }
.profile-body { max-width: 1200px; margin: -40px auto 0; padding: 0 24px 60px; display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.profile-main { background: white; border-radius: 16px; border: 1px solid var(--border); padding: 28px; }
.profile-sidebar-col { display: flex; flex-direction: column; gap: 18px; }
.contact-card { background: white; border-radius: 16px; border: 1px solid var(--border); padding: 22px; }
.contact-card h3 { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.contact-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.contact-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-item .ci { font-size: 18px; width: 24px; }
.fav-btn { display: flex; align-items: center; gap: 6px; background: none; border: 1.5px solid var(--border); border-radius: 8px; padding: 9px 16px; font-size: 13px; font-weight: 600; color: var(--grey); cursor: pointer; transition: all 0.2s; }
.fav-btn.saved { border-color: var(--gold); color: var(--gold); background: #fef3c7; }
.fav-btn:hover { border-color: var(--gold); color: var(--gold); }

.listing-card { overflow: hidden; }
.listing-img { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.listing-img.green-bg { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.listing-img.gold-bg { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.listing-img.blue-bg { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.listing-img.purple-bg { background: linear-gradient(135deg, #f3e5f5, #e1bee7); }
.listing-type { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--green); margin-bottom: 4px; }
.listing-name { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.listing-desc { font-size: 13px; color: var(--grey); line-height: 1.5; margin-bottom: 14px; }
.listing-footer { display: flex; align-items: center; justify-content: space-between; }
.listing-price { font-size: 15px; font-weight: 700; }
.listing-price span { font-size: 12px; color: var(--grey); font-weight: 400; }
.verified-badge { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--green); font-weight: 600; }

.back-btn { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.8); font-size: 13px; font-weight: 500; margin-bottom: 16px; background: none; border: none; cursor: pointer; }
.back-btn:hover { color: white; }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--grey); font-size: 14px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--grey); border-bottom: 2px solid var(--border); }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f9fafb; }

.section-divider { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

@media (max-width: 900px) {
  .sidebar-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero-content { grid-template-columns: 1fr; }
  .profile-body { grid-template-columns: 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-center { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ===================== MOBILE FIXES ===================== */
@media (max-width: 768px) {
  /* Nav */
  nav { padding: 0 14px; }
  .nav-logo { font-size: 17px; }
  .nav-center { display: none; }
  .nav-right { gap: 6px; }
  .nav-right .btn { padding: 7px 10px; font-size: 12px; }
  .lang-toggle { display: none; }

  /* Hero */
  .hero-section { min-height: auto; padding: 20px 0 0; }
  .hero-content {
    grid-template-columns: 1fr !important;
    padding: 24px 16px 0 !important;
    gap: 24px !important;
  }
  .hero h1 { font-size: 28px !important; letter-spacing: -0.5px; }
  .hero-desc { font-size: 14px !important; margin-bottom: 20px !important; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 12px 20px; font-size: 14px; width: 100%; text-align: center; }
  .hero-badge { font-size: 10px; }

  /* Hero card */
  .hero-card { border-radius: 16px; padding: 20px; margin: 0 0 20px; }
  .hero-stats { gap: 8px; }
  .hero-stat strong { font-size: 16px; }
  .hero-stat span { font-size: 10px; }

  /* Sections */
  .section { padding: 40px 16px; }
  .section-title { font-size: 24px !important; }
  .section-sub { font-size: 14px; }

  /* Photo gallery */
  .photo-gallery { height: 200px !important; grid-template-columns: 1fr !important; }
  .photo-gallery img:not(:first-child) { display: none; }
  .photo-gallery .main-photo { grid-row: auto; }

  /* Serve grid */
  .serve-grid { grid-template-columns: 1fr !important; }

  /* Sidebar layout */
  .sidebar-layout { grid-template-columns: 1fr !important; }
  .sidebar { position: static !important; }

  /* Results grid */
  .results-grid { grid-template-columns: 1fr !important; }

  /* Profile */
  .profile-body { grid-template-columns: 1fr !important; padding: 0 16px 40px !important; margin-top: -20px !important; }
  .profile-hero { padding: 32px 16px 60px; }
  .profile-hero h1 { font-size: 22px; }

  /* Dashboard */
  .dash-layout { grid-template-columns: 1fr !important; padding: 16px !important; gap: 16px !important; }
  .dash-sidebar { position: static !important; }
  .stat-grid { grid-template-columns: 1fr 1fr !important; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* Form */
  .form-row { grid-template-columns: 1fr !important; }

  /* Dark accommodation section */
  #page-home > div[style*="background:var(--dark)"] .section-inner > div,
  #page-home > div[style*="background:linear-gradient"] .section-inner > div {
    grid-template-columns: 1fr !important;
  }
  #page-home > div[style*="background:linear-gradient(135deg,#0d3d22"] > div > div {
    grid-template-columns: 1fr !important;
  }

  /* Join page */
  #page-join { padding: 20px 16px 40px; }
  #page-join > div { padding: 20px 0 40px !important; }

  /* Modal */
  .modal { padding: 24px 20px; margin: 10px; }

  /* Trust bar */
  .trust-bar { gap: 12px !important; padding: 12px !important; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 24px !important; }
  .nav-logo { font-size: 15px; }
}

/* Social icons row in footer */
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px 0 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 24px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  text-decoration: none;
}
.footer-social a:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
  transform: translateY(-2px);
}
