/*
Theme Name: MyCollegeSpot
Theme URI: https://mycollegespot.com
Author: MyCollegeSpot
Author URI: https://mycollegespot.com
Description: The #1 college housing marketplace theme. Find rooms, post ads, and connect with compatible roommates near campus.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mycollegespot
Tags: custom-menu, featured-images, full-width-template, threaded-comments, translation-ready, blog, education, real-estate
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --navy:       #1a2a5e;
  --blue:       #1e3a8a;
  --blue-mid:   #2563eb;
  --gold:       #f59e0b;
  --gold-light: #fcd34d;
  --gold-dark:  #d97706;
  --green:      #10b981;
  --white:      #ffffff;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-400:   #94a3b8;
  --gray-600:   #475569;
  --gray-800:   #1e293b;
  --radius:     12px;
  --radius-lg:  16px;
  --shadow:     0 4px 24px rgba(26,42,94,.12);
  --shadow-md:  0 8px 32px rgba(26,42,94,.18);
  --shadow-lg:  0 16px 48px rgba(26,42,94,.22);
  --transition: 0.22s ease;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-mid); transition: color var(--transition); }
a:hover { color: var(--navy); }

h1,h2,h3,h4,h5,h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.2;
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5em; }

/* =========================================================
   LAYOUT HELPERS
   ========================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 800px; }
.container--wide   { max-width: 1400px; }

.section { padding: 64px 0; }
.section--alt { background: var(--gray-50); }
.section--dark { background: var(--navy); color: #fff; }
.section--gold { background: var(--gold); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* =========================================================
   SECTION HEADERS
   ========================================================= */
.section-header { text-align: center; margin-bottom: 48px; }

.section-eyebrow {
  display: inline-block;
  color: var(--gold-dark);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  margin-bottom: 14px;
}

