/* ======================  Brand tokens  ====================== */
:root {
    --hs-green: #505e4b;
    --hs-rust:  #c4663e;
    --hs-rust-light: rgba(196, 102, 62, 0.05);
    --hs-sand:  #d6b88a;
    --hs-offwhite: #fffef4;
    --light-grey: #e6e6e6;

    /* icon fall‑back colours (will be replaced by images) */
    --positive: #00b050;
    --neutral:  #ffc000;
    --negative: #c00000;
    
    /* Force light color scheme to prevent dark mode interference */
    color-scheme: light;
  }

  /* ======================  Reset  ====================== */
  *, *::before, *::after { box-sizing: border-box; }

  html,body {
    margin:0; padding:0;
    font-family:'Poppins',sans-serif;
    background:var(--hs-offwhite);
    color:var(--hs-green);
    line-height:1.4;
  }

  a { color:var(--hs-green); text-decoration:none; }
  a:hover { text-decoration:underline; }

  /* ======================  Navigation  ====================== */
  .navbar {
    background: var(--hs-offwhite);
    color: var(--hs-green);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  .nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .brand {
    display: flex;
    align-items: center;
  }
  
  .brand img {
    height: 32px;
    width: auto;
  }
  
  .nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
  }
  
  .nav-links a {
    color: var(--hs-green) !important;
    font-weight: 500;
    transition: opacity 0.2s ease;
  }
  
  .nav-links a:hover {
    opacity: 0.7;
  }
  
  /* Hamburger menu (hidden by default) */
  .hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    outline: none;
  }
  
  .hamburger-line {
    width: 24px !important;
    height: 3px !important;
    background: var(--hs-green) !important;
    margin: 2px 0 !important;
    transition: 0.3s !important;
    border-radius: 2px !important;
  }
  
  /* Mobile menu overlay */
  .mobile-menu {
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 280px !important;
    height: 100vh !important;
    background: var(--hs-offwhite) !important;
    z-index: 1001 !important;
    transition: left 0.3s ease !important;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 20px !important;
  }
  
  .mobile-menu.open {
    left: 0 !important;
  }
  
  .mobile-menu-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 30px !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid var(--hs-sand) !important;
  }
  
  .mobile-menu-close {
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    color: var(--hs-green) !important;
    cursor: pointer !important;
    padding: 8px !important;
  }
  
  .mobile-menu-logo {
    height: 24px !important;
    width: auto !important;
  }
  
  .mobile-menu-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  
  .mobile-menu-links a {
    color: var(--hs-green) !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    transition: opacity 0.2s ease !important;
  }
  
  .mobile-menu-links a:hover {
    opacity: 0.7 !important;
  }
  
  /* Mobile menu backdrop */
  .mobile-menu-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 1000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
  }
  
  .mobile-menu-backdrop.open {
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .mobile-menu-backdrop {
    transition: none !important;
  }

  .mobile-menu-backdrop.transitions-ready {
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
  }

  /* Mobile responsive header - only activate on mobile (max 640px) */
  @media (max-width: 640px) {
    /* Maintain navbar height and padding on mobile */
    .navbar {
      padding: 16px 0 !important;
      min-height: 64px !important; /* 32px logo + 16px top + 16px bottom */
      box-sizing: border-box !important;
    }
    
    .nav-inner {
      position: relative !important;
      justify-content: center !important;
      padding: 0 16px !important; /* Maintain horizontal padding */
      min-height: 32px !important; /* Ensure inner container maintains height */
    }
    
    .hamburger-menu {
      display: flex !important;
      position: absolute !important;
      left: 16px !important;
      z-index: 1002 !important;
    }
    
    .brand {
      position: absolute !important;
      left: 50% !important;
      transform: translateX(-50%) !important;
      min-width: 140px !important; /* Prevent logo from being compressed too small */
      width: auto !important;
    }
    
    /* Ensure logo image maintains aspect ratio and minimum size */
    .brand img {
      min-width: 140px !important; /* Ensure logo doesn't get squished horizontally */
      height: 32px !important;
      width: auto !important;
      object-fit: contain !important;
    }
    
    .nav-links {
      display: none !important;
    }
  }
  
  /* ======================  Layout  ====================== */
  .page-wrapper {
    min-height: calc(100vh - 200px);
  }
  
  .site-footer {
    background: var(--hs-green);
    color: var(--hs-offwhite);
    padding: 24px 0;
    text-align: center;
  }
  
  .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
  }

  /* ======================  Buttons  ====================== */
  .btn {
    display:block;
    text-align:center;
    padding:12px 16px;
    border-radius:8px;
    font-weight:600;
    border:none;
    outline:none;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .btn:hover { text-decoration: underline; }
  .btn.primary   { 
    background:var(--hs-rust); 
    color:var(--hs-offwhite); 
  }
  .btn.primary:hover { 
    background: #b35a35;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 102, 62, 0.3);
    text-decoration: none;
  }
  .btn.primary:active {
    background: #a04a2a;
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(196, 102, 62, 0.4);
  }
  .btn.secondary { 
    background:var(--hs-sand); 
    color:#000; 
  }
  .btn.secondary:hover { 
    background: #c4a97a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 184, 138, 0.3);
    text-decoration: none;
  }
  .btn.secondary:active {
    background: #b8a06a;
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(214, 184, 138, 0.4);
  }
  .btn.secondary.shortlist-button--active {
    background: var(--hs-green);
    color: var(--hs-offwhite);
    border: 1px solid var(--hs-green);
    box-shadow: 0 10px 24px rgba(80, 94, 75, 0.22);
  }
  .btn.secondary.shortlist-button--active:hover {
    background: #3d4a39;
    color: var(--hs-offwhite);
    box-shadow: 0 12px 32px rgba(80, 94, 75, 0.28);
    text-decoration: none;
  }
  .btn.secondary.shortlist-button--active:active {
    background: #2f392d;
    box-shadow: 0 6px 16px rgba(80, 94, 75, 0.32);
  }
  .shortlist-button.is-loading {
    opacity: 0.65;
    cursor: progress;
  }
  

/* ======================  Section bars  ====================== */
.bar {
    background:var(--hs-green);
    color:var(--hs-offwhite);
    font-size:24px;
    font-weight:600;
    text-align:center;           /* centred heading */
    padding:8px 16px;
    margin:24px 0 12px;          /* reduced bottom margin */
}  

    /* ======================  Icon lists  ====================== */
    ul.icon-list { list-style:none; margin:0; padding:0; }

    ul.icon-list:not(.media-list) li {
      display:flex;
      align-items:flex-start;
      gap:8px;
      margin:4px 0;
      font-size:15px;
    }

    .icon {
      display:inline-block;
      width:24px; height:24px;     /* increased from 16px */
      flex-shrink:0;
      margin-top:0px;              /* adjusted for larger icon */
      background-size:contain;
      background-repeat:no-repeat;
      background-position:center;
      border-radius:50%;            /* fallback circle if no image yet */
    }
  
    .icon.positive { background-image:url('../assets/icon_positive.png'); }
    .icon.neutral  { background-image:url('../assets/icon_neutral.png'); }
    .icon.negative { background-image:url('../assets/icon_negative.png'); }
    .icon.verified {
      background-image:url('../assets/icon_verified_shield.svg');
      width:24px;
      height:24px;
    }

    .icon.info     { background-image:url('../assets/icon_info_circle.png'); 
                     width:16px; height:16px;     /* smaller info icon */
                     margin-top:4px;              /* align with text */
                   }
                   
    /* ───── Tooltip ───── */
    .tooltip { position: relative; cursor: pointer; }
    


/* ======================  UI/UX Enhancements  ====================== */
/* ======================  Enhanced Responsive Design  ====================== */

/* CSS Custom Properties for consistent breakpoints */
:root {
  /* Breakpoint variables */
  --breakpoint-xs: 320px;
  --breakpoint-sm: 480px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1200px;
  
  /* Enhanced spacing system */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  
  /* Enhanced typography scale */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --text-4xl: 48px;
  
  /* Animation easing */
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  
  /* Touch target minimum sizes */
  --touch-target-min: 44px;
}

/* ======================  Enhanced Mobile First Approach  ====================== */

/* Base styles (mobile first - 320px+) */
.wrapper {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  transition: padding 0.3s var(--ease-out);
}

/* Enhanced hamburger menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: var(--spacing-sm);
  background: none;
  border: none;
  width: var(--touch-target-min);
  height: var(--touch-target-min);
  border-radius: 8px;
  transition: background-color 0.2s var(--ease-out);
}

.hamburger-menu:hover {
  background-color: rgba(80, 94, 75, 0.1);
}

.hamburger-menu:focus {
  outline: 2px solid var(--hs-green);
  outline-offset: 2px;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background-color: var(--hs-green);
  margin: 2px 0;
  border-radius: 2px;
  transition: all 0.3s var(--ease-in-out);
}

/* Enhanced mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--hs-offwhite);
  z-index: 1001;
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  transition: left 0.35s var(--ease-in-out);
  overflow-y: auto;
}

.mobile-menu.open {
  left: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--hs-sand);
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: var(--text-2xl);
  color: var(--hs-green);
  cursor: pointer;
  padding: var(--spacing-sm);
  width: var(--touch-target-min);
  height: var(--touch-target-min);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color 0.2s var(--ease-out);
}

.mobile-menu-close:hover {
  background-color: rgba(80, 94, 75, 0.1);
}

.mobile-menu-close:focus {
  outline: 2px solid var(--hs-green);
  outline-offset: 2px;
}

.mobile-menu-logo {
  height: 28px;
  width: auto;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.mobile-menu-links a {
  color: var(--hs-green);
  font-size: var(--text-lg);
  font-weight: 500;
  text-decoration: none;
  padding: var(--spacing-md) var(--spacing-sm);
  border-radius: 8px;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  min-height: var(--touch-target-min);
  display: flex;
  align-items: center;
}

.mobile-menu-links a:hover,
.mobile-menu-links a:focus {
  background-color: rgba(80, 94, 75, 0.1);
  transform: translateX(4px);
}

.mobile-menu-links a:focus {
  outline: 2px solid var(--hs-green);
  outline-offset: 2px;
}

/* Enhanced backdrop */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s var(--ease-out);
  backdrop-filter: blur(2px);
}

