﻿/* =========================================================================
   Phase 1 - Design system foundation (d2 template + legacy compatibility)
   ========================================================================= */

  :root {
  /* d2 brand tokens */
  --color-primary: #2b2342;
  --color-primary-soft: #3c3358;
  --color-accent: #c9a24b;
  --color-accent-dark: #a9842f;
  --color-eyebrow: #7a5f18;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f4f0;
  --color-bg-muted: #efece6;
  --color-text: #1f1b2e;
  --color-text-muted: #4a4560;
  --color-border: #e4e0d8;
  --color-success: #2f7d52;

  /* d2 typography */
  --font-head: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --text-xs: 0.78rem;
  --text-sm: 0.82rem;
  --text-body: 0.9rem;
  --text-md: 1.05rem;
  --text-lg: 1.15rem;
  --text-title: 1.5rem;
  --text-h2: 1.85rem;
  --text-h1: 2rem;

  /* d2 layout */
  --max-width: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(31, 27, 46, 0.08);
  --shadow-md: 0 8px 24px rgba(31, 27, 46, 0.12);
  --shadow-lg: 0 18px 50px rgba(31, 27, 46, 0.18);
  --transition: 0.22s ease;
  --header-height: 76px;

  /* Legacy aliases - keep existing CSS working during migration */
  --primary-color: var(--color-primary);
  --primary-dark: var(--color-bg-alt);
  --accent-color: var(--color-accent);
  --accent-dark: var(--color-accent-dark);
  --button-color: var(--color-accent);
  --button-color-hover: var(--color-accent-dark);
  --button-color-active: var(--color-accent-dark);
  --background-color: var(--color-bg);
  --background-light: var(--color-bg-alt);
  --text-color: var(--color-text);
  --text-light: var(--color-text-muted);
    --text-white: #ffffff;
  --link-color: var(--color-accent-dark);
  --link-color-hover: var(--color-accent);
  --border-color: var(--color-border);
  --font-primary: var(--font-body);
  --font-display: var(--font-head);
  --font-script: var(--font-head);
  --font-family-base: var(--font-body);
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;
    --line-height-base: 1.6;
    --line-height-tight: 1.2;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
  --transition-fast: var(--transition);
  --transition-base: var(--transition);
  --radius-md: var(--radius-sm);
  --radius-lg: var(--radius);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

  html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
  width: 100%;
    scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
}

body.map-lightbox-open {
  overflow: hidden;
}

  [hidden] {
  display: none !important;
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  border-width: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
    line-height: var(--line-height-tight);
  color: var(--color-text);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.5vw, var(--font-size-5xl)); }
h2 { font-size: clamp(1.6rem, 3vw, var(--font-size-4xl)); margin-bottom: var(--spacing-md); }
h3 { font-size: var(--font-size-2xl); }

p { margin: 0 0 var(--spacing-sm); }

a {
  color: var(--color-accent-dark);
    text-decoration: none;
  transition: color var(--transition);
  }

  a:focus,
  a:hover {
  color: var(--color-accent);
}

img { max-width: 100%; display: block; }

ul { margin: 0; padding: 0; }

  .container {
    width: 100%;
  max-width: var(--max-width);
    margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.section { padding: clamp(1.5rem, 3.5vw, 2.75rem) 0; }
.section--alt { background: var(--color-bg-alt); }

.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-eyebrow);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.lead { font-size: 1.15rem; color: var(--color-text-muted); }
.muted { color: var(--color-text-muted); }

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

/* Interior page hero - fixed height; long text truncates */
.page-hero {
  --page-hero-height: clamp(240px, 32vh, 280px);
  background: var(--color-primary);
  color: #fff;
  height: var(--page-hero-height);
  min-height: var(--page-hero-height);
  max-height: var(--page-hero-height);
  padding: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden
}
.page-hero .container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  padding-block: clamp(1.25rem, 3vw, 2rem);
}
.page-hero h1 {
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.15;
  max-height: calc(2 * 1.15em);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}
.page-hero .page-hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
  max-width: none;
  width: 100%;
  margin: 0;
  height: 1.5em;
  min-height: 1.5em;
  max-height: 1.5em;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0
}
.page-hero .page-hero__subtitle:empty::before {
  content: "\00a0"
}
.page-hero .breadcrumbs {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  height: 1.5em;
  min-height: 1.5em;
  max-height: 1.5em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0
}
.page-hero .breadcrumbs a {
  color: var(--color-accent)
}
.page-hero .breadcrumbs span {
  margin: 0 0.4rem
}

/* Buttons - d2 system + legacy class names */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
  line-height: 1.5;
}

.btn--primary,
.btn-primary {
  background: var(--color-accent);
  color: #1f1b2e;
}

.btn--primary:hover,
.btn--primary:focus,
.btn-primary:hover,
.btn-primary:focus,
.btn:hover,
.btn:focus {
  background: var(--color-accent-dark);
  color: #fff;
  box-shadow: 0 0 20px rgba(var(--button-color-hover-rgb, 169, 132, 47), 0.31);
  transform: scale(1.02);
  outline: 0;
}

.btn--primary:active,
.btn-primary:active,
.btn:active {
  background: var(--button-color-active);
  box-shadow: none;
  transform: scale(0.98);
}

.btn--dark {
  background: var(--color-primary);
  color: #fff;
}

.btn--dark:hover {
  background: var(--color-primary-soft);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--color-primary);
}

.btn--ghost:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--light {
  background: #fff;
  color: var(--color-primary);
}

.btn--light:hover,
.btn--light:focus {
  background: var(--color-text);
  color: #fff;
}

.btn-secondary {
  background: var(--color-primary);
  color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--color-primary-soft);
  color: #fff;
}


:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@font-face {
    font-family: "Segoe UI";
    src: local("Segoe UI"),local("SegoeUI"),url("/fonts/segoeui.ttf") format("truetype");
    font-weight: normal;
    font-style: normal
  }
  /* =========================================================================
     Phase 2 - Header, navigation, footer (d2 bridge on existing PHP markup)
     ========================================================================= */
  #header-container,
  #site-header,
  .site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: var(--header-height);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: none;
    margin: 0;
    padding: 0
  }
  .skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 1001;
    background: var(--color-accent);
    color: #1f1b2e;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 600;
    text-decoration: none
  }
  .skip-link:focus {
    left: 0
  }
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    height: var(--header-height);
    min-height: var(--header-height);
    width: 100%
  }
  .nav > .nav__brand {
    order: 1;
    flex-shrink: 0
  }
  .nav > .nav__links,
  .nav > .nav-menu {
    order: 2
  }
  .nav > .header-search {
    order: 3
  }
  .nav__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-primary);
    text-decoration: none
  }
  .nav__brand:hover,
  .nav__brand:focus {
    color: var(--color-primary);
    text-decoration: none;
    opacity: 0.92
  }
  .nav__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 140px;
    height: 44px
  }
  .nav__logo-image {
    width: 100%;
    height: 100%;
    max-width: 140px;
    max-height: 44px;
    object-fit: contain;
    display: block
  }
  .nav__brand-text {
    line-height: 1.15
  }
  .nav__brand-text small {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase
  }
  .nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0
  }
  .nav__toggle span:not(.sr-only) {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-primary);
    margin: 6px 0;
    transition: transform var(--transition), opacity var(--transition)
  }
  .nav.open .nav__toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg)
  }
  .nav.open .nav__toggle span:nth-child(2) {
    opacity: 0
  }
  .nav.open .nav__toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg)
  }
  .header-search {
    display: flex !important;
    align-items: center;
    flex: 0 0 auto;
    position: relative;
    margin-left: var(--spacing-sm);
    visibility: visible;
    opacity: 1
  }
  .header-search .search-input {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 280px;
    padding: 0.7rem 2.75rem 0.7rem 1rem;
    z-index: 1001;
    box-shadow: var(--shadow-md);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--color-text)
  }
  .header-search .search-input:focus {
    outline: 2px solid var(--color-accent);
    border-color: transparent
  }
  .header-search.active .search-input {
    display: block
  }
  .header-search .search-toggle,
  .header-search .search-submit {
    display: flex !important;
    background: none;
    border: none;
    padding: 0.4rem;
    cursor: pointer;
    color: var(--color-text);
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition), color var(--transition);
    min-width: 44px;
    min-height: 44px;
    visibility: visible;
    opacity: 1
  }
  .header-search .search-submit {
    display: none !important;
    position: absolute;
    right: 0.35rem;
    top: calc(100% + 0.5rem);
    z-index: 1002;
    min-width: 36px;
    min-height: 36px
  }
  .header-search.active:has(.search-toggle:hover) .search-submit,
  .header-search.active:has(.search-toggle:focus-visible) .search-submit,
  .header-search.active:has(.search-submit:hover) .search-submit,
  .header-search.active:has(.search-submit:focus-visible) .search-submit {
    display: flex !important
  }
  .header-search button:focus,
  .header-search button:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
    outline: 0
  }
  .header-search svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2
  }
  .nav-menu {
    display: flex;
    list-style: none;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0 0 0 auto;
    padding: 0
  }
  .nav-menu a {
    display: block;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
    transition: background-color var(--transition), color var(--transition)
  }
  .nav-menu a:focus,
  .nav-menu a:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
    text-decoration: none
  }
  .nav-menu a.active {
    color: var(--color-accent-dark);
    font-weight: 600;
    text-decoration: none
  }
  @media (min-width: 1200px) and (max-width: 1530px) {
    .nav {
      flex-wrap: nowrap
    }
    .nav > .nav-menu,
    .nav > .nav__links {
      flex: 1 1 auto;
      justify-content: center;
      margin-left: 0;
      min-width: 0;
      overflow-x: auto;
      overflow-y: hidden
    }
    .nav-menu li {
      flex-shrink: 0
    }
    .nav-menu a {
      font-size: 0.9rem;
      padding: 0.45rem 0.75rem
    }
  }
  @media (max-width: 950px) {
    .nav {
      flex-wrap: nowrap;
      position: relative
    }
    .nav__toggle {
      display: block;
      order: 3
    }
    .nav__brand {
      order: 1;
      flex: 0 1 auto;
      justify-content: flex-start;
      text-align: left
    }
    .nav__logo-image {
      max-height: 44px;
      max-width: 160px;
      margin: 0
    }
    .nav > .header-search {
      order: 2;
      margin-left: auto;
      margin-right: 0.15rem
    }
    .nav-menu,
    .nav__links {
      position: fixed;
      top: var(--header-height);
      left: 0;
      right: 0;
      flex-direction: column;
      align-items: stretch;
      background: var(--color-bg);
      padding: 1rem clamp(1rem, 4vw, 2.5rem) 2rem;
      border-bottom: 1px solid var(--color-border);
      box-shadow: var(--shadow-md);
      gap: 0.25rem;
      z-index: 999;
      width: 100%;
      margin: 0;
      max-height: calc(100vh - var(--header-height));
      overflow-y: auto;
      transform: translateY(-150%);
      transition: transform var(--transition);
      display: flex !important;
      visibility: hidden;
      pointer-events: none
    }
    .nav-menu.active,
    .nav.open .nav__links {
      transform: translateY(0);
      visibility: visible;
      pointer-events: auto
    }
    .nav-menu li,
    .nav__links li {
      width: 100%
    }
    .nav-menu a,
    .nav__links a {
      padding: 0.85rem 0.75rem;
      width: 100%;
      text-align: left
    }
  }
  .hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0, var(--primary-dark) 100%);
    color: var(--text-white);
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-md);
    overflow: hidden
  }
  .triumvirate {
    padding: 40px 0
  }
  .triumvirate-holder {
    display: flex;
    gap: 20px;
    justify-content: center
  }
  .triumvirate-holder > div {
    flex: 0 0 auto
  }
  .triumvirate-holder figure {
    position: relative
  }
  .triumvirate-holder figure img {
    object-fit: cover;
    aspect-ratio: 1 / 1;
    width: 260px;
    height: 260px;
    display: block
  }
  .triumvirate-holder picture {
    border-bottom: 52px solid #f8f9fa;
    display: block;
    width: 260px
  }
  .triumvirate-holder figcaption {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    line-height: 1.125;
    width: 100%
  }
  .triumvirate-btn.btn {
    padding: 12.5px 30px;
    border: 0;
    border-radius: 100px;
    background-color: var(--button-color);
    color: #fff;
    font-weight: bold;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    text-decoration: none
  }
  .triumvirate-btn.btn:focus,
  .triumvirate-btn.btn:hover,
  .triumvirate-holder a:focus .triumvirate-btn.btn,
  .triumvirate-holder a:hover .triumvirate-btn.btn {
    background-color: var(--button-color-hover);
    box-shadow: 0 0 20px rgba(var(--button-color-hover-rgb), 0.31);
    transform: scale(1.1)
  }
  .triumvirate-btn.btn:active {
    background-color: var(--button-color-active);
    transition: 0.25s;
    -webkit-transition: 0.25s;
    box-shadow: none;
    transform: scale(0.98)
  }
  @media (max-width: 1000px) {
    .triumvirate-component .triumvirate-holder > div:last-of-type {
      display: none
    }
  }
  @media (max-width: 600px) {
    .triumvirate-holder {
      flex-wrap: wrap
    }
    .triumvirate-component .triumvirate-holder > div:last-of-type {
      display: block
    }
  }
  section {
    padding: var(--spacing-sm) 0
  }
  .page-home .home-deals-section {
    padding: clamp(1.5rem, 3.5vw, 2.75rem) 0
  }
  .facebook-banner {
    background-color: transparent;
    padding: 0;
    text-align: center;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center
  }
  .facebook-banner .container {
    padding: 0;
    max-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center
  }
  .facebook-banner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: var(--button-color);
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    font-size: var(--font-size-base);
    width: 100%;
    height: 100%;
    opacity: 0.85
  }
  .facebook-banner.facebook-banner--alt .facebook-banner-link {
    background-color: var(--button-color-hover)
  }
  .facebook-banner-link:focus,
  .facebook-banner-link:hover {
    background-color: var(--button-color);
    color: #fff;
    text-decoration: none;
    opacity: 1
  }
  .facebook-banner.facebook-banner--alt .facebook-banner-link:focus,
  .facebook-banner.facebook-banner--alt .facebook-banner-link:hover {
    background-color: var(--button-color-active)
  }
  .facebook-banner-link:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px
  }
  /* Legacy page-specific button tweaks - foundation styles live at top of file */
  .page-home .btn,
  .page-home .btn-primary,
  .page-home .btn-secondary {
    border-radius: 999px;
  }
  .newsletter-section:not(.section) {
    background-color: var(--background-light)
  }
  .newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center
  }
  .newsletter-content h2 {
    color: #000;
    font-family: var(--font-script);
    font-size: 46.5px;
    font-weight: 400;
    line-height: 1.125;
    margin-bottom: var(--spacing-xs);
    margin-top: 0;
    text-transform: none
  }
  .newsletter-content > p {
    font-size: var(--font-size-lg);
    color: #000;
    margin-bottom: var(--spacing-xl)
  }
  .newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
    flex-direction: column;
    margin-bottom: var(--spacing-sm)
  }
  .newsletter-form input {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: var(--font-primary);
    background-color: #fff;
    color: var(--text-color);
    min-height: 44px;
    width: 100%;
    transition: border-color var(--transition-fast)
  }
  .newsletter-form input:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    border-color: var(--accent-color)
  }
  .newsletter-form input::placeholder {
    color: var(--text-light)
  }
  .newsletter-note {
    font-size: var(--font-size-sm);
    color: #000;
    margin-bottom: 0
  }
  .newsletter-message {
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-sm);
    font-weight: 600;
    text-align: center;
    display: none
  }
  .newsletter-message-success {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 2px solid #28a745
  }
  .newsletter-message-error {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 2px solid #dc3545
  }
  .info-section-block {
    padding: var(--spacing-sm);
    background-color: var(--background-color)
  }
  .info-section-block h2 {
    color: var(--primary-color);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-display)
  }
  .info-section-block p {
    color: var(--text-color);
    line-height: var(--line-height-base);
    margin-bottom: var(--spacing-md)
  }
  .info-section-block p:last-child {
    margin-bottom: 0
  }
  .info-list {
    list-style: none;
    padding: 0;
    margin: 0
  }
  .info-list li {
    color: var(--text-color);
    line-height: var(--line-height-base);
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-md);
    position: relative
  }
  .info-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2em
  }
  .info-list li:last-child {
    margin-bottom: 0
  }
  .info-contact-note {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: var(--spacing-md)
  }
  .directory-section {
    margin-top: clamp(-35px, -4vh, -60px)
  }
  .page-store-detail .store-details-section.directory-section {
    margin-top: 0
  }
  footer,
  .site-footer {
    background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.9);
    border-top: none;
    box-shadow: none;
    padding: 2.5rem 0 1.5rem
  }
  footer a,
  .site-footer a {
  color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color var(--transition)
  }
  footer a:focus,
  footer a:hover,
  .site-footer a:focus,
  .site-footer a:hover {
    color: var(--color-accent);
    outline-offset: 2px
  }
  .map-embed {
    width: 100%;
    border: 1px solid #deddda;
    background: #fff
  }
  .map-embed iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: 0
  }
  .map-embed img {
    display: block;
    width: 100%;
    height: auto
  }
  .directory-toolbar {
    margin-top: var(--spacing-md);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    position: relative
  }
  .deals-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto
  }
  .deal-item-link {
    text-decoration: none;
    color: inherit;
    display: block
  }
  .deal-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background-color: #fff;
    border: 1px solid #deddda;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast),transform var(--transition-fast);
    position: relative
  }
  .deal-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px)
  }
  .deal-item-image {
    flex: 0 0 250px;
    width: 250px;
    height: 250px;
    overflow: hidden;
    border-radius: var(--radius-sm)
  }
  .deal-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block
  }
  .deal-item-content {
    flex: 1;
    padding: 0 var(--spacing-md)
  }
  .deal-item-ribbon {
    flex: 0 0 auto;
    position: relative
  }
  .deal-ribbon-text {
    display: inline-block;
    background-color: var(--button-color);
    color: #fff;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 600;
    white-space: nowrap
  }
  .deal-item-content h3 {
    margin: 0 0 var(--spacing-xs) 0;
    font-size: var(--font-size-lg);
    color: var(--text-color);
    font-weight: 600
  }
  .deal-item-store {
    margin: 0;
    color: var(--text-color-secondary);
    font-size: var(--font-size-base)
  }
  @media (max-width: 1000px) and (min-width: 769px) {
    .deal-item {
      display: grid;
      grid-template-columns: 220px 1fr;
      grid-template-areas: "image content" "image ribbon";
      align-items: start
    }
    .deal-item-image {
      grid-area: image;
      width: 220px;
      flex: 0 0 220px
    }
    .deal-item-content {
      grid-area: content
    }
    .deal-item-ribbon {
      grid-area: ribbon;
      margin-top: var(--spacing-sm);
      justify-self: start
    }
  }
  @media (max-width: 768px) {
    .deal-item {
      flex-direction: column;
      align-items: flex-start;
      position: relative
    }
    .deal-item-image {
      width: 100%;
      flex: 0 0 auto;
      height: 250px
    }
    .deal-item-ribbon {
      position: absolute;
      top: var(--spacing-md);
      right: var(--spacing-md)
    }
  }
  @media (min-width: 576px) {
    .hero h1 {
      font-size: 3rem
    }
  }
  @media (min-width: 768px) {
    html {
      font-size: 17px
    }
    .hero {
      min-height: 80vh
    }
    .hero h1 {
      font-size: 3rem
    }
    .newsletter-form {
      flex-direction: row
    }
    .newsletter-form input {
      flex: 1
    }
  }
  @media (min-width: 992px) {
    .hero h1 {
      font-size: 3rem
    }
  }
  @media (min-width: 1200px) {
    .container {
      padding: 0 var(--spacing-xl)
    }
  }
  @media (prefers-contrast: high) {
    :root {
      --primary-color: #000000;
      --text-color: #000000;
      --background-color: #ffffff;
      --border-color: #000000;
      --accent-color: #ff0000
    }
    header {
      border: 2px solid var(--border-color)
    }
  }
  @media (max-width: 479px) {
    html {
      font-size: 13.8px
    }
    .container {
      padding: 0 var(--spacing-sm)
    }
  }
  @media (min-width: 480px) and (max-width: 599px) {
    .container {
      padding: 0 var(--spacing-sm)
    }
  }
  @media (max-width: 767px) {
    .container {
      padding: 0 var(--spacing-sm)
    }
    .triumvirate-holder {
      flex-direction: column;
      align-items: center;
      gap: var(--spacing-md)
    }
    .triumvirate-holder figure img {
      width: 260px;
      height: 260px
    }
    .triumvirate {
      padding: var(--spacing-lg) 0
    }
    .store-grid > .store-card {
      width: 100%
    }
    .newsletter-section {
      padding: var(--spacing-lg) 0
    }
    .newsletter-content {
      padding: 0 var(--spacing-sm)
    }
    .newsletter-form {
      flex-direction: column;
      gap: var(--spacing-sm)
    }
    .newsletter-form input {
      width: 100%
    }
    .map-embed iframe {
      height: 250px
    }
    .map-embed img:not(.contact-static-map) {
      max-height: 250px;
      object-fit: contain
    }
    .btn {
      padding: 12.5px 30px;
      font-size: var(--font-size-base);
      width: 100%;
      text-align: center
    }
    .btn-primary,
    .btn-secondary {
      width: 100%
    }
    /* Homepage CTAs keep desktop (content) width on mobile */
    .page-home .btn,
    .page-home .btn-primary,
    .page-home .btn-secondary,
    .page-home .btn--primary,
    .page-home .btn--ghost,
    .page-home .btn--light {
      width: auto;
      max-width: none;
      font-size: 0.95rem
    }
    .page-home .hero__actions,
    .page-home .home-events-section__action,
    .page-home .home-deals-section__action,
    .page-home .text-center.mt-2,
    .page-home .newsletter-form {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center
    }
    .page-home .cta-band .container {
      display: flex;
      flex-direction: column;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center
    }
    .page-home .newsletter-form .btn,
    .page-home .newsletter-form .btn-primary {
      width: auto;
      flex: 0 0 auto
    }
    .triumvirate-btn.btn {
      padding: 12.5px 30px;
      font-size: var(--font-size-base)
    }
    footer {
      padding: var(--spacing-md) 0
    }
    .footer-secondary-logo {
      max-width: 60px;
      max-height: 24px
    }
    .namdar-logo {
      max-width: 120px;
      max-height: 40px
    }
    .nav-menu.active {
      max-width: 100%
    }
  }
  @media (min-width: 768px) and (max-width: 1023px) {
    .container {
      padding: 0 var(--spacing-md)
    }
    .triumvirate-holder {
      flex-direction: row;
      flex-wrap: wrap
    }
    .triumvirate-holder > div {
      flex: 0 0 auto;
      min-width: 0
    }
  }
  @media (min-width: 1200px) {
    .container {
      max-width: 1200px
    }
  }
  .search-results-section {
    padding: var(--spacing-xl) 0;
    min-height: 60vh
  }
  .search-results-header {
    margin-bottom: var(--spacing-xl);
    text-align: center
  }
  .search-results-header h1 {
    font-family: var(--font-display);
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm)
  }
  .search-results-count {
    font-size: var(--font-size-lg);
    color: var(--text-color-secondary);
    margin: 0
  }
  .search-no-results {
    text-align: center;
    padding: var(--spacing-xl);
    background-color: var(--background-light);
    border-radius: var(--radius-md)
  }
  .search-no-results p {
    margin-bottom: var(--spacing-sm)
  }
  .search-no-results a {
    color: var(--link-color);
    text-decoration: underline
  }
  .search-no-results a:focus,
  .search-no-results a:hover {
    color: var(--link-color-hover)
  }
  .search-results-group {
    margin-bottom: var(--spacing-2xl)
  }
  .search-results-group-title {
    font-family: var(--font-display);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--spacing-xs);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--accent-color)
  }
  .search-results-group-count {
    font-size: var(--font-size-base);
    color: var(--text-color-secondary);
    margin-bottom: var(--spacing-md);
    font-style: italic
  }
  @media (max-width: 767px) {
    .search-results-header h1 {
      font-size: var(--font-size-2xl)
    }
    .search-results-group-title {
      font-size: var(--font-size-xl)
    }
    .nav-menu.active {
      max-width: 100%
    }
  }
  .page-stores #main-content {
    max-width: 100%;
    overflow-x: clip
  }
  @supports not (overflow: clip) {
    .page-stores #main-content {
      overflow-x: hidden
    }
  }

