/* ============================================================
   Snooker Malaysia — Main Stylesheet
   Pure CSS3 | Mobile-first | No frameworks
   ============================================================ */

/* --- Custom Properties --- */
:root {
  /* Brand palette */
  --green-dark: #14532d;
  --green-mid: #22804a;
  --green-light: #34d399;
  --green-pale: #d1fae5;
  --green-accent: #059669;
  --cream: #fafaf5;
  --cream-dark: #f0ead6;
  --slate: #1e293b;
  --slate-light: #475569;
  --white: #ffffff;
  --black: #0f172a;
  --grey-light: #f1f5f9;
  --grey-mid: #94a3b8;
  --grey-dark: #334155;
  --red-warn: #dc2626;
  --gold: #f59e0b;

  /* Typography */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;

  /* Layout */
  --max-width: 1200px;
  --content-width: 960px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 40px -5px rgba(0,0,0,0.15);

  /* Transitions */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--slate);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--green-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(5, 150, 105, 0.3);
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover,
a:focus {
  color: var(--green-dark);
  text-decoration-color: var(--green-dark);
}

a:focus-visible {
  outline: 2px solid var(--green-light);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--green-pale);
  color: var(--green-dark);
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--green-dark);
  color: var(--white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius);
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-md);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--green-dark);
  line-height: 1.25;
  margin-bottom: var(--space-md);
  letter-spacing: -0.025em;
  font-weight: 700;
}

h1 {
  font-size: 2.25rem;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.6rem;
  margin-top: var(--space-2xl);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--green-pale);
}

h3 {
  font-size: 1.2rem;
  margin-top: var(--space-xl);
  font-weight: 650;
}

h4 {
  font-size: 1.05rem;
  margin-top: var(--space-lg);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-md);
  color: var(--slate-light);
}

strong {
  color: var(--slate);
  font-weight: 600;
}

ul, ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

li {
  margin-bottom: var(--space-xs);
  color: var(--slate-light);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
  border-radius: var(--radius);
  overflow: hidden;
}

th, td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--grey-light);
}

th {
  background: var(--green-dark);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:nth-child(even) {
  background: rgba(209, 250, 229, 0.15);
}

tr:hover {
  background: rgba(209, 250, 229, 0.3);
}

/* --- Header --- */
.site-header {
  background: linear-gradient(135deg, var(--green-dark) 0%, #155d36 100%);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: var(--space-sm) 0;
}

.site-logo img {
  height: 42px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.site-logo:hover img {
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3)) brightness(1.05);
}

.footer-logo {
  display: inline-block;
}

.footer-logo img {
  height: 40px;
  width: auto;
  display: block;
  transition: opacity var(--transition-fast);
}

.footer-logo:hover img {
  opacity: 0.8;
}

/* Nav — Desktop */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-sm);
  padding: 0;
  margin: 0;
}

.main-nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: var(--space-md);
  right: var(--space-md);
  height: 2px;
  background: var(--green-light);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--white);
}

.main-nav a:hover::after,
.main-nav a:focus::after {
  transform: scaleX(1);
}

.main-nav a[aria-current="page"] {
  color: var(--white);
  font-weight: 600;
}

.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--green-light);
}

/* --- Hamburger Button --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 10px;
  position: relative;
  z-index: 301;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  left: 10px;
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }

/* Hamburger → X animation */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* --- Breadcrumb --- */
.breadcrumb {
  max-width: var(--max-width);
  margin: var(--space-md) auto var(--space-lg);
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.8rem;
  color: var(--grey-mid);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding: var(--space-xs) var(--space-md);
  margin: 0;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
}

.breadcrumb li {
  color: var(--grey-mid);
  display: flex;
  align-items: center;
}

.breadcrumb li::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0 var(--space-xs);
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M6 3l5 5-5 5' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.breadcrumb li:last-child::after {
  content: none;
  display: none;
}

.breadcrumb li:last-child {
  color: var(--green-dark);
  font-weight: 600;
}

.breadcrumb a {
  color: var(--grey-mid);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: var(--space-xs) 0;
}

.breadcrumb a:hover {
  color: var(--green-accent);
}

/* --- Main Content --- */
main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg) var(--space-3xl);
  width: 100%;
}

.content-narrow {
  max-width: var(--content-width);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, #166534 40%, var(--green-accent) 100%);
  color: var(--white);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
  letter-spacing: -0.035em;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 580px;
  margin: 0 auto var(--space-xl);
  color: var(--white);
  position: relative;
  z-index: 1;
  line-height: 1.65;
}

.hero-cta {
  display: inline-flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  min-height: 44px;
  letter-spacing: -0.01em;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--green-accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}

