/* ============================================
   BirkinBagStock — Luxury Theme
   ============================================ */

:root {
  --gold: #c8a96e;
  --gold-light: #ddc99b;
  --gold-dark: #a88a4e;
  --black: #1a1a1a;
  --dark: #2d2d2d;
  --charcoal: #444;
  --grey: #888;
  --light-grey: #e8e4df;
  --cream: #f9f6f1;
  --white: #fff;
  --sand: #f2ede6;
  --green: #2d6a4f;
  --red: #9b2335;
  --blue: #1a3a5c;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 4px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--light-grey);
  backdrop-filter: blur(10px);
}
.nav-inner {
  display: flex; align-items: center; gap: 2rem;
  height: 72px;
}
.nav-logo { flex-shrink: 0; }
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--black);
}
.nav-links {
  display: flex; gap: 1.5rem; align-items: center;
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.nav-links a { color: var(--charcoal); transition: color var(--transition); }
.nav-links a:hover { color: var(--gold-dark); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--light-grey);
  box-shadow: var(--shadow-lg); padding: 0.5rem 0; min-width: 200px;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 0.5rem 1.2rem;
  font-size: 0.82rem; text-transform: none;
  letter-spacing: 0; color: var(--charcoal);
}
.nav-dropdown-menu a:hover { background: var(--cream); color: var(--gold-dark); }

.nav-search { margin-left: auto; }
.nav-search-form { display: flex; }
.nav-search-input {
  width: 220px; padding: 0.5rem 1rem;
  border: 1px solid var(--light-grey); border-radius: var(--radius);
  font-size: 0.85rem; background: var(--cream);
  transition: all var(--transition);
}
.nav-search-input:focus {
  outline: none; border-color: var(--gold);
  width: 300px; background: var(--white);
}

.nav-mobile-toggle { display: none; }
.nav-mobile-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--black); margin: 5px 0;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  padding: 8rem 0 6rem;
  background: linear-gradient(135deg, var(--cream) 0%, var(--sand) 50%, #ece4d8 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(200, 169, 110, 0.15) 0%, transparent 70%);
}
.hero-content { position: relative; text-align: center; }
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--black);
}
.hero-title em {
  font-style: italic;
  color: var(--gold-dark);
  font-weight: 400;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: 3rem;
  font-weight: 300;
  line-height: 1.8;
}

.hero-search { max-width: 700px; margin: 0 auto; }
.hero-search-bar {
  display: flex;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--light-grey);
}
.hero-search-input {
  flex: 1; padding: 1.2rem 1.5rem;
  border: none; font-size: 1rem;
  background: transparent;
}
.hero-search-input:focus { outline: none; }
.hero-search-input::placeholder { color: var(--grey); }
.hero-search-btn {
  padding: 1.2rem 2.5rem;
  background: var(--black);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  transition: background var(--transition);
}
.hero-search-btn:hover { background: var(--gold-dark); }

.hero-search-tags {
  display: flex; gap: 0.8rem; align-items: center;
  margin-top: 1rem; justify-content: center;
  flex-wrap: wrap;
}
.hero-search-tags span { font-size: 0.8rem; color: var(--grey); }
.hero-search-tags a {
  font-size: 0.8rem; padding: 0.3rem 0.8rem;
  background: rgba(255,255,255,0.7); border-radius: 20px;
  color: var(--charcoal); border: 1px solid var(--light-grey);
  transition: all var(--transition);
}
.hero-search-tags a:hover {
  background: var(--white); border-color: var(--gold);
  color: var(--gold-dark);
}

/* ============================================
   Stats Bar
   ============================================ */
.stats-bar {
  background: var(--black);
  padding: 1.5rem 0;
}
.stats-grid {
  display: flex; justify-content: center;
  gap: 4rem; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold);
}
.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
}

/* ============================================
   Sections
   ============================================ */
.section { padding: 5rem 0; }
.section-alt { background: var(--cream); }
.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header {
  display: flex; justify-content: space-between;
  align-items: baseline; margin-bottom: 2.5rem;
}
.section-header .section-title { margin-bottom: 0; }
.section-link {
  font-size: 0.85rem; color: var(--gold-dark);
  font-weight: 500; letter-spacing: 0.05em;
}
.section-link:hover { text-decoration: underline; }

.page-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.page-subtitle {
  font-size: 1.05rem; color: var(--charcoal);
  max-width: 650px; margin-bottom: 3rem;
}

/* ============================================
   Size Grid
   ============================================ */