/* =========================================================================
   Phase 3–5 - Homepage, store directory, store/deal detail (d2 bridge)
   ========================================================================= */

/* Shared d2 grid/card utilities */
.grid {
  display: grid;
  gap: 1.5rem
}
.grid--2 { grid-template-columns: repeat(2, 1fr) }
.grid--3 { grid-template-columns: repeat(3, 1fr) }

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
  display: flex;
  flex-direction: column
}
.card:hover { box-shadow: var(--shadow-md) }
a.card {
  text-decoration: none;
  color: inherit;
  cursor: pointer
}
a.card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px
}
.card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column
}
.card__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0.35rem 0 0.5rem;
  color: var(--color-text)
}
.card__link {
  margin-top: 1rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem
}
.card__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: var(--color-accent);
  color: #1f1b2e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase
}
.card__badge--inline {
  position: static;
  display: inline-block;
  margin-bottom: 0.75rem
}
.page-events-card__media,
.home-event-card__media,
.page-deals-card__media,
.event-detail-banner,
.deal-detail-banner {
  position: relative
}
.deal-ending-text {
  font-weight: 400;
  color: var(--color-text-muted);
  margin: 0
}
.event-location-bubble,
.deal-date-bubble {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  background: rgba(43, 35, 66, 0.88);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  max-width: calc(100% - 1.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none
}
.deal-date-bubble__label {
  font-weight: 600
}
.event-location-bubble--inline,
.deal-date-bubble--inline {
  position: static;
  display: inline-block;
    max-width: 100%;
  margin-bottom: 0.75rem;
  pointer-events: auto
}
.card__cat {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  font-weight: 600
}
.card__meta {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: auto
}
.card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--color-bg-muted);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted)
}

.store-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: stretch
}
.store-grid > .store-card {
  width: 100%;
    min-width: 0;
  max-width: 100%;
    box-sizing: border-box
  }
.store-card {
  text-align: center;
  padding: 1.5rem 1.25rem;
  color: var(--color-text);
  text-decoration: none
}
.store-card:hover,
.store-card:focus {
  color: var(--color-text);
  text-decoration: none
}
.page-home .store-grid .card.store-card {
  width: 100%;
  min-width: 0;
    max-width: 100%;
  margin: 0;
  text-align: center
}
.page-home .store-grid .card.store-card:hover,
.page-home .store-grid .card.store-card:focus {
  transform: none
}
.store-grid .store-card__name,
.store-grid .store-card__cat {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word
}
.store-card__logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  border-radius: 0;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--color-primary)
}
.store-card__logo img {
  width: 70%;
  height: 70%;
  object-fit: contain
}
.store-card__name {
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--color-text)
}
.store-card__cat {
  font-size: 0.8rem;
  color: var(--color-text-muted)
}

/* Homepage featured stores match deals card type scale */
.page-home .featured-stores-carousel .store-card,
.page-home .store-grid .store-card {
  padding: 0.65rem 0.75rem 0.75rem;
  gap: 0.25rem;
  justify-content: flex-start
}
.page-home .featured-stores-carousel .store-card__logo,
.page-home .store-grid .store-card__logo {
  margin: 0 auto 0.75rem
}
.page-home .featured-stores-carousel .store-card__name,
.page-home .store-grid .store-card__name {
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 0 0 0.25rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--color-text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical
}
.page-home .featured-stores-carousel .store-card__cat,
.page-home .store-grid .store-card__cat {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0
}
.page-home .featured-stores-carousel a.store-card:hover .store-card__name,
.page-home .featured-stores-carousel a.store-card:focus-visible .store-card__name,
.page-home .store-grid a.store-card:hover .store-card__name,
.page-home .store-grid a.store-card:focus-visible .store-card__name {
  color: var(--color-accent-dark)
}

.home-marquee-carousel,
.featured-stores-carousel {
  width: 100%
}
.home-marquee-carousel__viewport,
.featured-stores-carousel__viewport {
  overflow: hidden;
  width: 100%
}
.home-marquee-carousel__track,
.featured-stores-carousel__track {
  display: flex;
  gap: 1.5rem;
  will-change: transform;
  width: max-content
}
.home-events-carousel .home-marquee-carousel__track,
.home-deals-carousel .home-marquee-carousel__track,
.featured-stores-carousel .home-marquee-carousel__track,
.page-home .featured-stores-carousel .home-marquee-carousel__track {
  gap: 0.75rem
}

@media (min-width: 641px) {
  .page-home .home-events-carousel--static .home-marquee-carousel__viewport {
    overflow: visible
  }

  .page-home .home-events-carousel--static .home-marquee-carousel__track {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    animation: none;
    transform: none
  }
}
.home-marquee-carousel__track.is-animated,
.featured-stores-carousel__track.is-animated {
  animation: home-marquee-scroll var(--marquee-duration, 60s) linear infinite
}
.home-marquee-carousel:hover .home-marquee-carousel__track.is-animated,
.home-marquee-carousel:focus-within .home-marquee-carousel__track.is-animated,
.featured-stores-carousel:hover .featured-stores-carousel__track.is-animated,
.featured-stores-carousel:focus-within .featured-stores-carousel__track.is-animated {
  animation-play-state: paused
}
@keyframes home-marquee-scroll {
  from {
    transform: translateX(0)
  }
  to {
    transform: translateX(-50%)
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-marquee-carousel__track.is-animated,
  .featured-stores-carousel__track.is-animated {
    animation: none
  }
}
@media (max-width: 640px) {
  .home-marquee-carousel__viewport,
  .featured-stores-carousel__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    scrollbar-width: none
  }
  .home-marquee-carousel__viewport::-webkit-scrollbar,
  .featured-stores-carousel__viewport::-webkit-scrollbar {
    display: none
  }
  .home-marquee-carousel__track.is-animated,
  .home-marquee-carousel__track.is-touch-scroll,
  .featured-stores-carousel__track.is-animated,
  .featured-stores-carousel__track.is-touch-scroll {
    animation: none;
    transform: none;
    will-change: auto
  }
  .home-marquee-carousel__track [aria-hidden="true"],
  .featured-stores-carousel__track [aria-hidden="true"] {
    display: none
  }
  .home-marquee-carousel__track > .store-card,
  .featured-stores-carousel__track > .store-card,
  .home-events-carousel .home-marquee-carousel__track > .home-event-card,
  .home-deals-carousel .home-marquee-carousel__track > .home-deal-card {
    scroll-snap-align: start
  }
}
.home-marquee-carousel__track > .store-card,
.featured-stores-carousel__track > .store-card {
  min-width: 0;
    box-sizing: border-box
  }
.home-events-carousel .home-marquee-carousel__track > .home-event-card,
.home-deals-carousel .home-marquee-carousel__track > .home-deal-card {
  min-width: 0;
  box-sizing: border-box
}
.page-home .featured-stores-carousel .card.store-card:hover,
.page-home .featured-stores-carousel .card.store-card:focus,
.page-home .home-events-carousel .home-event-card:hover,
.page-home .home-events-carousel .home-event-card:focus-visible,
.page-home .home-deals-carousel .home-deal-card:hover,
.page-home .home-deals-carousel .home-deal-card:focus-visible {
  transform: none
}
.page-home .home-stat__value {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, var(--font-size-4xl));
  line-height: var(--line-height-tight);
  color: var(--color-accent);
  margin: 0 0 0.2rem;
}
.page-home .home-stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1.5rem, 4vw, 3rem);
  text-align: center
}
.page-home .home-stat {
  flex: 0 1 160px;
  min-width: 120px;
  text-align: center
}
.page-home .home-stat__label {
  margin: 0
}

