/* ============================================
   InfoTrasteros — Main Stylesheet
   Mobile-first, CSS custom properties
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-primary: #0D1B2A;
  --color-secondary: #B85C38;
  --color-secondary-dark: #9A4A2C;
  --color-accent: #B85C38;
  --color-bg: #FAFAF7;
  --color-white: #FFFFFF;
  --color-text: #1C2B3A;
  --color-text-muted: #5A6B7A;
  --color-text-light: #8A9BB0;
  --color-success: #10B981;
  --color-border: #E4E0D8;

  /* Province colors */
  --province-sevilla: #DC2626;
  --province-malaga: #2563EB;
  --province-cadiz: #7C3AED;
  --province-granada: #059669;
  --province-cordoba: #D97706;
  --province-almeria: #0891B2;
  --province-jaen: #65A30D;
  --province-huelva: #DB2777;

  /* Spacing */
  --section-padding: 80px;
  --section-padding-mobile: 48px;
  --container-max: 1200px;
  --border-radius: 12px;
  --border-radius-sm: 6px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.10), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);

  /* Transitions */
  --transition: 0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

img { max-width: 100%; display: block; }
a { color: var(--color-secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-secondary-dark); }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { color: var(--color-text-muted); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1280px) { .container { padding: 0 40px; } }

.section { padding: var(--section-padding-mobile) 0; }
@media (min-width: 1024px) { .section { padding: var(--section-padding) 0; } }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 640px; margin: 0 auto; font-size: 1.125rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}
.btn-primary:hover {
  background-color: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}
.btn-outline:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-primary);
  box-shadow: none;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.25); }

.navbar-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 24px;
}

.navbar-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.navbar-logo span { color: var(--color-secondary); }

.navbar-links {
  display: none;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}
@media (min-width: 1024px) { .navbar-links { display: flex; } }

.nav-link {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  transition: color var(--transition), background-color var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.02em;
}
.nav-link:hover { color: #fff; background-color: transparent; }
.nav-link.active { color: var(--color-secondary); background-color: transparent; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { color: rgba(255,255,255,0.75); letter-spacing: 0.02em; }
.nav-dropdown-toggle:hover { color: #fff; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #162438;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--border-radius);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  padding: 8px;
  padding-top: 16px;
  min-width: 200px;
  display: none;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: rgba(255,255,255,0.7);
  font-size: 0.83rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition);
}
.nav-dropdown-menu a:hover { color: #fff; background: rgba(255,255,255,0.06); }

.navbar-cta { display: none; margin-left: auto; }
@media (min-width: 1024px) { .navbar-cta { display: inline-flex; } }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
@media (min-width: 1024px) { .hamburger { display: none; } }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.navbar-mobile {
  display: none;
  flex-direction: column;
  background: #162438;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 20px;
  gap: 4px;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.navbar-mobile.open { display: flex; }
.navbar-mobile a {
  display: block;
  padding: 12px 16px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.navbar-mobile a:hover { color: #fff; background-color: rgba(255,255,255,0.06); }
.navbar-mobile .mobile-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  padding: 12px 16px 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-section-title::after {
  content: '▾';
  font-size: 0.85rem;
  transition: transform var(--transition);
}
.mobile-section-title.open::after {
  transform: rotate(180deg);
}
.mobile-section-items {
  display: none;
  flex-direction: column;
  gap: 4px;
}
.mobile-section-items.open {
  display: flex;
}
.navbar-mobile .btn { margin-top: 8px; text-align: center; justify-content: center; background: var(--color-secondary); border-color: var(--color-secondary); color: #fff; }
.navbar-mobile .btn:hover { background: var(--color-secondary-dark); border-color: var(--color-secondary-dark); }

/* Spacer for fixed navbar */
.navbar-spacer { height: 68px; }

/* --- Hero --- */
.hero {
  background-color: var(--color-primary);
  background-image: linear-gradient(135deg, #0D1B2A 0%, #162438 50%, #0D1B2A 100%);
  color: var(--color-white);
  padding: 40px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse 60% 50% at 80% 50%, rgba(184,92,56,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(37,99,235,0.08) 0%, transparent 60%);
}

.hero-inner { position: relative; text-align: center; max-width: 860px; margin: 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(184, 92, 56, 0.15);
  border: 1px solid rgba(184, 92, 56, 0.3);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 20px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 36px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.hero-trust-item {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-trust-divider { color: rgba(255,255,255,0.3); }

/* --- Trust Stats Bar --- */
.stats-bar {
  background-color: var(--color-white);
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
}

.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}
@media (min-width: 768px) { .stats-bar-inner { grid-template-columns: repeat(4, 1fr); } }

.stat-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stat-icon { font-size: 2rem; margin-bottom: 4px; }
.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
}
.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* --- Why Section --- */
.why-section { background-color: var(--color-white); }

.why-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .why-cards { grid-template-columns: repeat(3, 1fr); } }

.why-card {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-secondary);
}
.why-card-icon {
  width: 56px;
  height: 56px;
  background-color: rgba(184, 92, 56, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.why-card h3 { margin-bottom: 12px; color: var(--color-text); font-size: 1.125rem; }
.why-card p { font-size: 0.95rem; color: var(--color-text-muted); }

/* --- Provider Count Bar --- */
.count-bar {
  background: linear-gradient(135deg, var(--color-primary), #162438);
  color: var(--color-white);
  padding: 40px 0;
}
.count-bar-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}
@media (min-width: 768px) { .count-bar-inner { grid-template-columns: repeat(4, 1fr); } }

.count-item { padding: 8px; }
.count-number { font-size: 2rem; font-weight: 800; color: var(--color-white); }
.count-label { font-size: 0.875rem; color: rgba(255,255,255,0.8); margin-top: 4px; }

/* --- Province Grid --- */
.province-section { background-color: var(--color-bg); }

.province-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .province-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .province-grid { grid-template-columns: repeat(4, 1fr); } }

.province-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--province-color, var(--color-secondary));
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition);
  display: block;
}
.province-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  color: var(--color-text);
}
.province-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}
.province-card-capital { font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: 12px; }
.province-card-count {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--province-color, var(--color-secondary));
  margin-bottom: 4px;
}
.province-card-pop { font-size: 0.8rem; color: var(--color-text-light); }
.province-card-arrow {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--province-color, var(--color-secondary));
  font-weight: 600;
}