.mobile-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}




/* ======================  Breakpoint: Desktop (641px+)  ====================== */
@media (min-width: 641px) {
  .wrapper {
    max-width: 1200px;
    padding: 0 var(--spacing-xl);
  }
  
  /* Hide hamburger menu on desktop screens */
  .hamburger-menu {
    display: none;
  }
  
  /* Show desktop navigation */
  .nav-links {
    display: flex;
  }
  
  .nav-inner {
    justify-content: space-between;
  }
  
  /* Enhanced hero layout for desktop */
  .hero {
    grid-template-columns: 1fr 280px;
    gap: var(--spacing-2xl);
    align-items: start;
  }
  
  .provider-card {
    order: initial;
    margin: 0;
  }
  
  .summary {
    order: initial;
  }
  
  /* Enhanced button layouts */
  .btn-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
  }
  
  h1 {
    font-size: var(--text-4xl);
  }
}

/* ======================  Breakpoint: Extra Large (1200px+)  ====================== */
@media (min-width: 1200px) {
  .wrapper {
    padding: 0 var(--spacing-3xl);
  }
  
  .hero {
    gap: var(--spacing-3xl);
  }
  
  h1 {
    font-size: 56px;
  }
}

/* ======================  Enhanced Touch Interactions  ====================== */
@media (hover: none) and (pointer: coarse) {
  /* Touch device specific styles */
  .hamburger-menu:hover {
    background-color: transparent;
  }
  
  .mobile-menu-links a:hover {
    background-color: transparent;
    transform: none;
  }
  
  /* Larger touch targets for touch devices */
  .mobile-menu-links a {
    min-height: 48px;
    padding: var(--spacing-lg) var(--spacing-md);
  }
  
  .hamburger-menu,
  .mobile-menu-close {
    min-width: 48px;
    min-height: 48px;
  }
}