/* Phase 3 — Homepage hero + infobar (above-the-fold; system fonts avoid webfont CLS) */
.page-home .page-home-hero {
  position: relative;
  min-height: clamp(320px, 58vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 0;
  overflow: hidden;
  background: var(--color-primary)
}
.page-home .page-home-hero .hero__slides {
  position: absolute;
  inset: 0
}
.page-home .page-home-hero .hero__slide {
  position: absolute;
  inset: 0;
  background-color: var(--color-primary);
  opacity: 0;
  transition: opacity 1s ease
}
.page-home .page-home-hero .hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}
.page-home .page-home-hero .hero__slide.active {
  opacity: 1
}
.page-home .page-home-hero .hero__dots {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  z-index: 3;
  display: flex;
  gap: 0.5rem
}
.page-home .page-home-hero .hero__dots button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: transparent;
  padding: 0;
  position: relative
}
.page-home .page-home-hero .hero__dots button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.55)
}
.page-home .page-home-hero .hero__dots button.active::before {
  background: var(--color-accent)
}
.page-home .page-home-hero .hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 4rem;
  padding-bottom: clamp(3rem, 7vw, 6rem);
  padding-left: 1rem;
  padding-right: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center
}
.page-home .page-home-hero .hero__copy {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3.5vw, 2.15rem) clamp(1.35rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
  max-width: 100%;
  color: #1f1b2e
}
.page-home .page-home-hero .hero__inner .eyebrow {
  display: block;
  color: var(--color-accent);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.3;
  margin: 0 0 0.35rem;
  max-width: none;
  -webkit-text-stroke: 0;
  text-shadow: none
}
.page-home .page-home-hero .hero__mall-name {
  margin: 0 0 0.75rem;
  color: #1f1b2e;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2
}
@media (min-width: 769px) {
  .page-home .page-home-hero .hero__copy {
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    padding: clamp(2rem, 4vw, 3rem) clamp(2.25rem, 5vw, 3.5rem)
  }
  .page-home .page-home-hero .hero__inner .eyebrow {
    font-size: 1.05rem;
    margin-bottom: 0.5rem
  }
  .page-home .page-home-hero .hero__mall-name {
    font-size: clamp(1.6rem, 3.2vw, 2.1rem)
  }
}
.page-home .page-home-hero .hero__inner h1 {
  margin: 0;
  color: #1f1b2e;
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 3.5vw, 2.15rem);
  font-weight: 600;
  line-height: 1.25
}
.page-home .page-home-hero .hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
  min-height: 44px
}
.page-home .page-home-hero .hero__actions .btn {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif
}
.page-home .page-home-infobar {
  background: var(--color-primary);
  color: #fff
}
.page-home .page-home-infobar .infobar__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  /* background: rgba(255, 255, 255, 0.12) */
}
.page-home .page-home-infobar .infobar__item {
  background: var(--color-primary);
  padding: 1.4rem 1.5rem
}
.page-home .page-home-infobar .infobar__item span {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.25rem
}
.page-home .page-home-infobar .infobar__item strong {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  font-weight: 600
}
@media (max-width: 768px) {
  .page-home .page-home-hero .hero__dots {
    right: 1rem
  }
  .page-home .page-home-infobar .infobar__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}
@media (max-width: 480px) {
  .page-home .page-home-hero .hero__actions {
    min-height: calc(44px + 1rem + 44px)
  }
  .page-home .page-home-infobar .infobar__grid {
    grid-template-columns: 1fr
  }
  .page-home .page-home-infobar .infobar__item {
    text-align: center
  }
  .page-home .page-home-infobar .infobar__item span,
  .page-home .page-home-infobar .infobar__item strong {
    text-align: center
  }
}

.page-home .triumvirate-component {
  padding: clamp(2.5rem, 6vw, 4rem) 0
}
.page-home .triumvirate-holder figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition)
}
.page-home .triumvirate-holder a:hover figure,
.page-home .triumvirate-holder a:focus figure {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px)
}
.page-home .triumvirate-holder picture {
  border-bottom: none;
  width: 260px;
  background: var(--color-bg-alt)
}
.page-home .triumvirate-holder figcaption {
  position: static;
  transform: none;
  padding: 0.85rem 1rem 1rem;
  background: var(--color-bg)
}
.page-home .triumvirate-btn.btn {
  width: 100%;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.06em
}
.page-home .home-features-holder {
  justify-content: center;
  width: 100%
}
.page-home .home-features-holder > div {
  flex: 0 0 260px;
  width: 260px;
  max-width: 260px
}
.page-home .home-features-holder .card {
  width: 100%;
  box-sizing: border-box;
  transition: box-shadow var(--transition)
}
.page-home .home-features-holder .card:hover {
  box-shadow: var(--shadow-md)
}
.page-home .home-features-holder .card__body {
  min-height: 260px
}
.page-home .home-features-holder .card__link {
  margin-top: auto
}
.page-home .home-events-holder > div,
.page-home .home-deals-holder > div {
  flex: 0 0 260px;
  width: 260px;
  max-width: 260px
}
.page-home .home-events-holder .home-event-card,
.page-home .home-events-carousel .home-event-card,
.page-home .home-deals-holder .home-deal-card,
.page-home .home-deals-carousel .home-deal-card {
  width: 100%;
  height: 380px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow var(--transition)
}
.page-home .home-events-holder .home-event-card:hover,
.page-home .home-events-holder .home-event-card:focus-visible,
.page-home .home-events-carousel .home-event-card:hover,
.page-home .home-events-carousel .home-event-card:focus-visible,
.page-home .home-deals-holder .home-deal-card:hover,
.page-home .home-deals-holder .home-deal-card:focus-visible,
.page-home .home-deals-carousel .home-deal-card:hover,
.page-home .home-deals-carousel .home-deal-card:focus-visible {
  box-shadow: var(--shadow-md);
  transform: none
}
.page-home .home-events-holder .home-event-card__media,
.page-home .home-events-carousel .home-event-card__media,
.page-home .home-deals-holder .home-deal-card__media,
.page-home .home-deals-carousel .home-deal-card__media {
  flex: 0 0 150px;
  height: 150px;
  aspect-ratio: unset;
  overflow: hidden
}
.page-home .home-events-holder .home-event-card__media img,
.page-home .home-events-carousel .home-event-card__media img,
.page-home .home-deals-holder .home-deal-card__media img,
.page-home .home-deals-carousel .home-deal-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block
}
.page-home .home-events-holder .home-event-card__media--empty,
.page-home .home-events-carousel .home-event-card__media--empty,
.page-home .home-deals-holder .home-deal-card__media--empty,
.page-home .home-deals-carousel .home-deal-card__media--empty {
  background: var(--color-bg-muted)
}
.page-home .home-events-holder .home-event-card .card__body,
.page-home .home-events-carousel .home-event-card .card__body,
.page-home .home-deals-holder .home-deal-card .card__body,
.page-home .home-deals-carousel .home-deal-card .card__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column
}
.page-home .home-events-holder .card__title,
.page-home .home-events-carousel .card__title,
.page-home .home-deals-holder .card__title,
.page-home .home-deals-carousel .card__title {
  margin-top: 0;
  font-size: 1.05rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical
}
.page-home .home-events-holder .card__title a {
  color: inherit;
  text-decoration: none
}
.page-home .home-events-holder a.home-event-card:hover .card__title,
.page-home .home-events-holder a.home-event-card:focus-visible .card__title,
.page-home .home-events-carousel a.home-event-card:hover .card__title,
.page-home .home-events-carousel a.home-event-card:focus-visible .card__title,
.page-home .home-deals-holder a.home-deal-card:hover .card__title,
.page-home .home-deals-holder a.home-deal-card:focus-visible .card__title,
.page-home .home-deals-carousel a.home-deal-card:hover .card__title,
.page-home .home-deals-carousel a.home-deal-card:focus-visible .card__title,
.page-home .home-events-holder .card__title a:hover,
.page-home .home-events-holder .card__title a:focus {
  color: var(--color-accent-dark)
}
.page-home .home-events-holder .muted,
.page-home .home-events-carousel .muted,
.page-home .home-deals-holder .muted,
.page-home .home-deals-carousel .muted {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical
}
.page-home .home-events-holder .card__meta,
.page-home .home-events-carousel .card__meta,
.page-home .home-deals-holder .card__meta,
.page-home .home-deals-carousel .card__meta {
  flex-shrink: 0;
  margin-top: auto;
  font-size: 0.85rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis
}
.page-home .home-events-section .section-head,
.page-home .home-deals-section .section-head {
  margin-bottom: 1rem
}
.page-home .home-events-section .triumvirate,
.page-home .home-deals-section .triumvirate {
  padding: 0
}
.page-home .home-events-section .home-events-holder,
.page-home .home-deals-section .home-deals-holder {
  gap: 0.75rem
}
.page-home .home-events-section .home-event-card .card__body,
.page-home .home-deals-section .home-deal-card .card__body,
.page-home .home-events-carousel .home-event-card .card__body,
.page-home .home-deals-carousel .home-deal-card .card__body {
  padding: 0.65rem 0.75rem 0.75rem;
  gap: 0.25rem
}
.page-home .home-events-section .card__badge--inline,
.page-home .home-deals-section .card__badge--inline,
.page-home .home-events-carousel .card__badge--inline,
.page-home .home-deals-carousel .card__badge--inline {
  margin-bottom: 0.25rem
}
.page-home .home-events-section .card__title,
.page-home .home-deals-section .card__title,
.page-home .home-events-carousel .card__title,
.page-home .home-deals-carousel .card__title {
  margin: 0 0 0.25rem
}
.page-home .home-events-section .home-events-holder .muted,
.page-home .home-deals-section .home-deals-holder .muted,
.page-home .home-events-carousel .muted,
.page-home .home-deals-carousel .muted {
  margin: 0
}
.page-home .home-events-section .home-events-holder .card__meta,
.page-home .home-deals-section .home-deals-holder .card__meta,
.page-home .home-events-carousel .card__meta {
  margin-top: 0.35rem
}
.page-home .home-events-section__action,
.page-home .home-deals-section__action {
  margin-top: 1rem
}
.page-home .section .triumvirate-holder {
  flex-wrap: wrap;
  justify-content: center
}
.page-home .section .triumvirate-holder > div {
  display: block
}
.page-home .newsletter-section {
  text-align: center;
  padding-bottom: clamp(0.5rem, 1.5vw, 1rem)
}
.page-home main > .cta-band {
  padding-top: clamp(0.75rem, 2vw, 1.25rem);
  padding-bottom: clamp(1rem, 2.5vw, 1.75rem)
}
.page-home .site-footer {
  padding-top: clamp(1.75rem, 3.5vw, 2.25rem)
}
.page-home .newsletter-content h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 600;
  color: var(--color-text)
}
.page-home .newsletter-content > p,
.page-home .newsletter-note {
  color: var(--color-text-muted)
}
.page-home .newsletter-form {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 460px;
  margin: 0 auto 1rem
}
.page-home .newsletter-form input {
  flex: 1;
  min-width: 200px;
  border-radius: 999px;
  border: 1px solid var(--color-border)
}
.page-home .facebook-banner-link {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em
}
.page-home .facebook-banner-link:hover,
.page-home .facebook-banner-link:focus {
  background: var(--color-primary-soft);
  color: var(--color-accent)
}