/* --- FAQ --- */
.faq-section { background-color: var(--color-white); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  transition: background-color var(--transition);
  gap: 16px;
}
.faq-question:hover { background-color: var(--color-bg); }
.faq-question.open { color: var(--color-secondary); }
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform var(--transition);
  color: var(--color-secondary);
  font-weight: 700;
}
.faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 24px 24px;
}
.faq-answer.open { display: block; }
.faq-answer p { font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.7; }

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #162438 100%);
  padding: 60px 0;
  text-align: center;
}
.cta-section h2, .cta-section p { color: var(--color-white); }
.cta-section h2 { margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 32px; font-size: 1.05rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* --- Quote Form Section --- */
.quote-form-section {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.quote-form-section h2 { color: var(--color-white); margin-bottom: 8px; }
.quote-form-section .subtitle {
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  font-size: 0.95rem;
}
.form-privacy {
  margin-top: 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

/* --- Form --- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.form-label-dark { color: var(--color-text); }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--border-radius-sm);
  color: var(--color-white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), background-color var(--transition);
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: rgba(255,255,255,0.15);
}
.form-input.error, .form-select.error, .form-textarea.error {
  border-color: #ef4444;
}
.form-select option { color: var(--color-text); background: var(--color-white); }
.form-textarea { resize: vertical; min-height: 120px; }

/* Light form (for contact page) */
.form-light .form-input,
.form-light .form-select,
.form-light .form-textarea {
  background-color: var(--color-white);
  border-color: var(--color-border);
  color: var(--color-text);
}
.form-light .form-input::placeholder,
.form-light .form-textarea::placeholder { color: var(--color-text-light); }
.form-light .form-input:focus,
.form-light .form-select:focus,
.form-light .form-textarea:focus {
  border-color: var(--color-secondary);
  background-color: var(--color-white);
}
.form-light .form-label { color: var(--color-text); }

/* Honeypot */
.honeypot { display: none !important; visibility: hidden; }

/* Form messages */
.form-success {
  background-color: #ECFDF5;
  border: 1px solid #6EE7B7;
  color: #065F46;
  border-radius: var(--border-radius-sm);
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  display: none;
}
.form-error-msg {
  background-color: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  border-radius: var(--border-radius-sm);
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  display: none;
}

/* --- Provider Card --- */
.provider-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) { .provider-grid { grid-template-columns: repeat(2, 1fr); } }

.provider-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.provider-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.provider-card-accent {
  height: 4px;
  background-color: var(--province-color, var(--color-secondary));
}
.provider-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 12px; }

.provider-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.provider-card-name { font-size: 1.125rem; font-weight: 700; color: var(--color-text); }

.province-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-white);
  background-color: var(--province-color, var(--color-secondary));
  flex-shrink: 0;
}