/* ======================  Reduced Motion Support  ====================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .mobile-menu,
  .mobile-menu-backdrop,
  .hamburger-line {
    transition: none;
  }
}

/* ======================  High Contrast Support  ====================== */
@media (prefers-contrast: high) {
  .hamburger-line {
    background-color: var(--hs-green);
    height: 3px;
  }
  
  .mobile-menu {
    border: 2px solid var(--hs-green);
  }
  
  .mobile-menu-links a:focus {
    outline-width: 3px;
  }
}


/* ======================  Print Styles  ====================== */
@media print {
  .hamburger-menu,
  .mobile-menu,
  .mobile-menu-backdrop {
    display: none !important;
  }
}

/* ======================  Loading States  ====================== */
.loading {
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--hs-green);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ======================  Focus Management  ====================== */
.focus-trap-start,
.focus-trap-end {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--hs-green);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 2000;
  transition: top 0.3s var(--ease-out);
}

.skip-link:focus {
  top: 6px;
}

/* ======================  Streaming Results  ====================== */
.result-card.streaming {
  opacity: 0.9;
  background: linear-gradient(45deg, transparent 30%, rgba(217, 181, 138, 0.1) 50%, transparent 70%);
  background-size: 200% 200%;
  animation: streaming-shimmer 2s infinite;
  border-left: 3px solid var(--hs-rust);
}

@keyframes streaming-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.streaming-info {
  padding: 0.5rem 0;
  color: var(--hs-rust);
  font-style: italic;
}

.streaming-text {
  font-size: 0.9rem;
  opacity: 0.8;
}

.streaming-actions .btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ======================  Result Card Provider Variant  ====================== */
.result-card--provider {
  width: 100%;
  background: var(--hs-offwhite);
  border: 1px solid var(--light-grey);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 0 auto 24px;
  box-shadow: 0 18px 36px rgba(80, 94, 75, 0.06);
}

.result-card--provider .listing-headline {
  font-size: 18px;
  font-weight: 600;
  color: var(--hs-green);
  margin-top: 0;
  margin-bottom: 2px;
}

/* Guard provider cards against the mobile overrides in search-results.css */
.provider-listing-card .listing-headline {
  font-size: 18px !important;
  line-height: 1.3 !important;
}

.provider-listing-card .location-info {
  font-size: 15px !important;
  line-height: 1.35 !important;
}

.provider-listing-card .rating-label,
.provider-listing-card .rating-text,
.provider-listing-card .provider-name,
.provider-listing-card .provider-link {
  font-size: 15px !important;
  line-height: 1.35 !important;
}

.result-card--provider .location-info {
  font-size: 15px;
  font-weight: 500;
  color: #3d4a39;
  margin-top: 0;
  margin-bottom: 2px;
}

.result-card__provider-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 220px;
  grid-template-areas:
    "image main aside"
    "image specs aside";
  column-gap: 24px;
  row-gap: 12px;
  align-items: start;
}

.result-card__provider-image {
  grid-area: image;
  border-radius: 16px;
  overflow: hidden;
  background: var(--hs-offwhite);
  display: flex;
  align-items: stretch;
  align-self: start;
  aspect-ratio: 4 / 3;
  width: 100%;
  max-height: none;
}

.result-card__provider-image > a {
  display: block;
  width: 100%;
  height: 100%;
}

.result-card__provider-image-el {
  width: 100%;
  height: 100%;
  max-height: inherit;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.result-card__provider-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7f837a;
  background: #e5e5e5;
  border-radius: 16px;
}

.result-card__provider-main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-card__provider-main .rating-block {
  gap: 6px;
  margin-bottom: 0;
  margin-top: 0;
}

.result-card__provider-main .match-details {
  margin-top: 0;
}

.result-card__provider-main .provider-line,
.result-card__provider-info .provider-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--hs-green);
}

.result-card__provider-main .provider-line__label,
.result-card__provider-info .provider-line__label {
  font-weight: 600;
  color: var(--hs-green);
  margin-right: 2px;
}

.result-card__provider-main .provider-line__name,
.result-card__provider-info .provider-line__name {
  font-weight: 600;
  color: var(--hs-rust);
}

.result-card__provider-main .provider-line__rating,
.result-card__provider-info .provider-line__rating {
  font-size: 14px;
  color: #666;
}

.result-card__provider-main .provider-name,
.result-card__provider-info .provider-name {
  display: inline-block;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--hs-rust);
  font-weight: 600;
  vertical-align: middle;
}

.result-card__provider-main .provider-name.provider-link,
.result-card__provider-info .provider-name.provider-link,
.result-card__provider-main .provider-line__name .provider-link,
.result-card__provider-info .provider-line__name .provider-link {
  color: var(--hs-rust);
}

.heart-rating--compact {
  display: inline-flex;
  gap: 0;
  transform-origin: left center;
}

.heart-rating--compact svg {
  width: 16px !important;
  height: 16px !important;
  margin-right: 1px !important;
}