.size-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.size-card {
  display: flex; flex-direction: column;
  align-items: center; padding: 2.5rem 1.5rem;
  background: var(--cream); border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.size-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.size-number {
  font-family: var(--font-serif);
  font-size: 3rem; font-weight: 300;
  color: var(--gold-dark); line-height: 1;
}
.size-label {
  font-size: 0.9rem; font-weight: 500;
  margin-top: 0.5rem; letter-spacing: 0.05em;
}
.size-dim {
  font-size: 0.75rem; color: var(--grey);
  margin-top: 0.3rem;
}

/* ============================================
   Listing Cards
   ============================================ */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.listing-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.listing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.listing-card-link { display: block; flex: 1; }
.listing-card-image {
  position: relative;
  aspect-ratio: 1;
  background: var(--sand);
  overflow: hidden;
}
.listing-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.listing-card:hover .listing-card-image img { transform: scale(1.05); }

.listing-card-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--sand) 0%, var(--cream) 100%);
}
.placeholder-size {
  font-family: var(--font-serif);
  font-size: 2.5rem; font-weight: 300;
  color: var(--gold-dark); opacity: 0.6;
}
.placeholder-size-lg {
  font-family: var(--font-serif);
  font-size: 3rem; font-weight: 300;
  color: var(--gold-dark); opacity: 0.5;
}
.placeholder-color-name {
  font-size: 1rem; color: var(--grey);
  margin-top: 0.5rem;
}

.listing-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 2px;
}
.badge-new { background: var(--gold); color: var(--white); }
.badge-pristine { background: var(--green); color: var(--white); }
.badge-excellent { background: var(--blue); color: var(--white); }
.badge-very-good { background: var(--charcoal); color: var(--white); }
.badge-good { background: var(--grey); color: var(--white); }
.badge-pre-owned { background: var(--charcoal); color: var(--white); }

.listing-card-body { padding: 1.2rem; }
.listing-card-title {
  font-size: 0.9rem; font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-card-meta {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 0.8rem;
}
.listing-card-meta span {
  font-size: 0.75rem; color: var(--grey);
  padding: 0.15rem 0.5rem;
  background: var(--cream); border-radius: 2px;
}
.listing-card-footer {
  display: flex; justify-content: space-between;
  align-items: baseline;
}
.listing-card-price {
  font-family: var(--font-serif);
  font-size: 1.3rem; font-weight: 600;
  color: var(--black);
}
.listing-card-merchant {
  font-size: 0.75rem; color: var(--grey);
  font-weight: 500;
}

.listing-card-cta {
  display: block; text-align: center;
  padding: 0.8rem;
  background: var(--black);
  color: var(--white);
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.05em;
  transition: background var(--transition);
}
.listing-card-cta:hover { background: var(--gold-dark); }

/* ============================================
   Colors Grid
   ============================================ */
.colors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}
.color-chip {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.color-chip:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.color-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.color-name {
  font-size: 0.82rem; font-weight: 500;
}

/* ============================================
   Merchants Grid
   ============================================ */
.merchants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.merchant-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.merchant-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.merchant-card h3 {
  font-size: 1.1rem; margin-bottom: 0.3rem;
}
.merchant-commission {
  font-size: 0.85rem; color: var(--gold-dark);
  font-weight: 500; margin-bottom: 0.8rem;
}
.merchant-desc {
  font-size: 0.85rem; color: var(--grey);
  line-height: 1.5;
}

/* Merchant Detail Cards */
.merchants-list { display: flex; flex-direction: column; gap: 1.5rem; }
.merchant-detail-card {
  padding: 2.5rem;
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
}
.merchant-detail-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 1rem;
}
.merchant-detail-header h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem; font-weight: 500;
}
.commission-badge {
  padding: 0.3rem 0.8rem;
  background: var(--cream);
  color: var(--gold-dark);
  font-size: 0.8rem; font-weight: 600;
  border-radius: 20px;
}
.merchant-detail-meta {
  font-size: 0.82rem; color: var(--grey);
  margin: 1rem 0;
}
.merchant-detail-actions {
  display: flex; gap: 1rem; margin-top: 1.5rem;
}

/* ============================================
   Guides Grid
   ============================================ */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.guide-card {
  padding: 2rem;
  background: var(--cream);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.guide-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.guide-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem; margin-bottom: 0.5rem;
}
.guide-card p {
  font-size: 0.85rem; color: var(--charcoal);
  line-height: 1.6;
}

/* Guide Page Layout */
.guide-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
}
.guide-sidebar { position: sticky; top: 90px; align-self: start; }
.guide-sidebar h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem; margin-bottom: 1rem;
}
.guide-nav { display: flex; flex-direction: column; gap: 0.3rem; }
.guide-nav a {
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem; color: var(--charcoal);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.guide-nav a:hover { background: var(--cream); }
.guide-nav a.active {
  background: var(--cream);
  color: var(--gold-dark);
  font-weight: 500;
}

.guide-content h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem; font-weight: 400;
  margin-bottom: 2rem;
}
.guide-body {
  font-size: 1rem; line-height: 1.8;
  color: var(--dark);
}
.guide-body h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem; margin: 2rem 0 1rem;
}
.guide-body p { margin-bottom: 1rem; }
.guide-body ul {
  margin: 1rem 0; padding-left: 1.5rem;
  list-style: disc;
}
.guide-body li { margin-bottom: 0.5rem; }