.section-header p {
  color: var(--gray-600);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn--primary   { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--primary:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--gold      { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,.35); }

.btn--outline   { background: transparent; color: var(--navy); border-color: var(--gray-200); }
.btn--outline:hover { border-color: var(--navy); background: var(--gray-50); color: var(--navy); }

.btn--outline-white { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline-white:hover { background: rgba(255,255,255,.2); border-color: #fff; color: #fff; }

.btn--lg  { padding: 15px 34px; font-size: 1.05rem; }
.btn--sm  { padding: 8px 16px; font-size: .82rem; }
.btn--full { width: 100%; }

.btn--danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn--danger:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }

/* =========================================================
   BADGES
   ========================================================= */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.badge--room     { background: #dbeafe; color: #1e40af; }
.badge--roommate { background: #e0e7ff; color: #4338ca; }
.badge--landlord { background: #d1fae5; color: #065f46; }
.badge--featured { background: var(--gold); color: var(--navy); }
.badge--verified { background: #d1fae5; color: #065f46; }
.badge--new      { background: #fee2e2; color: #991b1b; }
.badge--premium  { background: var(--navy); color: #fff; }

/* =========================================================
   FORMS
   ========================================================= */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-weight: 700;
  font-size: .875rem;
  color: var(--gray-800);
  margin-bottom: 6px;
}
.form-label .required { color: #dc2626; margin-left: 3px; }

.form-control {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: 'Nunito', sans-serif;
  font-size: .95rem;
  color: var(--gray-800);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }

.form-control--dark {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}
.form-control--dark::placeholder { color: rgba(255,255,255,.45); }
.form-control--dark:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,158,11,.2); }
.form-control--dark option { background: var(--navy); color: #fff; }

.form-hint { font-size: .8rem; color: var(--gray-600); margin-top: 5px; }
.form-error { font-size: .8rem; color: #dc2626; margin-top: 5px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .form-group--full { grid-column: 1 / -1; }

/* =========================================================
   CARDS
   ========================================================= */
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,.25);
}

.card__media {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--blue-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.card__badge-wrap {
  position: absolute;
  top: 12px; left: 12px;
  display: flex; gap: 6px; flex-wrap: wrap;
}

.card__price-tag {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(0,0,0,.65);
  color: #fff;
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: 900;
  font-size: .9rem;
  font-family: 'Nunito', sans-serif;
}

.card__body { padding: 20px; }

.card__price {
  color: var(--gold-dark);
  font-size: 1.15rem;
  font-weight: 900;
  font-family: 'Nunito', sans-serif;
  margin-bottom: 5px;
}

.card__title {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.35;
}

.card__meta {
  color: var(--gray-600);
  font-size: .85rem;
  margin-bottom: 12px;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.card__author { font-size: .8rem; color: var(--gray-600); }

/* =========================================================
   NAVIGATION
   ========================================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img { height: 54px; width: auto; }

.site-logo__text {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.primary-nav { display: flex; align-items: center; gap: 2px; }

.primary-nav a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  transition: all var(--transition);
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  background: rgba(245,158,11,.18);
  color: var(--gold-light);
}

.nav-auth { display: flex; align-items: center; gap: 10px; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #fff;
  font-size: 1.4rem;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a8a 55%, #1e40af 100%);
  padding: 90px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(245,158,11,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(245,158,11,.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero__badge {
  display: inline-block;
  background: rgba(245,158,11,.2);
  border: 1px solid rgba(245,158,11,.4);
  color: var(--gold-light);
  padding: 7px 20px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 28px;
  position: relative;
}

.hero__title {
  color: #fff;
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  line-height: 1.12;
  margin-bottom: 22px;
  position: relative;
}

.hero__title em { color: var(--gold-light); font-style: italic; }

.hero__subtitle {
  color: rgba(255,255,255,.8);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 40px;
  position: relative;
  font-family: 'Nunito', sans-serif;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
  position: relative;
}

.hero__stats {
  display: flex;
  gap: 56px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.hero-stat__num {
  display: block;
  color: var(--gold-light);
  font-size: 2.2rem;
  font-weight: 900;
  font-family: 'Nunito', sans-serif;
  line-height: 1;
}

.hero-stat__label {
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  font-weight: 600;
  margin-top: 4px;
}

/* =========================================================
   SEARCH BAR
   ========================================================= */
.search-section {
  background: var(--gray-50);
  padding: 40px 0;
  border-bottom: 1px solid var(--gray-200);
}

.search-tabs {
  display: flex;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--gray-200);
  margin-bottom: 24px;
  max-width: 600px;
}

.search-tab {
  flex: 1;
  padding: 11px;
  text-align: center;
  background: #fff;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--gray-600);
  border-right: 1px solid var(--gray-200);
}
.search-tab:last-child { border-right: none; }

.search-tab.active,
.search-tab:hover {
  background: var(--navy);
  color: #fff;
}

.search-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.search-form .form-control { flex: 1; min-width: 160px; }

/* =========================================================
   LISTING GRID PAGE
   ========================================================= */
.listings-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 40px 0;
}

.listings-sidebar { position: sticky; top: 90px; align-self: start; }

.filter-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.filter-card h4 {
  font-size: .95rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-100);
}

.filter-group { margin-bottom: 14px; }
.filter-group label { font-size: .85rem; font-weight: 700; margin-bottom: 6px; display: block; }

.checkbox-list { list-style: none; padding: 0; }
.checkbox-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: .875rem;
}

.price-range { display: flex; gap: 10px; align-items: center; }
.price-range input { flex: 1; }

.listings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.listings-count {
  font-size: .9rem;
  color: var(--gray-600);
  font-weight: 700;
}

.listings-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
}

/* =========================================================
   SINGLE LISTING DETAILS
   ========================================================= */
.listing-hero {
  background: linear-gradient(135deg, var(--navy), var(--blue-mid));
  height: 420px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.listing-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.listing-hero__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  padding: 32px;
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery-grid .main { grid-row: 1 / 3; }
.gallery-grid > div {
  background: linear-gradient(135deg, var(--navy), var(--blue-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: opacity var(--transition);
}
.gallery-grid > div:hover { opacity: .85; }
.gallery-grid .main { font-size: 5rem; }

.gallery-grid .more-overlay::after {
  content: attr(data-count);
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem; font-weight: 800;
  font-family: 'Nunito', sans-serif;
}

.listing-details-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  padding: 36px 0 60px;
}

.detail-block {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 22px;
}

.detail-block__title {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 8px;
}

.props-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.prop-item {
  background: var(--gray-50);
  border-radius: 10px;
  padding: 12px 14px;
}

.prop-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.prop-value {
  font-size: .95rem;
  font-weight: 800;
  color: var(--navy);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.amenity {
  padding: 9px 12px;
  border-radius: 9px;
  font-size: .83rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
}

.amenity--yes { background: #d1fae5; color: #065f46; }
.amenity--no  { background: #fee2e2; color: #991b1b; }

/* Sidebar */
.listing-sidebar { position: sticky; top: 88px; align-self: start; }

.contact-card {
  background: #fff;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.contact-card__header {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
}

.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: .88rem;
}

.contact-info-row:last-child { border-bottom: none; }
.ci-label { font-weight: 700; color: var(--gray-600); flex: 0 0 80px; }
.ci-value { font-weight: 700; color: var(--navy); }

/* Compatibility bars */
.compat-row { margin-bottom: 10px; }
.compat-head { display: flex; justify-content: space-between; font-size: .83rem; font-weight: 700; margin-bottom: 4px; }
.compat-track { height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden; }
.compat-fill { height: 100%; background: linear-gradient(90deg, var(--green), #34d399); border-radius: 4px; }

/* Price row */
.price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.price-row__amount { font-size: 2.2rem; font-weight: 900; color: var(--navy); font-family: 'Nunito', sans-serif; }
.price-row__period { font-size: .9rem; color: var(--gray-600); font-weight: 600; }
.price-row__avail { margin-left: auto; background: #d1fae5; color: #065f46; padding: 6px 14px; border-radius: 8px; font-size: .82rem; font-weight: 700; font-family: 'Nunito', sans-serif; }

/* =========================================================
   PRICING SECTION
   ========================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: #fff;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.pricing-card--featured {
  border-color: var(--gold);
  transform: scale(1.04);
  box-shadow: 0 12px 40px rgba(245,158,11,.22);
}

.pricing-card--featured:hover { transform: scale(1.04) translateY(-4px); }

.pricing-popular {
  position: absolute;
  top: -15px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  padding: 5px 20px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 900;
  white-space: nowrap;
}

.pricing-icon { font-size: 2.2rem; margin-bottom: 12px; }
.pricing-name { font-size: 1.3rem; font-weight: 900; color: var(--navy); }
.pricing-price { font-size: 2.4rem; font-weight: 900; color: var(--gold-dark); margin: 8px 0; font-family: 'Nunito', sans-serif; }
.pricing-price span { font-size: .95rem; color: var(--gray-600); font-weight: 600; }
.pricing-sub { font-size: .85rem; color: var(--gray-600); margin-bottom: 20px; }

.pricing-features { list-style: none; padding: 0; text-align: left; margin-bottom: 24px; }
.pricing-features li {
  padding: 9px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: .88rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li::before { content: '✓'; color: var(--green); font-weight: 900; flex-shrink: 0; }

/* =========================================================
   HOW IT WORKS STEPS
   ========================================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.step { text-align: center; position: relative; }

.step::after {
  content: '→';
  position: absolute;
  right: -20px; top: 28px;
  font-size: 1.4rem;
  color: var(--gray-400);
}

.steps-grid .step:last-child::after { display: none; }

.step__icon {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 18px;
  box-shadow: 0 8px 24px rgba(26,42,94,.25);
}

.step__num {
  position: absolute;
  top: -6px; right: calc(50% - 46px);
  width: 22px; height: 22px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}

.step h4 { color: var(--navy); font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; font-family: 'Nunito', sans-serif; }
.step p { color: var(--gray-600); font-size: .9rem; line-height: 1.65; }

/* =========================================================
   USER AUTH PAGES
   ========================================================= */
.auth-page {
  min-height: calc(100vh - 72px);
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a8a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}

.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo img { height: 64px; margin: 0 auto 12px; }
.auth-logo h2 { font-size: 1.6rem; color: var(--navy); }
.auth-logo p { color: var(--gray-600); font-size: .9rem; font-family: 'Nunito', sans-serif; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--gray-400);
  font-size: .85rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: .875rem;
  color: var(--gray-600);
}

/* =========================================================
   DASHBOARD / USER ACCOUNT
   ========================================================= */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 36px 0 60px;
}

.dash-sidebar { position: sticky; top: 88px; align-self: start; }

.dash-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.dash-user {
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--navy), var(--blue-mid));
  color: #fff;
}

.dash-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 12px;
  border: 3px solid rgba(255,255,255,.3);
}

.dash-name { font-size: 1.1rem; font-weight: 800; }
.dash-role { font-size: .8rem; opacity: .75; margin-top: 4px; }

.dash-nav { list-style: none; padding: 12px 0; }
.dash-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.dash-nav li a:hover,
.dash-nav li.active a {
  background: var(--gray-50);
  color: var(--navy);
  border-left-color: var(--gold);
}

.dash-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.dash-stat {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.dash-stat__num { font-size: 2rem; font-weight: 900; color: var(--navy); font-family: 'Nunito', sans-serif; }
.dash-stat__label { font-size: .8rem; color: var(--gray-600); font-weight: 700; margin-top: 4px; }

/* Content panels */
.dash-panel { display: none; }
.dash-panel.active { display: block; }

.dash-panel__title {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.dash-panel__sub {
  color: var(--gray-600);
  font-family: 'Nunito', sans-serif;
  font-size: .95rem;
  margin-bottom: 24px;
}

/* =========================================================
   MAP WIDGET
   ========================================================= */
.map-widget {
  height: 360px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #e0e7ff, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #93c5fd;
  flex-direction: column;
  gap: 10px;
  color: var(--navy);
  font-weight: 700;
}

/* =========================================================
   REVIEWS
   ========================================================= */
.review-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.review-stars { color: var(--gold); font-size: .9rem; }
.review-date { font-size: .75rem; color: var(--gray-400); margin-left: auto; }
.review-name { font-weight: 800; font-size: .9rem; }

/* =========================================================
   SAFETY BOX
   ========================================================= */
.safety-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 16px;
  font-size: .85rem;
  color: #92400e;
  line-height: 1.65;
}
.safety-box strong { display: block; margin-bottom: 5px; }

/* =========================================================
   SIMILAR LISTINGS (sidebar)
   ========================================================= */
.similar-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  margin-bottom: 10px;
}
.similar-card:hover { border-color: var(--blue-mid); box-shadow: var(--shadow); }
.similar-thumb {
  width: 56px; height: 56px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy), var(--blue-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.similar-info { flex: 1; min-width: 0; }
.similar-price { font-size: .88rem; font-weight: 900; color: var(--gold-dark); }
.similar-title { font-size: .82rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--navy); }
.similar-loc { font-size: .78rem; color: var(--gray-600); }

/* =========================================================
   QUIZ CARD
   ========================================================= */
.quiz-card {
  background: linear-gradient(135deg, var(--navy), #1e40af);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
}
.quiz-card h3 { font-size: 1.2rem; color: #fff; margin-bottom: 8px; }
.quiz-card p { font-size: .88rem; opacity: .8; margin-bottom: 16px; font-family: 'Nunito', sans-serif; }

/* =========================================================
   FOOTER
   ========================================================= */
#site-footer {
  background: var(--gray-800);
  color: rgba(255,255,255,.65);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-brand img { height: 64px; margin-bottom: 14px; }
.footer-brand p { font-size: .9rem; line-height: 1.7; max-width: 320px; }

.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  transition: all var(--transition);
}
.social-btn:hover { background: var(--gold); }

.footer-col h5 {
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  font-family: 'Nunito', sans-serif;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .875rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================
   ADMIN / CUSTOMIZER HELPERS
   ========================================================= */
.wp-admin body { background: var(--gray-50) !important; }

/* Gutenberg block editor overrides */
.wp-block { max-width: 100%; }

/* =========================================================
   ALERTS & NOTICES
   ========================================================= */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: .9rem;
  font-weight: 700;
  border-left: 4px solid;
}
.alert--success { background: #d1fae5; color: #065f46; border-color: var(--green); }
.alert--error   { background: #fee2e2; color: #991b1b; border-color: #dc2626; }
.alert--info    { background: #dbeafe; color: #1e40af; border-color: var(--blue-mid); }
.alert--warning { background: #fef3c7; color: #92400e; border-color: var(--gold); }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 32px 0;
}

.pagination a, .pagination span {
  min-width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  border: 2px solid var(--gray-200);
  color: var(--gray-600);
  transition: all var(--transition);
}

.pagination a:hover, .pagination .current {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .listings-layout { grid-template-columns: 240px 1fr; }
  .listing-details-layout { grid-template-columns: 1fr 320px; }
  .dashboard-layout { grid-template-columns: 220px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid .step::after { display: none; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .hamburger { display: block; }
  .primary-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--navy);
    padding: 24px;
    z-index: 100;
    gap: 4px;
  }
  .listings-layout,
  .listing-details-layout,
  .dashboard-layout { grid-template-columns: 1fr; }
  .listings-sidebar { position: static; }
  .listing-sidebar { position: static; }
  .dash-sidebar { position: static; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pricing-card--featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: 1fr 1fr; }
  .props-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px; }
  .gallery-grid .main { grid-row: auto; }
  .hero__stats { gap: 28px; }
}

@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 20px; }
}