.heart-rating--compact svg:last-child {
  margin-right: 0 !important;
}

.heart-rating.no-gap svg {
  margin-right: 0 !important;
}

.result-card__provider-aside {
  grid-area: aside;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

.result-card__provider-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-card__provider-actions .btn {
  width: 100%;
  font-size: 16px;
}

.result-card__provider-info {
  grid-area: info;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.provider-listing-card {
  max-width: 736px;
}

.provider-listing-card .result-card__provider-grid {
  grid-template-columns: 180px minmax(0, 1fr) 170px;
  column-gap: 16px;
  row-gap: 0;
  grid-template-areas:
    "image main aside"
    "image info aside"
    "image specs specs";
}

.provider-listing-card .result-card__provider-image {
  aspect-ratio: 4 / 3;
  max-height: 180px;
}

.provider-listing-card .result-card__provider-image,
.provider-listing-card .result-card__provider-image > a,
.provider-listing-card .result-card__provider-image-el,
.provider-listing-card .result-card__provider-placeholder {
  min-height: 135px;
}

.provider-listing-card .result-card__provider-info {
  grid-area: info;
  padding-top: 0;
  margin-top: 0;
}

.provider-listing-card .listing-spec {
  display: flex;
  align-items: center;
  gap: 8px;
}

.provider-listing-card .listing-spec--blank {
  min-height: 44px;
  visibility: hidden;
}

.result-card__provider-footer {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(80, 94, 75, 0.1);
}

.result-card__provider-specs {
  grid-area: specs;
  margin-top: 0;
  align-self: stretch;
  min-width: 0;
}

.provider-listing-card .result-card__provider-specs {
  margin-top: 16px;
}

.result-card__provider-specs .listing-hero__spec-grid {
  margin-top: 0;
  width: 100%;
}

.result-card--provider .listing-hero__spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px 24px;
  margin-top: 12px;
}

.result-card--provider .listing-hero__spec-grid > * {
  min-height: 48px;
}

.result-card--provider .listing-hero__spec-placeholder {
  min-height: 48px;
}

@media (max-width: 768px) {
  .result-card__provider-grid {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-areas:
      "image main"
      "info info"
      "specs specs"
      "aside aside";
    column-gap: 12px;
    row-gap: 12px;
  }

  .result-card__provider-image {
    max-width: 96px;
    width: 96px;
    min-width: 96px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }

  .result-card__provider-main {
    gap: 6px;
  }

  .result-card__provider-actions {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: stretch;
  }

  .result-card__provider-actions .btn {
    width: 100%;
    flex: none;
    min-width: 0;
  }

  .result-card__provider-actions .btn.primary,
  .result-card__provider-actions .btn.secondary {
    flex: none;
  }
}

@media (max-width: 768px) {
  .provider-listing-card .result-card__provider-grid {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-areas:
      "image main"
      "info info"
      "specs specs"
      "aside aside";
    column-gap: 12px;
    row-gap: 6px;
  }

  .provider-listing-card .result-card__provider-image {
    width: 96px;
    max-width: 96px;
    min-width: 96px;
    min-height: 0;
    height: auto;
    margin-left: 0;
    aspect-ratio: 4 / 3;
  }

  .provider-listing-card .result-card__provider-image > a,
  .provider-listing-card .result-card__provider-image-el,
  .provider-listing-card .result-card__provider-placeholder {
    width: 100%;
    height: 100%;
  }

  .provider-listing-card .result-card__provider-image > a,
  .provider-listing-card .result-card__provider-image-el,
  .provider-listing-card .result-card__provider-placeholder {
    width: 100%;
    height: 100%;
  }

  .provider-listing-card .result-card__provider-main {
    grid-area: main;
    width: 100%;
    margin-top: 0;
  }

  .provider-listing-card .result-card__provider-main .rating-block {
    width: 100%;
  }

  .provider-listing-card .result-card__provider-info {
    grid-area: info;
    width: 100%;
    padding-top: 0;
    margin-top: 2px;
  }

  .provider-listing-card .result-card__provider-info .rating-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .provider-listing-card .result-card__provider-main .provider-line,
  .provider-listing-card .result-card__provider-info .provider-line {
    width: 100%;
    align-items: flex-start;
  }

  .provider-listing-card .result-card__provider-main .provider-line__label,
  .provider-listing-card .result-card__provider-info .provider-line__label,
  .provider-listing-card .result-card__provider-main .provider-line__name,
  .provider-listing-card .result-card__provider-info .provider-line__name {
    width: 100%;
  }

  .provider-listing-card .result-card__provider-specs {
    grid-area: specs;
    width: 100%;
    margin-top: 8px;
  }

  .provider-listing-card .listing-hero__spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .provider-listing-card .listing-hero__spec-grid-spacer {
    display: none;
  }

  .provider-listing-card .listing-hero__spec-grid .listing-spec--pricing {
    display: none;
  }

  .provider-listing-card .listing-spec--pricing {
    display: none;
  }

  .provider-listing-card .result-card__provider-aside {
    grid-area: aside;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }

  .provider-listing-card .result-card__provider-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .provider-listing-card .result-card__provider-actions .btn {
    flex: 1 1 0;
    min-width: 0;
  }
}

.result-card .card-main {
  display: flex;
  flex: 1 1 auto;
  gap: 16px;
  align-items: flex-start;
}

.result-card .primary-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-card__summary-specs {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
  font-size: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.result-card__summary-specs::-webkit-scrollbar {
  display: none;
}

.result-card__summary-spec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--hs-green);
}

.result-card__summary-spec svg {
  width: 1.2em;
  height: 1.2em;
  color: var(--hs-rust);
  flex-shrink: 0;
}