.guide-cta {
  margin-top: 3rem; padding: 2.5rem;
  background: var(--cream);
  border-radius: var(--radius);
  text-align: center;
}
.guide-cta h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem; margin-bottom: 1rem;
}

/* ============================================
   Search Page
   ============================================ */
.search-page { padding: 2rem 0 5rem; }
.search-header { margin-bottom: 2rem; }
.search-header h1 {
  font-family: var(--font-serif);
  font-size: 1.8rem; font-weight: 400;
}
.search-count {
  font-size: 0.85rem; color: var(--grey);
  margin-top: 0.3rem;
}
.parsed-info {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-top: 0.5rem; align-items: center;
}
.parsed-info > span:first-child {
  font-size: 0.8rem; color: var(--grey);
}
.parsed-tag {
  font-size: 0.75rem; padding: 0.2rem 0.6rem;
  background: var(--cream); border: 1px solid var(--gold-light);
  color: var(--gold-dark); border-radius: 20px;
}

.search-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
}

/* Filters */
.filters-sidebar {
  position: sticky; top: 90px; align-self: start;
}
.filters-toggle {
  display: none;
  padding: 0.6rem 1.2rem;
  background: var(--cream);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.filter-group { margin-bottom: 1.5rem; }
.filter-group label {
  display: block;
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.filter-options { display: flex; flex-direction: column; gap: 0.3rem; }
.filter-option {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; color: var(--dark);
  cursor: pointer;
  font-weight: 400; text-transform: none;
  letter-spacing: 0;
}
.filter-select {
  width: 100%; padding: 0.5rem;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  font-size: 0.85rem;
  background: var(--white);
}
.filter-select:focus { outline: none; border-color: var(--gold); }
.filter-input {
  width: 100%; padding: 0.5rem;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  font-size: 0.85rem;
}
.filter-input:focus { outline: none; border-color: var(--gold); }
.price-range {
  display: flex; gap: 0.5rem; align-items: center;
}
.price-range span { font-size: 0.8rem; color: var(--grey); }

.filter-submit {
  width: 100%; padding: 0.7rem;
  background: var(--black); color: var(--white);
  border: none; border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.05em;
  transition: background var(--transition);
  margin-bottom: 0.5rem;
}
.filter-submit:hover { background: var(--gold-dark); }
.filter-clear {
  display: block; text-align: center;
  font-size: 0.8rem; color: var(--grey);
}
.filter-clear:hover { color: var(--gold-dark); }

/* No Results */
.no-results {
  text-align: center; padding: 4rem 2rem;
}
.no-results h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem; margin-bottom: 0.5rem;
}
.no-results p {
  color: var(--grey); margin-bottom: 1.5rem;
}
.no-results-suggestions {
  display: flex; gap: 0.8rem;
  justify-content: center;
}
.no-results-suggestions a {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.no-results-suggestions a:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

/* ============================================
   Listing Detail Page
   ============================================ */
.listing-page { padding: 2rem 0 5rem; }
.breadcrumbs {
  font-size: 0.8rem; color: var(--grey);
  margin-bottom: 2rem;
}
.breadcrumbs a:hover { color: var(--gold-dark); }

.listing-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.listing-image-main {
  aspect-ratio: 1;
  background: var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
}
.listing-image-main img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.listing-image-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--sand) 0%, var(--cream) 100%);
}

.listing-merchant-badge {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}
.listing-title {
  font-family: var(--font-serif);
  font-size: 2rem; font-weight: 400;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
.listing-price {
  font-family: var(--font-serif);
  font-size: 2.5rem; font-weight: 600;
  margin-bottom: 2rem;
}
.listing-currency {
  font-size: 1rem; color: var(--grey);
  font-weight: 400;
}

.listing-specs { margin-bottom: 2rem; }
.spec-row {
  display: flex; justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--light-grey);
}
.spec-label {
  font-size: 0.85rem; color: var(--grey);
  font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.05em;
}
.spec-value { font-size: 0.9rem; font-weight: 500; }
.condition-badge {
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 2px;
}

.listing-description {
  font-size: 1rem; color: var(--dark);
  line-height: 1.8; margin-bottom: 2rem;
}