/* Phase 4 - Store directory */
.page-stores .directory-section,
.page-store-detail .directory-section,
.page-deal-detail .directory-section {
  margin-top: 0;
  padding: clamp(2rem, 5vw, 3.5rem) 0
}

/* Stores page - d2 directory layout */
.page-stores .page-hero {
  background: var(--color-primary);
  color: #fff
}
.page-stores .page-hero h1 {
  color: #fff
}
.page-stores .breadcrumbs {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.75rem
}
.page-stores .breadcrumbs a {
  color: var(--color-accent)
}
.page-stores .breadcrumbs span {
  margin: 0 0.4rem
}
.page-stores .section .directory-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  margin-top: 0;
  position: static
}
.page-stores #store-search.search-input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  min-width: 200px;
  flex: 1 1 240px;
  max-width: 420px
}
.page-stores #store-search.search-input:focus {
  outline: 2px solid var(--color-accent);
  border-color: transparent
}
.page-stores #store-count {
  flex-shrink: 0
}
.page-stores .pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem
}
.page-stores .pill {
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  min-height: 44px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--color-text);
  transition: all var(--transition)
}
.page-stores .pill:hover {
  border-color: var(--color-accent)
}
.page-stores .pill.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary)
}
.page-stores #store-grid.store-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr))
}
.page-stores #store-grid .store-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0
}
.page-stores #store-grid .store-card.store-has-sale {
  position: relative;
  border: 3px solid var(--button-color)
}
.page-stores #store-grid .store-card .store-sale-flag {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--button-color);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 8px 14px;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border-bottom-left-radius: 4px;
  line-height: 1.2
}
.page-stores .stores-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted)
}
.page-stores .stores-empty-state h3 {
  margin: 0 0 0.5rem;
  color: var(--color-text)
}


/* Phase 5 - Store detail */
.page-store-detail .store-header--logo-only {
  background: var(--color-bg-alt);
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--color-border)
}
.page-store-detail .store-header-content--has-logo {
  min-height: 232px;
  display: flex;
  align-items: center;
  justify-content: center
}
.page-store-detail .store-logo-image {
  max-width: min(320px, 80vw);
  max-height: 200px;
  width: auto;
  height: auto;
  padding: 1rem 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  object-fit: contain;
  display: block;
  margin: 0 auto
}
.page-store-detail .store-detail {
      display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  align-items: start
}
.page-store-detail .detail-aside {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: sticky;
  top: calc(var(--header-height, 72px) + 1.5rem)
}
.page-store-detail .detail-aside dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1rem;
  margin: 0
}
.page-store-detail .detail-aside dt {
  font-weight: 600;
  color: var(--color-primary);
  font-family: var(--font-head);
  font-size: 0.9rem
}
.page-store-detail .detail-aside dd {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem
}
.page-store-detail .detail-aside dd a {
  color: var(--color-accent-dark)
}
.page-store-detail .page-store-detail-related {
  padding-top: 2rem;
  padding-bottom: 0
}
.page-store-detail .page-store-detail-related h2 {
  margin-bottom: 1.5rem
}
.page-store-detail .store-deals-grid {
  align-items: stretch
}
.page-store-detail .job-list {
  display: flex;
  flex-direction: column;
  gap: 1rem
}
.page-store-detail .job-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition)
}
.page-store-detail .job-card:hover {
  box-shadow: var(--shadow-md)
}
.page-store-detail .job-card__main {
  display: flex;
  gap: 1rem;
  align-items: center
}
.page-store-detail .job-card__logo {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--color-primary);
  overflow: hidden;
  flex-shrink: 0
}
.page-store-detail .job-card__logo img {
  width: 70%;
  height: 70%;
  object-fit: contain
}
.page-store-detail .job-card__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem
}
.page-store-detail .job-card__meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.2rem
}

/* Phase 5 - Deal detail */
.page-deal-detail .page-hero {
  background: var(--color-primary);
  color: #fff
}
.page-deal-detail .page-hero h1 {
  color: #fff
}
.page-deal-detail .breadcrumbs {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.75rem
}
.page-deal-detail .breadcrumbs a {
  color: var(--color-accent)
}
.page-deal-detail .breadcrumbs span {
  margin: 0 0.4rem
}
.page-deal-detail .section {
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem)
}
.page-deal-detail .store-detail,
.page-event-detail .store-detail {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  align-items: start
}
.page-deal-detail .detail-aside,
.page-event-detail .detail-aside {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: sticky;
  top: calc(var(--header-height, 72px) + 1.5rem)
}
.page-deal-detail .detail-aside dl,
.page-event-detail .detail-aside dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1rem;
  margin: 0
}
.page-deal-detail .detail-aside dt,
.page-event-detail .detail-aside dt {
  font-weight: 600;
  color: var(--color-primary);
  font-family: var(--font-head);
  font-size: 0.9rem
}
.page-deal-detail .detail-aside dd,
.page-event-detail .detail-aside dd {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem
}
.page-deal-detail .detail-aside dd a,
.page-event-detail .detail-aside dd a {
  color: var(--color-accent-dark)
}
.page-deal-detail .deal-detail-banner,
.page-event-detail .deal-detail-banner {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  aspect-ratio: 16 / 10;
  min-height: 200px
}
.page-deal-detail .deal-detail-banner img,
.page-event-detail .deal-detail-banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain
}
.page-deal-detail .page-deal-detail-related,
.page-event-detail .page-event-detail-related {
  padding-top: 2rem;
  padding-bottom: 0
}
.page-deal-detail .page-deal-detail-related h2,
.page-event-detail .page-event-detail-related h2 {
  margin-bottom: 1.5rem
}
.page-deal-detail .page-deal-detail-related .grid--3,
.page-event-detail .page-event-detail-related .grid--3 {
  align-items: stretch
}
.page-deal-detail .page-deal-detail-related .page-deals-card,
.page-event-detail .page-event-detail-related .page-events-card {
  display: flex;
  flex-direction: column;
  height: 100%
}
.page-deal-detail .page-deal-detail-related .page-deals-card .card__body,
.page-event-detail .page-event-detail-related .page-events-card .card__body {
  flex: 1;
  display: flex;
  flex-direction: column
}


@media (max-width: 992px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr
  }
  .page-store-detail .store-detail {
    grid-template-columns: 1fr
  }
  .page-store-detail .detail-aside {
    position: static
  }
  .page-deal-detail .store-detail,
  .page-event-detail .store-detail {
    grid-template-columns: 1fr
  }
  .page-deal-detail .detail-aside,
  .page-event-detail .detail-aside {
    position: static
  }
  .page-store-detail .store-deals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%
  }
}

@media (max-width: 768px) {
  .page-home .newsletter-form {
    flex-direction: column
  }
  .page-store-detail .store-deals-grid {
    grid-template-columns: 1fr
  }
}

/* =========================================================================
   Phase 6 - Events & deals listing (d2 bridge)
   ========================================================================= */

.page-events .directory-section,
.page-deals .directory-section,
.page-event-detail .directory-section {
  margin-top: 0;
  padding: clamp(2rem, 5vw, 3.5rem) 0
}


/* Events - d2 card grid */
.page-events .page-hero,
.page-event-detail .page-hero {
  background: var(--color-primary);
  color: #fff
}
.page-events .page-hero h1,
.page-event-detail .page-hero h1 {
  color: #fff
}
.page-events .breadcrumbs,
.page-event-detail .breadcrumbs {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.75rem
}
.page-events .breadcrumbs a,
.page-event-detail .breadcrumbs a {
  color: var(--color-accent)
}
.page-events .breadcrumbs span,
.page-event-detail .breadcrumbs span {
  margin: 0 0.4rem
}
.page-events .section {
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 1.5rem)
}
.page-event-detail .section {
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem)
}
.page-events #events-list.grid--3,
.page-event-detail .page-event-detail-related .grid--3 {
  align-items: stretch
}

/* Deals - d2 card grid */
.page-deals .page-hero {
  background: var(--color-primary);
  color: #fff
}
.page-deals .page-hero h1 {
  color: #fff
}
.page-deals .breadcrumbs {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.75rem
}
.page-deals .breadcrumbs a {
  color: var(--color-accent)
}
.page-deals .breadcrumbs span {
  margin: 0 0.4rem
}
.page-deals .section {
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem)
}
.page-deals #deals-list.grid--3 {
  align-items: stretch
}
.page-deals #deals-list .page-deals-card,
.page-events #events-list .page-deals-card,
.page-events #events-list .page-events-card,
.page-store-detail .store-deals-grid .page-deals-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%
}
.page-deals #deals-list .page-deals-card .card__body,
.page-events #events-list .page-deals-card .card__body,
.page-events #events-list .page-events-card .card__body,
.page-store-detail .store-deals-grid .page-deals-card .card__body {
  flex: 1;
  display: flex;
  flex-direction: column
}
.page-deals #deals-list .page-deals-card .card__title,
.page-events #events-list .page-deals-card .card__title,
.page-events #events-list .page-events-card .card__title,
.page-store-detail .store-deals-grid .page-deals-card .card__title {
  margin-top: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical
}
.page-deals #deals-list .page-deals-card .card__title a,
.page-events #events-list .page-deals-card .card__title a,
.page-events #events-list .page-events-card .card__title a,
.page-store-detail .store-deals-grid .page-deals-card .card__title a {
  color: inherit;
  text-decoration: none
}
.page-deals #deals-list .page-deals-card:hover .card__title,
.page-deals #deals-list a.page-deals-card:hover .card__title,
.page-deals #deals-list .page-deals-card .card__title a:hover,
.page-deals #deals-list .page-deals-card .card__title a:focus,
.page-events #events-list a.page-deals-card:hover .card__title,
.page-events #events-list .page-deals-card .card__title a:hover,
.page-events #events-list .page-deals-card .card__title a:focus,
.page-events #events-list a.page-events-card:hover .card__title,
.page-events #events-list .page-events-card .card__title a:hover,
.page-events #events-list .page-events-card .card__title a:focus,
.page-store-detail .store-deals-grid .page-deals-card .card__title a:hover,
.page-store-detail .store-deals-grid .page-deals-card .card__title a:focus {
  color: var(--color-accent-dark)
}
.page-deals #deals-list .page-deals-card .card__cat,
.page-events #events-list .page-deals-card .card__cat,
.page-events #events-list .page-events-card .card__cat,
.page-store-detail .store-deals-grid .page-deals-card .card__cat {
  text-decoration: none;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical
}
.page-deals #deals-list .page-deals-card .card__cat:hover,
.page-deals #deals-list .page-deals-card .card__cat:focus,
.page-events #events-list .page-deals-card .card__cat:hover,
.page-events #events-list .page-deals-card .card__cat:focus,
.page-events #events-list .page-events-card .card__cat:hover,
.page-events #events-list .page-events-card .card__cat:focus,
.page-store-detail .store-deals-grid .page-deals-card .card__cat:hover,
.page-store-detail .store-deals-grid .page-deals-card .card__cat:focus {
  color: var(--color-primary)
}
.page-deals #deals-list .page-deals-card .muted,
.page-events #events-list .page-deals-card .muted,
.page-events #events-list .page-events-card .muted,
.page-store-detail .store-deals-grid .page-deals-card .muted {
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical
}
.page-deals #deals-list .page-deals-card__media--empty,
.page-events #events-list .page-deals-card__media--empty,
.page-events #events-list .page-events-card__media--empty,
.page-store-detail .store-deals-grid .page-deals-card__media--empty {
  background: var(--color-bg-muted)
}