.provider-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rating-stars { color: var(--color-accent); font-size: 0.9rem; }
.rating-text { font-size: 0.85rem; color: var(--color-text-muted); font-weight: 500; }

.provider-description { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.6; }

.provider-area {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.provider-area-label { font-weight: 600; color: var(--color-text); flex-shrink: 0; }

.provider-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.provider-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition);
  text-decoration: none;
}
.provider-btn-phone {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #6EE7B7;
}
.provider-btn-phone:hover { background-color: #059669; color: white; border-color: #059669; }
.provider-btn-web {
  background-color: rgba(184, 92, 56, 0.06);
  color: var(--color-secondary-dark);
  border: 1px solid rgba(184, 92, 56, 0.25);
}
.provider-btn-web:hover { background-color: #2563EB; color: white; border-color: #2563EB; }
.provider-btn-email {
  background-color: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FED7AA;
}
.provider-btn-email:hover { background-color: #EA580C; color: white; border-color: #EA580C; }
.provider-btn-maps {
  background-color: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}
.provider-btn-maps:hover { background-color: #0369A1; color: white; border-color: #0369A1; }
.provider-hours { list-style: none; margin-top: 4px; }
.provider-hours summary { display: block; }
.provider-hours-toggle {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  user-select: none;
}
.provider-hours-toggle:hover { color: var(--province-color, var(--color-primary)); }
.provider-hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  row-gap: 2px;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
details[open] .provider-hours-toggle::after { content: " ▾"; }
.provider-hours-toggle::after { content: " ▸"; }

/* --- Filter Bar --- */
.filter-bar { background: var(--color-white); border-bottom: 1px solid var(--color-border); padding: 16px 0; }
.filter-inner { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-label { font-size: 0.875rem; font-weight: 600; color: var(--color-text-muted); margin-right: 4px; }
.filter-btn {
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.filter-btn:hover, .filter-btn.active {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-white);
}

/* No results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
  display: none;
}

/* --- Page Header --- */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #243a5e 100%);
  color: var(--color-white);
  padding: 60px 0 52px;
}
.page-header h1 { color: var(--color-white); margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 600px; }

/* --- Province Info Box --- */
.province-info-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
@media (min-width: 768px) { .province-info-box { grid-template-columns: repeat(4, 1fr); } }

.province-info-item {}
.province-info-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-light); margin-bottom: 4px; }
.province-info-value { font-size: 1rem; font-weight: 600; color: var(--color-text); }

/* --- Price Table --- */
.price-table-section { background: var(--color-white); }
.price-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.price-table th {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 14px 20px;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
}
.price-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:nth-child(even) td { background-color: var(--color-bg); }
.price-table td:first-child { font-weight: 600; color: var(--color-text); }

/* --- Advice Section --- */
.advice-section { background: var(--color-bg); }
.advice-section h2 { margin-bottom: 16px; }
.advice-section p { font-size: 1rem; line-height: 1.8; color: var(--color-text-muted); max-width: 800px; }

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.4fr 1fr; } }