/* --- Shop Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.shop-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.shop-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(5, 150, 105, 0.15);
}

.shop-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.shop-card:hover img {
  transform: scale(1.03);
}

.shop-card-body {
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.shop-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.shop-card h3 a {
  text-decoration: none;
  color: var(--green-dark);
  transition: color var(--transition-fast);
}

.shop-card h3 a:hover {
  color: var(--green-accent);
}

.shop-card .card-meta {
  font-size: 0.78rem;
  color: var(--grey-mid);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.shop-card .card-summary {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  color: var(--slate-light);
  flex-grow: 1;
}

.shop-card .btn {
  font-size: 0.82rem;
  padding: 0.45rem 1.1rem;
  min-height: 36px;
}

/* --- Quick Facts Box --- */
.quick-facts {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 4px solid var(--green-accent);
  border-radius: var(--radius);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.quick-facts h2 {
  margin-top: 0;
  font-size: 1.05rem;
  color: var(--green-dark);
  margin-bottom: var(--space-lg);
  border-bottom: none;
  padding-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quick-facts dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: var(--space-sm) var(--space-lg);
  margin: 0;
}

.quick-facts dt {
  font-weight: 600;
  color: var(--slate);
  font-size: 0.85rem;
}

.quick-facts dd {
  margin: 0;
  color: var(--slate-light);
  font-size: 0.95rem;
}

/* --- Rating Bar --- */
.rating-bar {
  margin-bottom: var(--space-lg);
}

.rating-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
}

.rating-label {
  min-width: 120px;
  font-weight: 500;
}

.rating-track {
  flex: 1;
  height: 8px;
  background: var(--grey-light);
  border-radius: 4px;
  overflow: hidden;
}

.rating-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-accent), var(--green-light));
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.rating-value {
  min-width: 36px;
  font-weight: 700;
  color: var(--green-dark);
}

.rating-overall {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.03em;
}

.rating-overall span {
  font-size: 1rem;
  color: var(--grey-mid);
  font-weight: 400;
}

/* --- Map Container --- */
.map-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 50%;
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.06);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Guide Layout with Sidebar --- */
.guide-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-2xl);
  max-width: var(--max-width);
  align-items: start;
}

.guide-layout > article {
  max-width: none;
  min-width: 0;
}

.guide-sidebar {
  position: sticky;
  top: var(--space-xl);
}

.sidebar-box {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.sidebar-box h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green-dark);
  margin-top: 0;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--green-pale);
}

.sidebar-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-box li {
  margin-bottom: var(--space-sm);
}

.sidebar-box li:last-child {
  margin-bottom: 0;
}

.sidebar-box a {
  font-size: 0.88rem;
  color: var(--slate-light);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: block;
  padding: var(--space-xs) 0;
}

.sidebar-box a:hover {
  color: var(--green-accent);
}

.sidebar-box .current-guide {
  color: var(--green-accent);
  font-weight: 600;
}

/* --- FAQ --- */
.faq {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq > h2 {
  padding: var(--space-lg) var(--space-xl) var(--space-md);
  margin: 0;
  font-size: 1.3rem;
  border-bottom: 2px solid var(--green-pale);
}

.faq details {
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: var(--white);
  transition: background var(--transition-fast);
}

.faq details:last-of-type {
  border-bottom: none;
}

.faq details:hover {
  background: rgba(209, 250, 229, 0.15);
}

.faq details[open] {
  background: rgba(209, 250, 229, 0.1);
}

.faq summary {
  padding: var(--space-md) var(--space-xl);
  cursor: pointer;
  font-weight: 600;
  color: var(--green-dark);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 52px;
  transition: background var(--transition-fast), color var(--transition-fast);
  font-size: 0.95rem;
  line-height: 1.5;
}

.faq summary:hover {
  color: var(--green-accent);
}

.faq summary::after {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-pale);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 2v8M2 6h8' stroke='%2322804a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.faq details[open] summary::after {
  background: var(--green-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 6h8' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transform: rotate(180deg);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq .faq-answer {
  padding: var(--space-xs) var(--space-lg) var(--space-md);
  padding-left: calc(var(--space-lg) + 4px);
  color: var(--slate-light);
  border-left: 3px solid var(--green-accent);
  margin-left: var(--space-lg);
  margin-bottom: var(--space-xs);
  line-height: 1.6;
  font-size: 0.92rem;
}

.faq .faq-answer p:last-child {
  margin-bottom: 0;
}

/* --- State Links Grid --- */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.state-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: all var(--transition);
  min-height: 52px;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-sm);
}

.state-link:hover {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* --- Guide Card --- */
.guide-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all var(--transition);
}