/* =========================================================================
   Phase 7 - Map page (d2 layout)
   ========================================================================= */

.page-map .page-hero {
  background: var(--color-primary);
  color: #fff
}
.page-map .page-hero h1 {
  color: #fff
}
.page-map .breadcrumbs {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.75rem
}
.page-map .breadcrumbs a {
  color: var(--color-accent)
}
.page-map .breadcrumbs span {
  margin: 0 0.4rem
}
.page-map .section {
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem)
}
.page-map .map-stage {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem
}
.page-map .map-open {
  display: block;
  width: 100%;
  border: none;
  background: var(--color-bg-muted);
  cursor: zoom-in;
  padding: 0;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 280px
}
.page-map .map-open img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-sm)
}
.page-map .map-open img.img-missing {
  min-height: 340px;
  background: repeating-linear-gradient(45deg, #efece6, #efece6 18px, #e7e2d8 18px, #e7e2d8 36px)
}
.page-map .map-open__hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(43, 35, 66, 0.9);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  white-space: nowrap
}
.page-map .map-stage-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--color-text-muted);
  padding: 2rem 1rem
}

.map-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(18, 14, 30, 0.96);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  contain: layout style paint;
  transition: opacity var(--transition), visibility var(--transition)
}
.map-lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto
}
.map-lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem clamp(1rem, 4vw, 2rem);
  color: #fff;
  flex-shrink: 0
}
.map-lightbox__title {
  font-family: var(--font-head);
  font-weight: 600
}
.map-lightbox__tools {
  display: flex;
  gap: 0.5rem
}
.map-lightbox__tools button {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  height: 44px;
  padding: 0 0.9rem;
  border-radius: 999px;
  font-size: 1.2rem;
  font-family: var(--font-head);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition)
}
.map-lightbox__tools button:hover,
.map-lightbox__tools button:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  outline: none
}
.map-lightbox__stage {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  cursor: grab
}
.map-lightbox__stage:active {
  cursor: grabbing
}
.map-lightbox__stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  transition: transform 0.05s linear;
  will-change: transform
}
.map-lightbox__hint {
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  padding: 0.75rem 1rem;
  margin: 0;
  flex-shrink: 0
}


/* =========================================================================
   Phase 8 - Jobs, contact, leasing (d2 bridge)
   ========================================================================= */

.page-jobs .section {
  padding-top: clamp(2rem, 5vw, 3rem)
}
.page-jobs .form-note.mt-2 {
  margin-top: 1rem;
  margin-bottom: 0
}

.page-jobs .jobs-openings {
  margin-top: 2.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm)
}

.page-jobs .jobs-openings-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem
}

.page-jobs .jobs-openings-header h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text)
}

.page-jobs .jobs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem
}

.page-jobs .jobs-list-item {
  border: none;
  padding: 0
}

.page-jobs .jobs-store-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition)
}

.page-jobs .jobs-store-link:hover,
.page-jobs .jobs-store-link:focus {
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit
}

.page-jobs .jobs-store-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text)
}

.page-jobs .jobs-empty-state {
  color: var(--color-text-muted)
}

.page-jobs .form-note {
  font-size: 0.85rem;
  color: var(--color-text-muted)
}

.page-jobs .prose + .jobs-openings {
  margin-top: 2.5rem
}

/* Contact - d2 layout */
.page-contact .page-hero {
  background: var(--color-primary);
  color: #fff
}
.page-contact .page-hero h1 {
  color: #fff
}
.page-contact .breadcrumbs {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.75rem
}
.page-contact .breadcrumbs a {
  color: var(--color-accent)
}
.page-contact .breadcrumbs span {
  margin: 0 0.4rem
}
.page-contact .section {
  padding-top: clamp(2rem, 5vw, 3rem)
}
.page-contact .info-block:last-child {
  margin-bottom: 0
}
.page-contact .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start
}
.page-contact .info-block {
  margin-bottom: 1.75rem
}
.page-contact .info-block h3,
.page-contact .info-block h2 {
  margin-bottom: 0.35rem
}
.page-contact .contact-amenities-list {
  list-style: none;
      padding-left: 0;
  margin: 0
}
.page-contact .contact-amenities-list li {
  padding: 0.35rem 0;
  color: var(--color-text-muted)
}
.page-contact .tag-anchor {
  color: var(--color-accent-dark);
  font-weight: 600;
  text-decoration: none
}
.page-contact .tag-anchor:hover,
.page-contact .tag-anchor:focus {
  color: var(--color-primary)
}
.page-contact .form-note {
  font-size: 0.85rem;
  color: var(--color-text-muted)
}
.page-contact #contact-hours .contact-hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border)
}
.page-contact #contact-hours .contact-hours-row strong {
  font-weight: 600;
  text-align: right
}
.page-contact .map-embed,
.page-contact .map-embed--static {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border);
      width: 100%
    }
.page-contact .map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block
}
.page-contact .map-embed--static {
  aspect-ratio: auto;
  height: auto
}
.page-contact .contact-static-map {
  display: block;
  width: min(100%, 802px);
  max-width: 802px;
  height: auto;
  aspect-ratio: 802 / 402;
  margin: 0 auto;
  object-fit: contain
}
.page-contact .contact-static-map[data-image-lightbox] {
  cursor: zoom-in
}
.page-contact .contact-static-map[data-image-lightbox]:hover,
.page-contact .contact-static-map[data-image-lightbox]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px
}
@media (max-width: 992px) {
  .page-contact .split {
    grid-template-columns: 1fr
  }
}

/* Leasing - d2 layout */
.page-leasing .page-hero {
  background: var(--color-primary);
  color: #fff
}
.page-leasing .page-hero h1 {
  color: #fff
}
.page-leasing .breadcrumbs {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.75rem
}
.page-leasing .breadcrumbs a {
  color: var(--color-accent)
}
.page-leasing .breadcrumbs span {
  margin: 0 0.4rem
}
.page-leasing .section {
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem)
}
.page-leasing .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start
}
.page-leasing .info-block {
  margin-bottom: 1.75rem
}
.page-leasing .info-block h3 {
  margin-bottom: 0.35rem
}
.page-leasing .leasing-contact-card {
  padding: 2rem
}
.page-leasing .leasing-image {
  margin: 0 0 1.25rem;
  aspect-ratio: 16 / 10;
  min-height: 120px;
  background: var(--color-bg-muted);
  border-radius: var(--radius-sm);
  overflow: hidden
}
.page-leasing .leasing-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: none
}
.page-leasing .grid--2 {
  align-items: stretch
}
.page-leasing .grid--2 .card {
  height: 100%
}
@media (max-width: 992px) {
  .page-leasing .split {
    grid-template-columns: 1fr
  }
}

/* =========================================================================
   Phase 9 - Legal & utility pages (d2 layout)
   ========================================================================= */

.page-terms .page-hero,
.page-privacy .page-hero,
.page-disclaimer .page-hero,
.page-cookie-policy .page-hero,
.page-jobs .page-hero,
.page-editorial .page-hero,
.page-info .page-hero,
.page-sitemap .page-hero {
  background: var(--color-primary);
  color: #fff
}
.page-terms .page-hero h1,
.page-privacy .page-hero h1,
.page-disclaimer .page-hero h1,
.page-cookie-policy .page-hero h1,
.page-jobs .page-hero h1,
.page-editorial .page-hero h1,
.page-info .page-hero h1,
.page-sitemap .page-hero h1 {
  color: #fff
}
.page-terms .breadcrumbs,
.page-privacy .breadcrumbs,
.page-disclaimer .breadcrumbs,
.page-cookie-policy .breadcrumbs,
.page-jobs .breadcrumbs,
.page-editorial .breadcrumbs,
.page-info .breadcrumbs,
.page-sitemap .breadcrumbs {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.75rem
}
.page-terms .breadcrumbs a,
.page-privacy .breadcrumbs a,
.page-disclaimer .breadcrumbs a,
.page-cookie-policy .breadcrumbs a,
.page-jobs .breadcrumbs a,
.page-editorial .breadcrumbs a,
.page-info .breadcrumbs a,
.page-sitemap .breadcrumbs a {
  color: var(--color-accent)
}
.page-terms .breadcrumbs span,
.page-privacy .breadcrumbs span,
.page-disclaimer .breadcrumbs span,
.page-cookie-policy .breadcrumbs span,
.page-jobs .breadcrumbs span,
.page-editorial .breadcrumbs span,
.page-info .breadcrumbs span,
.page-sitemap .breadcrumbs span {
  margin: 0 0.4rem
}
.page-terms .section,
.page-privacy .section,
.page-disclaimer .section,
.page-cookie-policy .section,
.page-editorial .section,
.page-info .section,
.page-sitemap .section {
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem)
}
.page-terms .prose,
.page-privacy .prose,
.page-disclaimer .prose,
.page-cookie-policy .prose,
.page-editorial .prose,
.page-info .prose,
.page-jobs .prose {
  max-width: 760px
}
.page-terms .prose h2,
.page-privacy .prose h2,
.page-disclaimer .prose h2,
.page-cookie-policy .prose h2,
.page-editorial .prose h2,
.page-info .prose h2,
.page-jobs .prose h2 {
  margin-top: 2.5rem;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text)
}
.page-terms .prose h2:first-child,
.page-privacy .prose h2:first-child,
.page-disclaimer .prose h2:first-child,
.page-cookie-policy .prose h2:first-child,
.page-editorial .prose h2:first-child,
.page-info .prose h2:first-child,
.page-jobs .prose h2:first-child {
  margin-top: 0
}
.page-terms .prose p,
.page-privacy .prose p,
.page-disclaimer .prose p,
.page-cookie-policy .prose p,
.page-editorial .prose p,
.page-info .prose p,
.page-jobs .prose p {
  color: var(--color-text-muted);
  line-height: 1.7
}
.page-terms .prose ul,
.page-privacy .prose ul,
.page-disclaimer .prose ul,
.page-cookie-policy .prose ul,
.page-editorial .prose ul,
.page-info .prose ul,
.page-jobs .prose ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem
}
.page-terms .prose li,
.page-privacy .prose li,
.page-disclaimer .prose li,
.page-cookie-policy .prose li,
.page-editorial .prose li,
.page-info .prose li,
.page-jobs .prose li {
  margin-bottom: 0.4rem
}
.page-disclaimer .content-last-updated,
.page-cookie-policy .content-last-updated,
.page-terms .content-last-updated,
.page-privacy .content-last-updated,
.page-accessibility .content-last-updated,
.page-editorial .content-last-updated,
.page-info .content-last-updated,
.page-jobs .content-last-updated {
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--color-text-muted)
}
.page-sitemap .sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: start
}
.page-sitemap .sitemap-col h3,
.page-sitemap .sitemap-col h2 {
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.5rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text)
}
.page-sitemap .sitemap-col ul {
  list-style: none;
  padding: 0;
  margin: 0
}
.page-sitemap .sitemap-col li {
  margin-bottom: 0.5rem
}
.page-sitemap .sitemap-col li:last-child {
  margin-bottom: 0
}
.page-sitemap .sitemap-description {
  color: var(--color-text-muted)
}
.page-sitemap .page-sitemap__stores-heading {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text)
}
.page-sitemap .page-sitemap__stores-col {
  grid-column: 1 / -1
}
.page-sitemap .page-sitemap__stores-list {
  columns: 3;
  column-gap: 2rem
}
@media (max-width: 768px) {
  .page-sitemap .page-sitemap__stores-list {
    columns: 1
  }
}