.listing-cta {
  display: block; width: 100%;
  padding: 1.2rem; text-align: center;
  background: var(--gold-dark);
  color: var(--white);
  font-size: 1rem; font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.listing-cta:hover { background: var(--gold); }
.listing-cta-note {
  font-size: 0.75rem; color: var(--grey);
  text-align: center; margin-top: 0.5rem;
}

/* Price Analysis */
.price-analysis {
  margin-top: 2.5rem; padding: 2rem;
  background: var(--cream); border-radius: var(--radius);
  border: 1px solid var(--light-grey);
}
.price-analysis h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem; margin-bottom: 1rem;
}
.analysis-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-bottom: 1rem;
}
.analysis-item {
  display: flex; flex-direction: column; gap: 0.2rem;
}
.analysis-label {
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--grey);
}
.analysis-value { font-size: 0.9rem; font-weight: 600; }
.verdict-below-market { color: var(--green); }
.verdict-fair-price { color: var(--blue); }
.verdict-above-market { color: var(--red); }
.analysis-reasoning {
  font-size: 0.85rem; color: var(--dark);
  font-style: italic;
}
.analysis-disclaimer {
  font-size: 0.72rem; color: var(--grey);
  margin-top: 0.5rem;
}

.similar-section {
  margin-top: 4rem; padding-top: 3rem;
  border-top: 1px solid var(--light-grey);
}
.similar-section h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem; margin-bottom: 1.5rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block; padding: 0.8rem 2rem;
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--black); color: var(--white);
  border: 1px solid var(--black);
}
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-secondary {
  background: transparent; color: var(--black);
  border: 1px solid var(--light-grey);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-dark); }

/* ============================================
   Chat Widget
   ============================================ */
.chat-widget {
  position: fixed; bottom: 2rem; right: 2rem;
  z-index: 1000;
}
.chat-toggle {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--black); color: var(--white);
  border-radius: 30px; box-shadow: var(--shadow-lg);
  font-size: 0.85rem; font-weight: 500;
  transition: background var(--transition);
}
.chat-toggle:hover { background: var(--gold-dark); }
.chat-toggle svg { width: 18px; height: 18px; }

.chat-panel {
  display: none; position: absolute;
  bottom: 60px; right: 0;
  width: 380px; max-height: 500px;
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.open { display: flex; }

.chat-header {
  display: flex; justify-content: space-between;
  align-items: center; padding: 1rem 1.2rem;
  background: var(--black); color: var(--white);
  font-size: 0.85rem; font-weight: 500;
}
.chat-close {
  color: var(--white); font-size: 1.5rem;
  line-height: 1;
}
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 1rem; max-height: 340px;
}
.chat-message {
  margin-bottom: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.chat-message.bot {
  background: var(--cream);
  margin-right: 2rem;
}
.chat-message.user {
  background: var(--black);
  color: var(--white);
  margin-left: 2rem;
}
.chat-message p { margin: 0; }

.chat-input {
  display: flex;
  border-top: 1px solid var(--light-grey);
}
.chat-input input {
  flex: 1; padding: 0.8rem 1rem;
  border: none; font-size: 0.85rem;
}
.chat-input input:focus { outline: none; }
.chat-input button {
  padding: 0.8rem 1.2rem;
  background: var(--black); color: var(--white);
  font-size: 0.8rem; font-weight: 500;
  border: none;
  transition: background var(--transition);
}
.chat-input button:hover { background: var(--gold-dark); }

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer p {
  font-size: 0.82rem; line-height: 1.7;
}
.footer ul li { margin-bottom: 0.4rem; }
.footer ul a {
  font-size: 0.82rem;
  transition: color var(--transition);
}
.footer ul a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.72rem; color: rgba(255,255,255,0.4);
  margin-bottom: 0.3rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .listing-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-inner { gap: 1rem; }
  .nav-search-input { width: 160px; }

  .hero { padding: 5rem 0 4rem; }
  .hero-title { font-size: 3rem; }

  .size-grid { grid-template-columns: repeat(2, 1fr); }
  .listings-grid { grid-template-columns: repeat(2, 1fr); }

  .search-layout { grid-template-columns: 1fr; }
  .filters-sidebar { display: none; position: fixed; inset: 0; z-index: 200; background: var(--white); padding: 2rem; overflow-y: auto; }
  .filters-sidebar.open { display: block; }
  .filters-toggle { display: block; }

  .guide-layout { grid-template-columns: 1fr; }
  .guide-sidebar { position: static; }

  .stats-grid { gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }

  .chat-panel { width: 320px; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .listings-grid { grid-template-columns: 1fr; }
  .hero-search-bar { flex-direction: column; }
  .hero-search-btn { border-radius: 0; }
  .merchant-detail-actions { flex-direction: column; }
}