.contact-info-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  height: fit-content;
}
.contact-info-card h3 { margin-bottom: 24px; }
.contact-info-list { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-text {}
.contact-info-text strong { display: block; font-size: 0.875rem; font-weight: 600; color: var(--color-text); margin-bottom: 2px; }
.contact-info-text span, .contact-info-text a { font-size: 0.9rem; color: var(--color-text-muted); }
.contact-info-text a:hover { color: var(--color-secondary); }

.contact-response-badge {
  margin-top: 24px;
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  font-size: 0.875rem;
  color: #065F46;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.provider-section { background: var(--color-bg); padding: 40px 0; }
.provider-section-inner {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 32px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.provider-section-inner h3 { margin-bottom: 12px; }
.provider-section-inner p { margin-bottom: 20px; }

/* --- Footer --- */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

.footer-logo {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.footer-about {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}
.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--color-white); }
.footer-contact li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background-color: var(--color-secondary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 1.125rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  z-index: 999;
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { background-color: var(--color-secondary-dark); transform: translateY(-2px); }

/* --- Directory Page Header with result count --- */
.directory-meta {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.directory-meta-text { font-size: 0.9rem; color: var(--color-text-muted); }
.result-count { font-weight: 600; color: var(--color-text); }

/* --- Utility --- */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-secondary { color: var(--color-secondary); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.hidden { display: none !important; }

/* =============================================================
   PHASE 2 ADDITIONS
   ============================================================= */

/* --- Step List (numbered steps for guide pages) --- */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 32px 0;
}
.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.step-item-content { flex: 1; }
.step-item-content h4 { margin-bottom: 4px; font-size: 1.05rem; }
.step-item-content p { color: var(--color-text-muted); font-size: 0.95rem; margin: 0; }

/* --- Checklist --- */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--color-text);
}
.checklist-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--color-success);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 1px;
}