.result-card .provider-info {
  margin-top: 8px;
}

.result-card .provider-info .rating-block {
  margin-bottom: 0;
}

.result-card .provider-info.streaming-info {
  margin-top: 12px;
}

@media (max-width: 640px) {
  .result-card--provider {
    margin: 10px auto;
    padding: 12px 16px 14px;
  }

  .result-card--provider .listing-headline {
    font-size: 18px;
  }

  .result-card--provider .location-info {
    font-size: 15px;
  }

  .result-card__provider-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .result-card__provider-actions .btn {
    flex: 1 1 140px;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .result-card .card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .result-card .card-main {
    display: grid;
    grid-template-columns: 96px 1fr;
    grid-template-areas:
      "thumb primary"
      "provider provider"
      "summary summary"
      "details details";
    column-gap: 12px;
    row-gap: 12px;
    width: 100%;
  }

  .result-card .thumbnail-container {
    grid-area: thumb;
    display: block;
    padding-right: 0;
    width: 100%;
    max-width: 96px;
    align-self: start;
  }

  .result-card .main-content {
    display: contents;
  }

  .result-card .primary-info {
    grid-area: primary;
    gap: 6px;
  }

  .result-card .provider-info {
    grid-area: provider;
    margin-top: 0;
  }

  .result-card__summary-specs {
    grid-area: summary;
    margin-top: 4px;
  }

  .result-card .match-details {
    grid-area: details;
    width: 100%;
    align-self: stretch;
  }

  .result-card .home-thumbnail,
  .result-card .home-thumbnail-placeholder {
    height: 4.5rem;
    min-height: 4.5rem;
    max-height: 4.5rem;
    object-fit: cover;
  }

  .result-card .card-actions {
    flex-direction: row-reverse;
    justify-content: center;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-left: 0;
  }

  .result-card .card-actions .btn {
    flex: 1 1 50%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .provider-listing-card .listing-hero__spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .provider-listing-card .listing-hero__spec-grid-spacer {
    display: none !important;
  }
}

/* ======================  Auth Components  ====================== */

/* Auth Loading State */
.auth-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e0e0e0;
  border-top: 2px solid var(--hs-rust);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Sign In Link - match nav-links styling exactly */
.auth-sign-in {
  color: var(--hs-green) !important;
  font-weight: 500;
  transition: opacity 0.2s ease;
  text-decoration: none;
}

.auth-sign-in:hover {
  opacity: 0.7;
  text-decoration: none;
}

/* User Menu Container - now inline with nav-links */

.mobile-menu-auth {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--light-grey);
  position: relative;
}

/* Auth User Menu */
.auth-user-menu {
  position: relative;
}

.auth-user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--hs-green);
  font-size: 14px;
  font-weight: 500;
  height: auto;
}

.auth-user-trigger:hover {
  opacity: 0.7;
}

.auth-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  background: rgba(80, 94, 75, 0.1) !important;
  clip-path: circle(50% at center) !important;
  -webkit-clip-path: circle(50% at center) !important;
}

.auth-user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none; /* Hidden on desktop by default */
}

.auth-dropdown-arrow {
  width: 16px;
  height: 16px;
  color: #999;
}

/* Auth Dropdown */
.auth-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  background: var(--hs-offwhite);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 1000;
  padding: 8px 0;
}

/* ======================  Provider Listings ====================== */
.provider-listings,
.provider-listings-static {
  max-width: var(--hs-max-content, 1100px);
  margin: 0 auto;
}

.provider-listings {
  padding: 32px 16px;
}

.provider-listings-static {
  padding: 12px 0;
}

.provider-listings__header {
  max-width: 768px;
  margin: 0 auto 32px;
  text-align: center;
}

.provider-listings__header h1 {
  margin: 32px 0 8px;
  font-size: 48px;
  font-weight: 800;
  color: var(--hs-green);
  line-height: 1.2;
}

.provider-listings__summary {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.5;
  color: #3d4a39;
  text-align: center;
}

.provider-listings__meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.provider-listings__header .heart-rating-static {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}

.provider-listings__header .heart-rating-static svg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.provider-listings__header .heart-rating-description {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #3d4a39;
}

.provider-listings__header .icon.info {
  margin-left: 4px;
}

.nowrap {
  white-space: nowrap;
}

.provider-listings__grid,
.provider-listings-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (max-width: 768px) {
  .provider-listings__header h1 {
    font-size: 36px;
    margin-top: 24px;
  }

  .provider-listings__header .heart-rating-static svg {
    width: 40px;
    height: 40px;
  }

  .provider-listings__header .heart-rating-description {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .provider-listings__header h1 {
    font-size: 28px;
  }

  .provider-listings__header .heart-rating-static svg {
    width: 32px;
    height: 32px;
  }

  .provider-listings__header .heart-rating-description {
    font-size: 1.5rem;
  }
}

.provider-listings-view-all {
  margin-top: 16px;
  text-align: center;
}

.listing-hero__spec-grid {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .listing-hero__spec-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .listing-hero__spec-grid-spacer {
    display: none !important;
  }
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: #f1ece4;
  border-radius: 12px;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: skeleton-shimmer 1.4s infinite;
}

.skeleton-title {
  height: 32px;
  margin-bottom: 16px;
}

.skeleton-text {
  height: 16px;
  margin-bottom: 12px;
}

.skeleton-block {
  height: 120px;
}

.skeleton-image {
  height: 220px;
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Legacy listing card layout (used by existing static outputs) */
.listing-card {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--light-grey);
  border-radius: 16px;
  overflow: hidden;
  background: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.listing-card--loading {
  pointer-events: none;
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.08);
}

.listing-card__media {
  position: relative;
  min-height: 220px;
  background: #f7f3ed;
}

.listing-card__media img,
.listing-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.listing-card__placeholder {
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a8a76;
  background: #f7f3ed;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.25px;
}

.listing-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.listing-card__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.listing-card__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--hs-green);
}