.guide-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: rgba(5, 150, 105, 0.15);
}

.guide-card h3 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

.guide-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* --- Stats Section --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--green-accent);
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* --- Feature & Region Cards --- */
.feature-card,
.region-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
  border: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover,
.region-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-card h3,
.region-card h3 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
  color: var(--green-dark);
}

.region-card h3 a {
  text-decoration: none;
  color: var(--green-dark);
  transition: color var(--transition-fast);
}

.region-card h3 a:hover {
  color: var(--green-accent);
}

.feature-card p,
.region-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--slate-light);
}

/* --- 404 Page --- */
.error-page {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  max-width: 600px;
  margin: 0 auto;
}

.error-page h1 {
  font-size: 5rem;
  color: var(--green-accent);
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.error-page h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  color: var(--slate);
}

.error-page p {
  margin-bottom: var(--space-xl);
  color: var(--slate-light);
}

.error-page .btn {
  margin: 0 var(--space-xs);
}

/* --- Review Hero Image --- */
.review-hero {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow);
  display: block;
}

/* --- Last Updated --- */
.last-updated {
  font-size: 0.82rem;
  color: var(--grey-mid);
  margin-bottom: var(--space-lg);
  font-style: normal;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* --- Nearby Shops --- */
.nearby-shops {
  background: var(--grey-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-top: var(--space-2xl);
  border: 1px solid rgba(0,0,0,0.04);
}

.nearby-shops h2 {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
  font-size: 1.15rem;
}

.nearby-shops ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nearby-shops li {
  margin-bottom: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.nearby-shops li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* --- Footer --- */
.site-footer {
  background: linear-gradient(175deg, #0d1a2d 0%, #080f1a 60%, #050a12 100%);
  color: rgba(255,255,255,0.6);
  padding: 0 var(--space-lg) var(--space-xl);
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--green-dark) 20%, var(--green-light) 50%, var(--green-dark) 80%, transparent 100%);
  margin-bottom: var(--space-2xl);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 40px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(5,150,105,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  max-width: 100%;
}

.footer-brand .footer-logo {
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.footer-brand .footer-logo img {
  height: 36px;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.footer-brand .footer-logo:hover img {
  opacity: 1;
}

.footer-brand p {
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
  margin: 0 auto;
  max-width: 40ch;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-xl) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

.footer-bottom p {
  margin: 0;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--green-light);
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet & Mobile (768px) */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  .hero h1 { font-size: 1.85rem; }
  .hero { padding: var(--space-2xl) var(--space-lg); }
  .hero p { font-size: 1rem; }

  .header-inner {
    padding: 0 var(--space-md);
    height: 56px;
  }

  /* Show hamburger */
  .nav-toggle {
    display: block;
  }

  /* Fullscreen overlay nav */
  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.97);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }

  .main-nav a {
    display: block;
    padding: var(--space-lg) var(--space-xl);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.7);
    border-radius: 0;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .main-nav a:hover,
  .main-nav a:focus {
    background: none;
    color: var(--green-light);
    transform: translateX(4px);
  }

  .main-nav a[aria-current="page"] {
    background: none;
    color: var(--green-light);
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .quick-facts dl {
    grid-template-columns: 1fr;
  }

  .quick-facts dt {
    margin-top: var(--space-sm);
    font-size: 0.78rem;
    color: var(--grey-mid);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .site-footer::after {
    display: none;
  }

  main {
    padding: var(--space-lg) var(--space-md) var(--space-2xl);
  }

  .breadcrumb {
    padding: var(--space-sm) var(--space-md);
  }

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

  .guide-sidebar {
    position: static;
  }

  table { font-size: 0.85rem; }
  th, td { padding: var(--space-xs) var(--space-sm); }
}

/* Small mobile (480px) */
@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  .hero h1 { font-size: 1.55rem; }

  .state-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .rating-label {
    min-width: 80px;
    font-size: 0.85rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* Large screens (1280px+) */
@media (min-width: 1280px) {
  h1 { font-size: 2.75rem; }
  .hero h1 { font-size: 3rem; }
  .hero { padding: var(--space-3xl) var(--space-2xl); }
}

/* --- Print --- */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .breadcrumb,
  .map-container,
  .nearby-shops,
  .btn {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  main {
    max-width: 100%;
    padding: 0;
  }

  h1, h2, h3 { color: black; }
  a { color: black; text-decoration: underline; }

  .quick-facts {
    border: 1px solid #ccc;
    background: #f9f9f9;
  }

  .shop-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

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

.text-center { text-align: center; }
.text-muted { color: var(--grey-mid); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