/* --- Callout Boxes --- */
.callout-box {
  border-left: 4px solid var(--color-secondary);
  background: rgba(184, 92, 56, 0.06);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.95rem;
}
.callout-box strong { display: block; margin-bottom: 4px; }
.callout-box.info  { border-color: var(--color-secondary); background: rgba(184, 92, 56, 0.06); }
.callout-box.success { border-color: var(--color-success); background: #F0FDF4; }
.callout-box.warning { border-color: var(--color-accent); background: #FFFBEB; }
.callout-box.danger  { border-color: #DC2626; background: #FEF2F2; }

/* --- Icon Feature Grid (4-up) --- */
.icon-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0;
}
@media (min-width: 768px) {
  .icon-feature-grid { grid-template-columns: repeat(4, 1fr); }
}
.icon-feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.icon-feature-card .icon { font-size: 2rem; margin-bottom: 10px; }
.icon-feature-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.icon-feature-card p { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; }

/* --- Two Column Grid (text content) --- */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 32px 0;
}
@media (min-width: 768px) {
  .two-col-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Comparison Grid (side-by-side cards) --- */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 32px 0;
}
@media (min-width: 640px) {
  .comparison-grid { grid-template-columns: 1fr 1fr; }
}
.comparison-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.comparison-card-header {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.comparison-card-header.primary { background: var(--color-secondary); color: #fff; }
.comparison-card ul {
  list-style: none;
  padding: 16px 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comparison-card ul li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 8px;
}
.comparison-card ul li::before { content: "✓"; color: var(--color-success); font-weight: 700; flex-shrink: 0; }

/* --- VS Table --- */
.vs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}
.vs-table th {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.vs-table th:first-child { border-radius: var(--border-radius) 0 0 0; }
.vs-table th:last-child  { border-radius: 0 var(--border-radius) 0 0; }
.vs-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}
.vs-table tr:nth-child(even) td { background: var(--color-bg); }
.vs-table .check { color: var(--color-success); font-weight: 700; }
.vs-table .cross { color: #DC2626; font-weight: 700; }

/* --- Feature List --- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-list-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.95rem;
}
.feature-list-item .feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(184, 92, 56, 0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.feature-list-item .feature-text strong { display: block; margin-bottom: 2px; }
.feature-list-item .feature-text p { margin: 0; color: var(--color-text-muted); font-size: 0.88rem; }

/* --- University/City Cards --- */
.uni-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 24px 0;
}
@media (min-width: 640px) {
  .uni-cards-grid { grid-template-columns: repeat(3, 1fr); }
}
.uni-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.uni-card .uni-icon { font-size: 2rem; margin-bottom: 8px; }
.uni-card h4 { margin-bottom: 6px; }
.uni-card p { font-size: 0.88rem; color: var(--color-text-muted); margin: 0 0 12px; }

/* --- Tool Container (interactive tool pages) --- */
.tool-container {
  max-width: 900px;
  margin: 0 auto;
}
.tool-section {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.tool-section h3 { margin-bottom: 4px; font-size: 1.15rem; }
.tool-section .tool-subtitle { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 20px; }

/* --- Item Grid (size calculator) --- */
.item-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .item-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .item-grid { grid-template-columns: repeat(4, 1fr); }
}
.item-card {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 14px 12px;
  text-align: center;
  background: var(--color-bg);
  transition: border-color var(--transition);
}
.item-card:hover { border-color: var(--color-secondary); }
.item-card.active { border-color: var(--color-secondary); background: rgba(184, 92, 56, 0.06); }
.item-card .item-emoji { font-size: 1.6rem; margin-bottom: 6px; }
.item-card .item-name { font-size: 0.8rem; font-weight: 600; color: var(--color-text); margin-bottom: 10px; display: block; }
.qty-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  line-height: 1;
  padding: 0;
}
.qty-btn:hover { background: var(--color-secondary); color: #fff; border-color: var(--color-secondary); }
.qty-display {
  font-size: 0.95rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  color: var(--color-text);
}

/* --- Result Card --- */
.result-card {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--border-radius);
  padding: 28px;
  text-align: center;
  margin-top: 24px;
}
.result-card .result-label { font-size: 0.85rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.result-card .result-value { font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.result-card .result-unit  { font-size: 1rem; opacity: 0.8; margin-bottom: 16px; }
.result-card .result-recommendation {
  background: rgba(255,255,255,0.12);
  border-radius: calc(var(--border-radius) - 4px);
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.result-card .result-price { font-size: 0.88rem; opacity: 0.8; margin-bottom: 20px; }
.result-cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; align-items: center; }
.result-select {
  padding: 8px 12px;
  border-radius: var(--border-radius);
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
}

/* --- Price Comparison Cards --- */
.price-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 20px;
}
@media (min-width: 640px) {
  .price-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .price-cards-grid { grid-template-columns: repeat(4, 1fr); }
}
.price-card {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 20px 16px;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  display: block;
  color: var(--color-text);
}
.price-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.price-card.cheapest { border-color: var(--color-success); }
.price-card .rank-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--color-bg);
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.price-card.cheapest .rank-badge { background: #F0FDF4; color: var(--color-success); }
.price-card .province-name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.price-card .price-range  { font-size: 1.15rem; font-weight: 800; color: var(--color-secondary); }
.price-card .price-per-month { font-size: 0.78rem; color: var(--color-text-muted); }

/* --- Autocomplete / Search Tool --- */
.autocomplete-wrapper { position: relative; }
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: var(--shadow-md);
  max-height: 240px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}
.autocomplete-list.open { display: block; }
.autocomplete-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover,
.autocomplete-item.highlighted { background: rgba(184, 92, 56, 0.06); color: var(--color-secondary); }
.autocomplete-item .muni-province { font-size: 0.78rem; color: var(--color-text-muted); margin-left: auto; }

.search-result-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
  display: none;
}
.search-result-card.visible { display: block; }
.search-result-card .province-badge-lg {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-secondary);
  margin-bottom: 12px;
}
.search-result-card h3 { margin-bottom: 8px; }
.search-result-card .result-stats {
  display: flex;
  gap: 24px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.search-result-card .stat-item .stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-secondary);
  display: block;
}
.search-result-card .stat-item .stat-label { font-size: 0.8rem; color: var(--color-text-muted); }
.nearby-list { margin-top: 16px; }
.nearby-list h4 { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 10px; }
.nearby-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.nearby-tag {
  padding: 4px 12px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.nearby-tag:hover { border-color: var(--color-secondary); color: var(--color-secondary); }

/* --- FAQ Category Headers & Jump Links --- */
.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.jump-link {
  padding: 6px 16px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all var(--transition);
  background: var(--color-white);
}
.jump-link:hover { border-color: var(--color-secondary); color: var(--color-secondary); background: rgba(184, 92, 56, 0.06); }

.faq-category { margin-bottom: 48px; }
.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}
.category-header .cat-icon { font-size: 1.5rem; }
.category-header h2 { font-size: 1.25rem; margin: 0; }