.listing-card__title a {
  color: inherit;
  text-decoration: none;
}

.listing-card__title a:hover {
  text-decoration: underline;
}

.listing-card__location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  color: var(--hs-rust);
  font-weight: 500;
}

.listing-card__summary {
  margin: 0;
  color: #4b5a46;
  line-height: 1.6;
  font-size: 15px;
}

.listing-card__spec-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 0;
}

.listing-card__spec-grid div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.listing-card__spec-grid dt {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a7764;
}

.listing-card__spec-grid dd {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--hs-green);
}

.listing-card__quick-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 14px;
  color: #4f5d4a;
}

.listing-card__quick-specs li {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f4efe6;
  padding: 6px 12px;
  border-radius: 999px;
}

.listing-card__providers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.listing-card__actions {
  margin-top: auto;
  display: flex;
  gap: 12px;
  align-items: center;
}

.listing-card__actions .btn {
  min-width: auto;
  justify-content: center;
}

@media (min-width: 768px) {
  .listing-card {
    grid-template-columns: 320px 1fr;
  }

  .listing-card__media {
    min-height: 100%;
    height: 100%;
  }
}

.auth-dropdown-email {
  padding: 12px 16px;
  font-size: 12px;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 4px;
}

.auth-dropdown-link {
  display: block;
  padding: 10px 16px;
  color: var(--hs-green) !important;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.auth-dropdown-link:hover {
  background-color: rgba(80, 94, 75, 0.1);
  color: var(--hs-rust) !important;
  text-decoration: none;
}

.auth-dropdown-divider {
  height: 1px;
  background-color: #f0f0f0;
  margin: 4px 0;
}

/* Mobile Responsive Auth Styles */
@media (max-width: 640px) {
  
  .auth-user-name {
    display: block; /* Show username on mobile */
  }
  
  /* Mobile auth adjustments */
  .mobile-menu-auth .auth-sign-in {
    display: block;
    text-align: center;
    padding: 12px 16px;
    margin: 8px 0;
    background-color: rgba(80, 94, 75, 0.05);
    border-radius: 8px;
  }
  
  .mobile-menu-auth .auth-user-trigger {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 16px;
    margin: 8px 0;
    background-color: rgba(80, 94, 75, 0.05);
    border-radius: 8px;
  }
  
  /* Enhanced mobile dropdown styles with multiple selectors for reliability */
  .mobile-menu-auth .auth-dropdown,
  .auth-dropdown.mobile-dropdown,
  .auth-dropdown[data-mobile="true"] {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    z-index: 10000 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
    background-color: var(--hs-offwhite) !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    padding: 8px 0 !important;
  }
  
  /* Ensure dropdown content is visible on mobile */
  .auth-dropdown.mobile-dropdown .auth-dropdown-email,
  .auth-dropdown[data-mobile="true"] .auth-dropdown-email {
    display: block !important;
    opacity: 1 !important;
  }
  
  .auth-dropdown.mobile-dropdown .auth-dropdown-link,
  .auth-dropdown[data-mobile="true"] .auth-dropdown-link {
    display: block !important;
    opacity: 1 !important;
  }
}

/* ======================  Page Layout Styles  ====================== */

/* Container for content pages */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Page header styling */
.page-header {
  padding: 32px 0;
  text-align: center;
  border-bottom: 1px solid var(--light-grey);
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--hs-green);
  margin: 0 0 16px 0;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--hs-green);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Write Review Page Styles */
.write-review-page {
  background: var(--hs-offwhite);
  min-height: calc(100vh - 200px);
}

.review-form-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Moderation Page Styles */
.moderation-page {
  background: var(--hs-offwhite);
  min-height: calc(100vh - 200px);
}

.moderation-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.moderation-page .page-header h1 {
  margin: 0;
  font-size: 2rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--hs-green);
}

.dev-badge {
  background: #fef3c7;
  color: #92400e;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.moderation-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Footer */
.footer {
  background: var(--hs-green);
  color: var(--hs-offwhite);
  text-align: center;
  padding: 24px 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ======================  Radio/Option Styling  ====================== */
.option-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
  width: 100%;
  background: white;
}

.option-card--unselected {
  border-color: #e5e7eb; /* gray-200 */
  background-color: white;
}

.option-card--unselected:hover {
  border-color: #d1d5db; /* gray-300 */
}

.option-card--selected {
  border-color: var(--hs-rust);
  background-color: rgba(196, 102, 62, 0.05); /* --hs-rust with 5% opacity */
}

/* ======================  Form Input Styling  ====================== */
.input-base {
  width: 100%;
  padding: 12px 16px;                    /* equivalent to px-3 py-2 in Tailwind */
  background-color: white;
  border: 1px solid #d1d5db;             /* gray-300 */
  border-radius: 8px;
  font-size: 0.875rem;                   /* 14px */
  line-height: 1.25rem;                  /* 20px */
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.input-base:focus {
  outline: none;
  border-color: var(--hs-rust);
  box-shadow: 0 0 0 3px rgba(196, 102, 62, 0.1);
}

.input-base:disabled {
  background-color: #f9fafb;             /* gray-50 */
  color: #9ca3af;                        /* gray-400 */
  cursor: not-allowed;
}

/* Error state */
.input-base--error {
  border-color: #ef4444 !important;     /* red-500 */
}

.input-base--error:focus {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Size variations */
.input-small {
  padding: 8px 12px;                     /* equivalent to px-2 py-1 in Tailwind */
  font-size: 0.75rem;                    /* 12px */
}

/* Textarea specific styling */
.textarea-base {
  min-height: 8rem;                      /* 128px */
  resize: vertical;
  font-family: inherit;
}

/* ======================  Standardized Button System  ====================== */
/* Primary Button - Main CTA */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--hs-rust);
  color: var(--hs-offwhite);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary:hover:not(:disabled) {
  background-color: #b35a35;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 102, 62, 0.3);
  text-decoration: none;
}

.btn-primary:active:not(:disabled) {
  background-color: #a04a2a;
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(196, 102, 62, 0.4);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Secondary Button - Supporting actions */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--hs-sand);
  color: var(--hs-green);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #c4a97a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(214, 184, 138, 0.3);
  text-decoration: none;
}

.btn-secondary:active:not(:disabled) {
  background-color: #b8a06a;
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(214, 184, 138, 0.4);
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Button Sizes */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  gap: 0.5rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  gap: 0.75rem;
}

.btn-xl {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  gap: 0.75rem;
}

/* Button width variants */
.btn-full {
  width: 100%;
}

/* Loading state for buttons */
.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ======================  Form System  ====================== */
/* Form Labels */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hs-green);
  margin-bottom: 0.5rem;
}