/* =========================================================================
   Phase 10 - Cleanup & QA
   ========================================================================= */

/* Cancel legacy negative overlap on all migrated content pages */
.page-home .directory-section,
.page-stores .directory-section,
.page-store-detail .directory-section,
.page-deal-detail .directory-section,
.page-events .directory-section,
.page-deals .directory-section,
.page-event-detail .directory-section,
.page-jobs .directory-section,
.page-leasing .directory-section,
.page-privacy .directory-section,
.page-terms .directory-section,
.page-disclaimer .directory-section,
.page-cookie-policy .directory-section,
.page-sitemap .directory-section,
.page-accessibility .directory-section,
.page-info .directory-section,
.page-editorial .directory-section {
  margin-top: 0
}

/* Card hover lift - honor reduced motion */
@media (prefers-reduced-motion: reduce) {
  .page-jobs .jobs-store-link,
  .page-events #events-list .page-deals-card,
  .page-events #events-list .page-events-card,
  .page-deals #deals-list .page-deals-card,
  .page-deal-detail .page-deal-detail-related .page-deals-card,
  .page-store-detail .store-deals-grid .page-deals-card {
    transition: none !important
  }

  .page-events #events-list .page-deals-card:hover,
  .page-events #events-list .page-events-card:hover,
  .page-deals #deals-list .page-deals-card:hover,
  .page-deal-detail .page-deal-detail-related .page-deals-card:hover,
  .page-store-detail .store-deals-grid .page-deals-card:hover {
    transform: none !important
  }
}

/* =========================================================================
   UI cleanups - header search, homepage stores, mobile filters
   ========================================================================= */

/* Search submit: only visible when hovering/focusing the search icon (or the submit itself) */
.header-search.active .search-submit {
  display: none !important
}


/* =========================================================================
   d2 footer + homepage CTA band
   ========================================================================= */

.cta-band {
  background: var(--color-primary);
  color: #fff;
  text-align: center
}

/* Interior pages - modest gap between main content and CTA (CTA kept on all pages) */
body:not(.page-home) main > .section:not(.cta-band) {
  padding-bottom: clamp(1rem, 2.5vw, 1.5rem)
}
body:not(.page-home) main > .directory-section,
body:not(.page-home) main > .search-results-section {
  padding-bottom: clamp(1rem, 2.5vw, 1.5rem)
}
body:not(.page-home) main > .cta-band {
  padding-top: clamp(0.75rem, 2vw, 1.25rem);
  padding-bottom: clamp(1.5rem, 3.5vw, 2.75rem)
}
body:not(.page-home) .site-footer {
  padding-top: clamp(1.75rem, 3.5vw, 2.25rem)
}

.cta-band h2 {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 1.5rem
}

.site-footer {
  padding-top: 2.5rem;
  padding-bottom: 0;
  text-align: left
}

.site-footer .container {
  text-align: left
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.75rem 2rem;
  align-items: start;
  padding-bottom: 1.5rem
}

.site-footer .footer-col {
  text-align: left;
  min-width: 0
}

.site-footer .footer-col--brand {
  text-align: left
}

.site-footer .footer-col--brand .footer-brand {
  justify-content: flex-start;
  text-align: left
}

.site-footer .footer-col--brand .footer-address,
.site-footer .footer-col--brand .footer-phone {
  text-align: left
}

.site-footer .footer-col--brand .footer-social {
  justify-content: flex-start
}

.site-footer .footer-col h4,
.site-footer .footer-col h2.footer-col__title {
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
  text-align: left
}

.site-footer .footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0
}

.site-footer .footer-col li {
  margin: 0;
  padding: 0;
  line-height: 1.35
}

.site-footer .footer-col > ul a,
.site-footer .footer-col > p a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.35;
  text-decoration: none;
  display: inline;
  padding: 0;
  min-height: 0;
  margin: 0
}

.site-footer .footer-col > ul a {
  display: block;
  padding: 0.2rem 0
}

.site-footer .footer-col .footer-social a {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
  line-height: 1
}

.site-footer .footer-col a:hover,
.site-footer .footer-col a:focus {
  color: var(--color-accent);
  text-decoration: none
}

.site-footer .footer-col p,
.site-footer .footer-col .footer-address,
.site-footer .footer-col .footer-phone {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
  text-align: left
}

.site-footer .footer-col .footer-address {
  margin-bottom: 0.25rem
}

.site-footer .footer-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  color: #fff;
  text-align: left
}

.site-footer .footer-brand-logo {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  flex-shrink: 0;
  display: block
}

.site-footer .footer-brand-name {
  line-height: 1.2
}

.site-footer .nav__logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0
}

.site-footer .footer-social {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem
}

.site-footer .footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none
}

.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus {
  background: var(--color-accent);
  color: var(--color-primary)
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center
}

.site-footer .footer-bottom .footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 1.15rem;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0
}

.site-footer .footer-bottom .footer-bottom-meta {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%
}

.site-footer .footer-bottom .footer-copyright {
  margin: 0;
  padding: 0;
  border-top: none;
  width: auto;
  flex: 0 1 auto;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9)
}

.site-footer .footer-bottom .footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  flex: 0 0 auto
}

.site-footer .footer-bottom .footer-secondary-logo {
  max-width: 75px;
  max-height: 30px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.95;
  display: block
}

.site-footer .footer-bottom .namdar-logo {
  max-width: 150px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.95;
  display: block;
  filter: brightness(0) invert(1)
}

.site-footer .footer-bottom .footer-secondary-logo:hover,
.site-footer .footer-bottom .namdar-logo:hover {
  opacity: 1
}

.site-footer .footer-legal a,
.site-footer .footer-bottom .footer-legal a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.35;
  padding: 0.2rem 0;
  min-height: 0;
  display: inline;
  margin: 0
}

.site-footer .footer-legal a:hover,
.site-footer .footer-legal a:focus {
  color: var(--color-accent)
}

@media (max-width: 768px) and (min-width: 511px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1.25rem;
    padding-bottom: 1.25rem
  }

  .site-footer .footer-col--brand {
    grid-column: 1 / -1;
    text-align: center
  }

  .site-footer .footer-col--brand .footer-brand {
    justify-content: center;
    text-align: center
  }

  .site-footer .footer-col--brand .footer-address,
  .site-footer .footer-col--brand .footer-phone {
    text-align: center
  }

  .site-footer .footer-col--brand .footer-social {
    justify-content: center
  }
}

@media (max-width: 510px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: center
  }

  .site-footer .footer-col--brand,
  .site-footer .footer-col--nav {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    text-align: center
  }

  .site-footer .footer-col--brand .footer-brand {
    justify-content: center;
    text-align: center;
    font-size: var(--text-body)
  }

  .site-footer .footer-col--brand .footer-brand-name {
    font-size: var(--text-body)
  }

  .site-footer .footer-col--brand .footer-address,
  .site-footer .footer-col--brand .footer-phone,
  .site-footer .footer-col--brand .footer-phone a {
    text-align: center;
    font-size: var(--text-body);
    line-height: 1.4
  }

  .site-footer .footer-col--brand .footer-social {
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.85rem
  }

  .site-footer .footer-col--brand .footer-social a {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: var(--text-sm)
  }

  .site-footer .footer-col--nav h2.footer-col__title {
    text-align: center;
    font-size: var(--text-body);
    margin-bottom: 0.75rem
  }

  .site-footer .footer-col--nav ul {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center
  }

  .site-footer .footer-col--nav li {
    width: 100%;
    text-align: center
  }

  .site-footer .footer-col--nav > ul a {
    text-align: center;
    font-size: var(--text-body);
    line-height: 1.4;
    justify-content: center
  }

  .site-footer .footer-bottom {
    font-size: var(--text-body);
    gap: 0.85rem
  }

  .site-footer .footer-bottom .footer-legal a,
  .site-footer .footer-legal a {
    font-size: var(--text-body);
    line-height: 1.4
  }

  .site-footer .footer-bottom .footer-copyright {
    font-size: var(--text-body);
    line-height: 1.4
  }

  .site-footer .footer-bottom .footer-secondary-logo {
    max-width: 112px;
    max-height: 45px
  }

  .site-footer .footer-bottom .namdar-logo {
    max-width: 225px;
    max-height: 75px
  }

  /* Homepage CTAs match page body scale at this breakpoint */
  .page-home .btn,
  .page-home .btn-primary,
  .page-home .btn-secondary,
  .page-home .btn--primary,
  .page-home .btn--ghost,
  .page-home .btn--light {
    font-size: var(--text-body);
    line-height: 1.4
  }
}

/* Homepage typography matches footer text scale at 510px and below
   (body text 1.35rem, labels 1.2rem, headings scaled proportionally) */