/* --- Size comparator selects toolbar --- */
.comparator-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.comparator-toolbar label { font-weight: 600; font-size: 0.95rem; }
.comparator-toolbar select {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  background: var(--color-white);
  cursor: pointer;
}
.summary-table-wrapper { overflow-x: auto; margin-top: 32px; }
.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  white-space: nowrap;
}
.summary-table th {
  background: var(--color-primary);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
.summary-table td { padding: 9px 14px; border-bottom: 1px solid var(--color-border); }
.summary-table tr:nth-child(even) td { background: var(--color-bg); }
.summary-table .cheapest-row td { color: var(--color-success); font-weight: 700; }

/* =============================================================
   PHASE 3 — City Pages
   ============================================================= */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-secondary); text-decoration: underline; }
.breadcrumb-sep { color: var(--color-border); margin: 0 2px; }
.breadcrumb-current { color: var(--color-text); font-weight: 500; }

/* City Stats Box */
.city-stats-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 640px) {
  .city-stats-box { grid-template-columns: repeat(2, 1fr); }
}
.city-stat {
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--color-border);
}
.city-stat:last-child { border-right: none; }
@media (max-width: 640px) {
  .city-stat:nth-child(2) { border-right: none; }
  .city-stat:nth-child(3),
  .city-stat:nth-child(4) { border-top: 1px solid var(--color-border); }
}
.city-stat-value {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 4px;
}
.city-stat-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* Nearby Cities Grid */
.nearby-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.nearby-city-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.nearby-city-card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 4px 12px rgba(184, 92, 56, 0.12);
  transform: translateY(-2px);
  color: var(--color-secondary);
}
.nearby-city-card .arrow { font-size: 1rem; opacity: 0.5; transition: opacity 0.2s, transform 0.2s; }
.nearby-city-card:hover .arrow { opacity: 1; transform: translateX(3px); }

/* Province Cities Grid (on province pages) */
.province-cities-section { margin: 48px 0; }
.province-cities-section h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.province-cities-section .section-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.province-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.province-city-card {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--province-color, var(--color-secondary));
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow 0.2s, transform 0.15s;
}
.province-city-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.province-city-card .city-name {
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.province-city-card .city-pop {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.province-city-card .city-link-label {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--color-secondary);
  font-weight: 500;
}

/* City page provider note */
.provider-area-note {
  background: rgba(184, 92, 56, 0.06);
  border: 1px solid rgba(184, 92, 56, 0.25);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--color-secondary-dark);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Footer Newsletter ── */
.footer-newsletter {
  background-color: var(--color-primary);
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-newsletter .container {
  max-width: 600px;
}
.footer-newsletter h3 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-newsletter .sib-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-newsletter input[type="email"] {
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: 0.95rem;
  min-width: 280px;
}
.footer-newsletter input[type="email"]::placeholder {
  color: var(--color-text-light);
}
.footer-newsletter button {
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}
.footer-newsletter button:hover {
  background-color: var(--color-secondary-dark);
}
.footer-newsletter .privacy-check {
  width: 100%;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}
.footer-newsletter .privacy-check a {
  color: var(--color-secondary);
  text-decoration: underline;
}
.footer-newsletter-success {
  color: var(--color-white);
  font-size: 0.95rem;
  padding: 12px 0;
}

@media (max-width: 640px) {
  .footer-newsletter input[type="email"] {
    min-width: unset;
    width: 100%;
  }
  .footer-newsletter button {
    width: 100%;
  }
}

/* ── Form Checkbox (contact form opt-in) ── */
.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1.5;
}
.form-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--color-secondary);
  flex-shrink: 0;
}
.form-checkbox-label a {
  color: var(--color-secondary);
  text-decoration: underline;
}