.form-label--required::after {
  content: ' *';
  color: #ef4444;
}

/* Form Groups */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Error Messages */
.form-error {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Help Text */
.form-help {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* ======================  Card System  ====================== */
/* Base Card */
.card {
  background: var(--hs-offwhite);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  overflow: hidden;
}

/* Card padding variants */
.card-sm { padding: 1rem; }
.card-md { padding: 1.5rem; }
.card-lg { padding: 2rem; }

/* Elevated Card - for important sections */
.card-elevated {
  background: white;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #f3f4f6;
  overflow: hidden;
}

/* Content Card - for off-white sections */
.content-card {
  background: var(--hs-offwhite);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--light-grey);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2rem;
  }
  
  .moderation-page .page-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  
  .moderation-page .page-header h1 {
    font-size: 1.75rem;
  }
}

/* ======================  Mobile Utilities  ====================== */
.mobile-only {
  display: none;
}

/* ======================  Listing Page Layout  ====================== */
.desktop-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px;
  align-items: flex-start;
}

.section-split--single {
  grid-template-columns: 1fr;
}

.section-split__media {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-self: stretch;
  margin: 0;
  align-self: start;
}

.section-split__media--max-380 {
  max-width: 380px;
}

.section-split__media--max-420 {
  max-width: 420px;
}

.section-split__text {
  width: 100%;
  min-width: 260px;
  justify-self: stretch;
  align-self: start;
}

.section-split__media-links {
  margin-top: 8px;
  width: 100%;
  text-align: left;
}

@media (max-width: 768px) {
  .desktop-layout {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  
  .mobile-only {
    display: block !important;
  }
  
  .desktop-only {
    display: none !important;
  }

  .section-split {
    grid-template-columns: 1fr;
  }

  .section-split__media {
    max-width: 100%;
    margin: 0 auto;
    align-items: center;
    justify-self: center;
    align-self: center;
  }

  .section-split__media > * {
    width: 100%;
  }

  .section-split__text {
    min-width: 0;
    align-self: start;
  }

  .section-split__media-links {
    text-align: center;
  }
}

.smart-marquee {
  position: relative;
  z-index: 6;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 12px auto 24px;
  padding: 0 24px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 200ms ease, transform 220ms ease;
}

.smart-marquee:focus-visible {
  outline: 2px solid var(--hs-rust);
  outline-offset: 4px;
}

.smart-marquee--visible {
  opacity: 1;
  transform: translateY(0);
}

.smart-marquee--hidden {
  opacity: 0;
  transform: translateY(12px);
}

.smart-marquee--reduce-motion {
  transition: opacity 150ms linear;
}

.smart-marquee--reduce-motion.smart-marquee--hidden {
  transform: none;
}

.smart-marquee__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 720px;
  width: 100%;
  padding: 18px 26px 18px 32px;
  color: var(--hs-green);
  background: var(--hs-off);
  border: 1px solid rgba(80, 94, 75, 0.14);
  border-radius: 20px;
  box-shadow: 0 24px 50px rgba(42, 52, 38, 0.12);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  overflow: hidden;
  pointer-events: auto;
  backdrop-filter: blur(18px);
}

.smart-marquee__content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.smart-marquee__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 15%, rgba(196, 102, 62, 0.12) 45%, rgba(255, 188, 128, 0.18) 65%, transparent 85%);
  transform: translateX(-90%);
  animation: none;
  opacity: 0;
}

.smart-marquee__icon,
.smart-marquee__text {
  position: relative;
  z-index: 1;
}

.smart-marquee__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  color: var(--hs-rust);
  flex-shrink: 0;
  animation: smartMarqueeIconPulse 3.4s ease-in-out infinite;
}

.smart-marquee__icon svg {
  width: 1.65rem;
  height: 1.65rem;
}

.smart-marquee__spinner {
  animation: smartMarqueeSpin 1.2s linear infinite;
}

@keyframes smartMarqueeSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.smart-marquee__text {
  display: inline-block;
  white-space: normal;
  word-break: break-word;
  flex: 1 1 auto;
}

.smart-marquee__animation {
  position: relative;
  flex: 0 0 auto;
  height: 100px;
  width: 100px;
  opacity: 0.85;
  pointer-events: none;
  filter: saturate(1.1);
  transform: translateZ(0);
}

.smart-marquee--loading .smart-marquee__inner {
  box-shadow: 0 18px 36px rgba(42, 52, 38, 0.1);
}