@media (max-width: 510px) {
  .page-home .section-head h2,
  .page-home .cta-band h2 {
    font-size: 2rem
  }

  .page-home .eyebrow {
    font-size: 1.2rem
  }

  .page-home .page-home-hero .hero__inner .eyebrow {
    font-size: 1.05rem
  }

  .page-home .page-home-hero .hero__mall-name {
    font-size: 1.75rem
  }

  .page-home .page-home-hero .hero__inner h1 {
    font-size: 1.85rem
  }

  .page-home .section-head .lead,
  .page-home .lead {
    font-size: 1rem;
    line-height: 1.45
  }

  .page-home .muted,
  .page-home .cta-band p {
    font-size: 1rem;
    line-height: 1.45
  }

  .page-home .card__title {
    font-size: 1.5rem
  }

  .page-home .home-events-holder .card__title,
  .page-home .home-events-carousel .card__title,
  .page-home .home-deals-holder .card__title,
  .page-home .home-deals-carousel .card__title,
  .page-home .featured-stores-carousel .store-card__name,
  .page-home .store-grid .store-card__name {
    font-size: 1.5rem;
    line-height: 1.25
  }

  .page-home .home-events-holder .muted,
  .page-home .home-events-carousel .muted,
  .page-home .home-deals-holder .muted,
  .page-home .home-deals-carousel .muted,
  .page-home .featured-stores-carousel .store-card__cat,
  .page-home .store-grid .store-card__cat {
    font-size: 1rem;
    line-height: 1.45
  }

  .page-home .card__meta,
  .page-home .home-events-holder .card__meta,
  .page-home .home-events-carousel .card__meta,
  .page-home .home-deals-holder .card__meta,
  .page-home .home-deals-carousel .card__meta {
    font-size: 1.2rem
  }

  .page-home .card__badge,
  .page-home .card__badge--inline,
  .page-home .card__cat {
    font-size: 1.05rem
  }

  .page-home .card__link {
    font-size: 1rem
  }

  .page-home .event-location-bubble,
  .page-home .deal-date-bubble {
    font-size: 1.05rem
  }

  .page-home .page-home-infobar .infobar__item span {
    font-size: 1.1rem
  }

  .page-home .page-home-infobar .infobar__item strong {
    font-size: 1.35rem
  }

  .page-home .home-stat__value {
    font-size: 2.4rem
  }

  .page-home .home-stat__label {
    font-size: 1rem
  }

  .page-home .newsletter-content h2 {
    font-size: 2rem
  }

  .page-home .newsletter-content > p {
    font-size: 1rem
  }

  .page-home .newsletter-note {
    font-size: 1.2rem
  }

  .page-home .newsletter-form input {
    font-size: 1.35rem
  }
}

/* Touch targets on coarse pointers without bloating desktop spacing */
@media (pointer: coarse) {
  .site-footer .footer-col > ul a {
    padding: 0.4rem 0;
    min-height: 40px;
    display: flex;
    align-items: center
  }

  .site-footer .footer-legal a,
  .site-footer .footer-bottom .footer-legal a {
    padding: 0.4rem 0;
    min-height: 40px;
    display: inline-flex;
    align-items: center
  }
}

.header-search .search-toggle {
  min-width: 44px;
  min-height: 44px
}

/* Header typography follows the footer scale */
.site-header .nav-menu a,
.site-header .nav__links a,
.site-header .header-search .search-input {
  font-size: 0.9rem
}

@media (max-width: 510px) {
  .site-header .nav-menu a,
  .site-header .nav__links a,
  .site-header .header-search .search-input {
    font-size: var(--text-body);
    line-height: 1.4
  }

  .site-header .nav-menu a,
  .site-header .nav__links a {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem
  }

  .site-header .header-search .search-input {
    width: min(280px, calc(100vw - 2rem));
    min-width: 0
  }

  /* Header logo matches footer logo scale (~50% larger) */
  .site-header .nav__logo {
    width: 210px;
    height: 66px
  }

  .site-header .nav__logo-image {
    max-width: 210px;
    max-height: 66px
  }

  :root {
    --header-height: 88px
  }

  .site-header,
  #site-header,
  .site-header .nav {
    min-height: 88px;
    height: auto
  }

  .site-header .nav {
    min-height: 88px
  }
}

.empty-state h2,
.empty-state h3 {
  font-size: 1.25rem
}

/* =========================================================================
   Sitewide typography + overflow safety (matches footer scale)
   Desktop/tablet keep current sizes; ≤510px uses footer mobile scale
   ========================================================================= */

@media (max-width: 510px) {
  :root {
    --text-xs: 1.05rem;
    --text-sm: 1.2rem;
    /* Body/paragraph scale (~25% under prior 1.35rem mobile body) */
    --text-body: 1rem;
    --text-md: 1.5rem;
    --text-lg: 1.5rem;
    --text-title: 1.5rem;
    --text-h2: 1.85rem;
    --text-h1: 2rem
  }

  /* Mobile type scale: ~13.8px root (~15% up from prior 12px) */
  html {
    font-size: 13.8px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%
  }

  html,
  body {
    overflow-x: hidden;
    max-width: 100%
  }

  body {
    font-size: var(--text-body);
    line-height: 1.45
  }

  main,
  .container,
  .section,
  .directory-section,
  .search-results-section,
  .card,
  .card__body,
  .info-block,
  .grid,
  .store-grid,
  .footer-col,
  .footer-bottom {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box
  }

  h1, h2, h3, h4, h5, h6,
  p, li, a, span, label, td, th,
  .muted, .lead, .form-note, .card__title,
  .card__meta, .card__link, .store-card__name,
  .store-card__cat, .page-hero__subtitle,
  .breadcrumbs, .eyebrow, .empty-state,
  .search-results-count, .search-results-group-count {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%
  }

  img,
  svg,
  video,
  iframe,
  canvas,
  table {
    max-width: 100%;
    height: auto
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
  }

  h1 {
    font-size: var(--text-h1);
    line-height: 1.2
  }

  h2 {
    font-size: var(--text-h2);
    line-height: 1.25
  }

  h3,
  .card__title,
  .store-card__name,
  .search-results-group-title {
    font-size: var(--text-title);
    line-height: 1.25
  }

  h4, h5, h6 {
    font-size: var(--text-body);
    line-height: 1.3
  }

  p,
  li,
  td,
  th,
  label,
  .muted,
  .lead,
  .form-note,
  .prose p,
  .info-section-block p,
  .info-block p,
  .card__link,
  .store-card__cat,
  .empty-state p,
  .search-results-count,
  .search-results-group-count,
  .newsletter-content > p,
  .newsletter-note,
  .cta-band p,
  .deal-ending-text,
  .directory-section p,
  .sitemap-description,
  .page-terms .prose p,
  .page-privacy .prose p,
  .page-disclaimer .prose p,
  .page-cookie-policy .prose p,
  .page-editorial .prose p,
  .page-info .prose p,
  .page-jobs .prose p,
  .page-accessibility .prose p {
    font-size: var(--text-body);
    line-height: 1.45
  }

  .eyebrow,
  .breadcrumbs,
  .page-hero .breadcrumbs,
  .card__meta,
  .card__cat {
    font-size: var(--text-sm);
    line-height: 1.4
  }

  .card__badge,
  .card__badge--inline,
  .event-location-bubble,
  .deal-date-bubble,
  .deal-date-bubble--inline {
    font-size: var(--text-xs);
    line-height: 1.35;
    max-width: 100%;
    white-space: normal
  }

  .btn,
  .btn-primary,
  .btn-secondary,
  .btn--primary,
  .btn--ghost,
  .btn--light,
  .btn--dark,
  button.btn {
    font-size: var(--text-body);
    line-height: 1.4;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal
  }

  input,
  textarea,
  select,
  .search-input,
  .newsletter-form input,
  .page-stores #store-search.search-input {
    font-size: var(--text-body) !important;
    line-height: 1.4;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box
  }

  /* Interior heroes: compact height on small phones */
  .page-hero {
    --page-hero-height: clamp(150px, 22vh, 190px);
    height: auto;
    min-height: var(--page-hero-height);
    max-height: none;
    overflow: visible
  }

  .page-hero .container {
    overflow: visible;
    height: auto;
    min-height: 0;
    padding-block: 1rem
  }

  .page-hero h1 {
    font-size: var(--text-h1);
    max-height: none;
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
    white-space: normal
  }

  .page-hero .page-hero__subtitle {
    font-size: var(--text-body);
    height: auto;
    min-height: 0;
    max-height: none;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.45
  }

  .page-hero .breadcrumbs {
    font-size: var(--text-sm);
    height: auto;
    min-height: 0;
    max-height: none;
    white-space: normal;
    overflow: visible;
    text-overflow: unset
  }

  .page-stores .breadcrumbs,
  .page-events .breadcrumbs,
  .page-event-detail .breadcrumbs,
  .page-deals .breadcrumbs,
  .page-deal-detail .breadcrumbs,
  .page-jobs .breadcrumbs,
  .page-contact .breadcrumbs,
  .page-leasing .breadcrumbs,
  .page-terms .breadcrumbs,
  .page-privacy .breadcrumbs,
  .page-disclaimer .breadcrumbs,
  .page-cookie-policy .breadcrumbs,
  .page-editorial .breadcrumbs,
  .page-info .breadcrumbs,
  .page-sitemap .breadcrumbs,
  .page-map .breadcrumbs,
  .page-accessibility .breadcrumbs {
    font-size: var(--text-sm)
  }

  .page-stores .page-hero h1,
  .page-events .page-hero h1,
  .page-event-detail .page-hero h1,
  .page-deals .page-hero h1,
  .page-deal-detail .page-hero h1,
  .page-jobs .page-hero h1,
  .page-contact .page-hero h1,
  .page-leasing .page-hero h1,
  .page-terms .page-hero h1,
  .page-privacy .page-hero h1,
  .page-disclaimer .page-hero h1,
  .page-cookie-policy .page-hero h1,
  .page-editorial .page-hero h1,
  .page-info .page-hero h1,
  .page-sitemap .page-hero h1,
  .page-map .page-hero h1,
  .page-accessibility .page-hero h1,
  .search-results-header h1 {
    font-size: var(--text-h1)
  }

  .empty-state h2,
  .empty-state h3 {
    font-size: var(--text-title)
  }

  .map-lightbox__title,
  .map-lightbox__hint,
  .map-lightbox__tools button {
    font-size: var(--text-body)
  }

  .map-lightbox__hint {
    white-space: normal;
    padding-inline: 1rem
  }

  .cta-band h2 {
    font-size: var(--text-h2)
  }

  .cta-band .btn,
  .cta-band .btn--primary {
    width: auto;
    max-width: 100%
  }

  .store-card,
  .home-event-card,
  .home-deal-card,
  .page-deals-card,
  .page-events-card {
    max-width: 100%
  }

  .store-card__logo {
    font-size: 2.2rem
  }
}