.smart-marquee--loading .smart-marquee__inner::before {
  opacity: 0;
  animation: none;
}

.smart-marquee--settled .smart-marquee__inner::before {
  opacity: 0.35;
  animation: smartMarqueeSweep 3.2s ease-in-out infinite;
}

.smart-marquee__animation > * {
  width: 100% !important;
  height: 100% !important;
}

.smart-marquee__animation dotlottie-player {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.smart-marquee--error .smart-marquee__inner {
  background: linear-gradient(135deg, rgba(255, 245, 232, 0.96), rgba(255, 228, 197, 0.98));
  border-color: rgba(196, 102, 62, 0.45);
  box-shadow: 0 20px 44px rgba(196, 102, 62, 0.25);
  color: rgba(80, 40, 10, 0.9);
}

.smart-marquee--error .smart-marquee__inner::before {
  background: linear-gradient(120deg, transparent 12%, rgba(196, 102, 62, 0.16) 40%, rgba(255, 188, 128, 0.26) 60%, transparent 88%);
  opacity: 0.45;
}

.smart-marquee--error .smart-marquee__icon {
  color: rgba(196, 102, 62, 0.9);
}

@keyframes smartMarqueeSweep {
  0% {
    transform: translateX(-90%);
  }
  50% {
    transform: translateX(10%);
  }
  100% {
    transform: translateX(90%);
  }
}

@keyframes smartMarqueeIconPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (max-width: 768px) {
  .smart-marquee {
    padding: 0 16px;
    margin: 10px 0 18px;
  }

  .smart-marquee__inner {
    max-width: none;
    border-radius: 18px;
    padding: 16px 20px;
    gap: 18px;
    font-size: 1.25rem;
    line-height: 1.5;
  }

  .smart-marquee__content {
    gap: 14px;
  }

  .smart-marquee__icon {
    font-size: 1.5rem;
  }

  .smart-marquee__animation {
    width: 80px;
    height: 80px;
    opacity: 0.7;
  }
}

@media (max-width: 480px) {
  .smart-marquee__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
    gap: 16px;
    font-size: 1.15rem;
  }

  .smart-marquee__content {
    gap: 12px;
  }

  .smart-marquee__animation {
    width: 72px;
    height: 72px;
    align-self: center;
    opacity: 0.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smart-marquee {
    transition: opacity 150ms linear;
    transform: none;
  }

  .smart-marquee--hidden {
    transform: none;
  }

  .smart-marquee__inner::before,
  .smart-marquee__icon {
    animation: none;
  }
}

@media (prefers-contrast: more) {
  .smart-marquee__inner {
    background: #ffffff;
    border-width: 2px;
    box-shadow: none;
  }

.smart-marquee__inner::before {
    display: none;
  }
}

/* Enquiry modal styling */
.enquiry-input,
.enquiry-textarea,
.enquiry-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--light-grey);
  font-size: 15px;
  color: var(--hs-green);
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.enquiry-input:focus,
.enquiry-textarea:focus,
.enquiry-select:focus {
  border-color: var(--hs-rust);
  box-shadow: 0 0 0 2px rgba(196, 102, 62, 0.2);
  outline: none;
}

/* Search filters (results page) */
.filter-label {
  margin: 0;
  color: var(--hs-green);
  font-weight: 600;
}

.filter-helper {
  margin: 2px 0;
  display: block;
  color: #6b7280;
  font-size: 0.9rem;
}

.filter-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-options.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 10px;
}

.filter-options.inline-options {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--hs-green);
  font-size: 0.95rem;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  accent-color: var(--hs-rust);
}

.filter-pill {
  border: 1px solid #d1d5db;
  color: var(--hs-green);
  border-radius: 9999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill.active {
  background: var(--hs-green);
  border-color: var(--hs-green);
  color: var(--hs-off);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #eef2eb;
  color: var(--hs-green);
  font-size: 0.9rem;
}

.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.active-filters-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.active-filters-row.compact-row {
  margin: 6px 0;
}

.filters-row-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filters-row-spacer {
  flex: 1 1 auto;
}

.align-right-button {
  margin-left: auto;
}

.active-filters-label {
  font-weight: 600;
  color: var(--hs-green);
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--hs-rust);
  cursor: pointer;
  font-weight: 600;
}

.mobile-filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.filters-sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.filters-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.filters-sheet__content {
  position: absolute;
  inset: 0;
  background: var(--offwhite);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.filters-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filters-sheet__actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.filter-card.location-filter input[type="range"],
.filter-bar input[type="range"] {
  width: 100%;
  accent-color: var(--hs-green);
}

.filter-option input:focus-visible,
.filter-pill:focus-visible,
.link-button:focus-visible,
.filters-sheet__content button:focus-visible {
  outline: 2px solid var(--hs-rust);
  outline-offset: 2px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 10px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.filter-item.radius {
  min-width: 150px;
  max-width: 180px;
}

.filter-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 160px;
  background: var(--hs-offwhite);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--hs-green);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.dropdown-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
}

.dropdown-summary {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.2;
}

.dropdown-panel {
  position: absolute;
  z-index: 12;
  top: calc(100% + 6px);
  left: 0;
  min-width: 280px;
  max-width: 400px;
  background: var(--hs-offwhite);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.dropdown-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.filter-actions.compact {
  display: flex;
  gap: 8px;
  margin-left: auto;
  align-items: center;
}

.filters-sheet .filter-dropdown {
  width: 100%;
}

.filters-sheet .dropdown-panel {
  position: relative;
  top: 0;
  left: 0;
  margin-top: 6px;
  box-shadow: none;
}

@media (max-width: 640px) {
  .mobile-only {
    display: block !important;
  }
  
  .desktop-only {
    display: none !important;
  }

}
