/**
 * attr-main.css — Attractions Page Styles (centralized via main.css)
 * ranshire — Uses only variables/utilities defined in main.css
 * Sections kept: Hero, Badges, Filter, Destinations, Cards, Why Visit, Loading,
 * Animations, Responsive, A11y, Touch, Print, Utilities, Performance, Grid.
 */

/* =============================================
 * HERO SLIDESHOW
 * ============================================= */

.hero-slideshow {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-white);
  padding: var(--spacing-32) 0 0;
  margin-bottom: 0;
  overflow: hidden;
  min-height: 70vh;
  transition: var(--transition-slow);
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transition: opacity 2s ease-in-out;
  z-index: var(--z-index-0);
}

.hero-bg-layer-0 { opacity: 1; z-index: var(--z-index-10); }
.hero-bg-layer-1 { opacity: 0; z-index: var(--z-index-0); }

.hero-slideshow .container { position: relative; z-index: var(--z-index-20); padding-bottom: var(--spacing-16); }

.hero-slideshow h1 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-black);
  font-size: var(--text-5xl);
  letter-spacing: -0.02em;
  text-shadow: var(--shadow-lg);
}

.hero-slideshow h1::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-brand);
}

.hero-slideshow p {
  font-size: var(--text-lg);
  margin: 0 auto var(--spacing-10);
  max-width: 700px;
  line-height: var(--leading-relaxed);
  color: var(--text-white);
  opacity: 0.9;
}

.hero-glow {
  position: absolute;
  bottom: -100px;
  left: 0;
  width: 100%;
  height: 150px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.25) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: var(--z-index-10);
}

/* Badges */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-3);
  margin-top: var(--spacing-6);
}

.hero-badges .badge {
  font-size: var(--text-sm);
  padding: var(--spacing-3) var(--spacing-6);
  border-radius: var(--border-radius-full);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.5px;
  color: var(--text-white);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.24);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.hero-badges .badge:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  box-shadow: var(--shadow-lg);
}

/* =============================================
 * HERO FILTER STRIP
 * Interactive category filter living inside the
 * hero section. Styled to match template-hero-
 * section.css glass-pill aesthetic; active state
 * uses --gradient-gold per main.css btn system.
 * ============================================= */

.hero-filter-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-2);
  margin-top: var(--spacing-8);
  position: relative;
  z-index: var(--z-index-30);
  animation: heroFadeUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.65s both;
}

.hero-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-1-5);
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  padding: var(--spacing-2) var(--spacing-5);
  border-radius: var(--radius-full);

  /* Default — glass pill matching hero-badge template style */
  background: rgba(var(--color-navy-rgb), 0.55);
  border: 1px solid rgba(var(--color-gold-rgb), 0.35);
  color: var(--color-white-90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 4px 16px rgba(var(--color-navy-rgb), 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: var(--transition-elegant);
  min-height: var(--touch-target-min);
}

.hero-filter-btn:hover {
  background: rgba(var(--color-navy-rgb), 0.75);
  border-color: rgba(var(--color-gold-rgb), 0.70);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow:
    0 8px 24px rgba(var(--color-navy-rgb), 0.40),
    0 0   18px rgba(var(--color-gold-rgb), 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Active — Ceylon Amber gold fill, mirrors .btn-primary from main.css */
.hero-filter-btn.active {
  background: var(--gradient-gold);
  border-color: transparent;
  color: var(--color-white);
  box-shadow:
    var(--shadow-gold),
    0 0 24px rgba(var(--color-gold-rgb), 0.35);
  transform: translateY(-3px);
}

.hero-filter-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 767.98px) {
  .hero-filter-strip {
    gap: var(--spacing-1-5);
    margin-top: var(--spacing-6);
  }

  .hero-filter-btn {
    font-size: var(--text-xs);
    padding: var(--spacing-1-5) var(--spacing-4);
    min-height: 38px;
  }
}

@media (max-width: 480px) {
  .hero-filter-strip {
    gap: var(--spacing-1);
  }

  .hero-filter-btn {
    padding: var(--spacing-1-5) var(--spacing-3);
    letter-spacing: var(--ls-wide);
  }
}

/* Print — hide interactive controls */
@media print {
  .hero-filter-strip { display: none !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-filter-strip { animation: none !important; opacity: 1 !important; }
  .hero-filter-btn   { transition: none !important; transform: none !important; }
}

/* =============================================
 * CATEGORY FILTER
 * ============================================= */

.attr-filter {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-gray);
  padding: var(--spacing-8) 0;
  position: relative;
  overflow: hidden;
}

.attr-filter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-100%);
  animation: attr-shimmer 3s infinite;
  opacity: 0.25;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
  padding: var(--spacing-3) var(--spacing-6);
  border-radius: var(--border-radius-full);
  border: 1px solid var(--border-gray);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  font-size: var(--text-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  margin: var(--spacing-1);
}

.filter-btn:hover {
  transform: translateY(-3px);
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow: var(--shadow-lg);
  background: var(--bg-secondary);
}

.filter-btn.active {
  background: var(--gradient-primary);
  color: var(--text-white);
  border-color: transparent;
  box-shadow: var(--shadow-brand);
  transform: translateY(-3px);
}

/* =============================================
 * DESTINATIONS
 * ============================================= */

.attr-destinations {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
  padding: var(--spacing-20) 0;
}

/* ═══════════════════════════════════════════════════════
   SECTION HEADER — premium, fully centralised, animated
   All colours/fonts/spacing from main.css tokens only.
════════════════════════════════════════════════════════ */

/* Row spacing */
.attr-destinations .row.mb-5,
.attr-why-visit .row.mb-5 {
  margin-bottom: var(--spacing-6) !important;
}

/* .section-header wrapper: no extra bottom margin */
.attr-destinations .section-header,
.attr-why-visit .section-header {
  margin-bottom: 0 !important;
}

/* ── Eyebrow label: BLOCK so h2 sits below it on its own line ── */
.attr-destinations .section-label,
.attr-why-visit .section-label {
  display: block !important;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--spacing-3);
  padding: 0 var(--spacing-6);
  position: relative;
  /* Entrance animation */
  animation: attr-fade-up 0.65s cubic-bezier(0.165,0.84,0.44,1) both;
}
/* Flanking decorative lines */
.attr-destinations .section-label::before,
.attr-destinations .section-label::after,
.attr-why-visit .section-label::before,
.attr-why-visit .section-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold));
}
.attr-destinations .section-label::before,
.attr-why-visit .section-label::before {
  right: 100%;
  transform: translateX(var(--spacing-6));
}
.attr-destinations .section-label::after,
.attr-why-visit .section-label::after {
  left: 100%;
  transform: translateX(calc(-1 * var(--spacing-6)));
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

/* ── Section title: Playfair Display, two-tone via <span>, gold underline ── */
.attr-destinations .section-title,
.attr-why-visit .section-title {
  display: block !important;           /* forces new line below eyebrow */
  font-family: var(--font-display) !important;
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)) !important;
  font-weight: var(--font-weight-bold) !important;
  color: var(--text-primary) !important;
  line-height: var(--leading-tight) !important;
  letter-spacing: var(--ls-tight) !important;
  position: relative;
  padding-bottom: var(--spacing-5);
  margin-bottom: var(--spacing-3) !important;
  /* Entrance — slightly after eyebrow */
  animation: attr-fade-up 0.65s cubic-bezier(0.165,0.84,0.44,1) 0.12s both;
}
/* Two-tone: <span> word renders in gold */
.attr-destinations .section-title span,
.attr-why-visit .section-title span {
  color: var(--color-gold) !important;
  font-style: normal;
}
/* Animated gold underline bar */
.attr-destinations .section-title::after,
.attr-why-visit .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 2.5px;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
  /* Grows in after title appears */
  animation: attr-bar-grow 0.55s cubic-bezier(0.165,0.84,0.44,1) 0.5s both;
}

/* ── Section subtitle: clearly lighter/secondary to title ── */
.attr-destinations .section-subtitle,
.attr-why-visit .section-subtitle {
  display: block !important;
  font-family: var(--font-primary) !important;
  font-size: var(--text-lg) !important;
  font-weight: var(--font-weight-normal) !important;
  color: var(--text-muted) !important;
  line-height: var(--leading-relaxed) !important;
  max-width: 580px;
  margin: var(--spacing-3) auto 0 !important;
  opacity: 1 !important;
  /* Entrance — last in sequence */
  animation: attr-fade-up 0.65s cubic-bezier(0.165,0.84,0.44,1) 0.25s both;
}

/* ── Glow blobs: brand tokens, animated float ── */
.premium-glow,
.premium-glow-2 {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  filter: blur(40px);
}

.premium-glow {
  width: 520px; height: 520px;
  top: -160px; right: -120px;
  background: radial-gradient(circle, var(--color-gold-glow) 0%, transparent 70%);
  animation: attr-float-slow 9s ease-in-out infinite;
}

.premium-glow-2 {
  width: 400px; height: 400px;
  bottom: -140px; left: -100px;
  background: radial-gradient(circle, rgba(var(--color-navy-rgb), 0.06) 0%, transparent 70%);
  animation: attr-float-slow 11s ease-in-out 2s infinite reverse;
}

/* =============================================
 * DESTINATION CARDS
 * ============================================= */

.attr-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-2xl);
  /* DEFAULT: gold border from main.css — brand identity on every card */
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border-gold);
  transition: var(--transition-premium);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  /* Entrance: hidden until IntersectionObserver fires */
  opacity: 0;
  transform: translateY(30px) scale(0.97);
}

/* JS adds .attr-card-visible + sets --card-delay for stagger */
.attr-card.attr-card-visible {
  animation: attr-card-in 0.58s cubic-bezier(0.165,0.84,0.44,1) var(--card-delay, 0ms) both;
}

.attr-card:hover {
  transform: translateY(-10px) scale(1.01);
  /* HOVER: shadow-luxury + solid gold outer ring = prominent gold frame */
  box-shadow: var(--shadow-luxury), 0 0 0 2.5px var(--color-gold);
  border-color: var(--color-gold);
}

.attr-card-img-wrapper {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.attr-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  filter: brightness(0.98);
}

.attr-card:hover .attr-card-img {
  transform: scale(1.06);
  filter: brightness(1);
}

/* Optional diagonal shimmer — uses neutral white/transparent only */
.attr-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-100%) translateY(100%) rotate(45deg);
  transition: transform .6s ease-out, opacity .6s ease-out;
  z-index: var(--z-index-20);
  pointer-events: none;
  opacity: 0;
}

.attr-card:hover::before {
  transform: translateX(100%) translateY(-100%) rotate(45deg);
  opacity: 1;
}

/* Category badge — base */
.attr-card-category {
  position: absolute;
  top: var(--spacing-5);
  left: var(--spacing-5);
  display: inline-block;
  color: var(--text-white);
  padding: var(--spacing-2) var(--spacing-4);
  font-size: var(--text-xs);
  text-transform: uppercase;
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--ls-wider);
  border-radius: var(--border-radius-full);
  box-shadow: var(--shadow-sm);
  z-index: var(--z-index-30);
  backdrop-filter: blur(10px);
  background: rgba(var(--color-navy-rgb), 0.55);
  border: 1px solid rgba(var(--color-gold-rgb), 0.30);
}

/*
 * Category badge variants — token-only, no hardcoded hex.
 * Replaces old inline style="background: linear-gradient(#hex,#hex)" pattern.
 */
.attr-cat-beach {
  background: linear-gradient(135deg,
    var(--color-info) 0%,
    var(--color-navy-soft) 100%);
}
.attr-cat-cultural {
  background: linear-gradient(135deg,
    var(--color-gold-dark) 0%,
    var(--color-gold) 100%);
  color: var(--color-navy-deep);
}
.attr-cat-wildlife {
  background: linear-gradient(135deg,
    var(--color-green-dark) 0%,
    var(--color-green-light) 100%);
}
.attr-cat-nature {
  background: linear-gradient(135deg,
    var(--color-navy-mid) 0%,
    var(--color-navy-soft) 100%);
}
.attr-cat-urban {
  background: linear-gradient(135deg,
    var(--color-gray-600) 0%,
    var(--color-gray-500) 100%);
}
.attr-cat-default {
  background: var(--gradient-primary);
}

.attr-card .card-body {
  padding: var(--spacing-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.attr-card .card-title {
  /* Playfair Display — premium editorial, matches template cards site-wide */
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  /* DEFAULT: gold-dark — brand-forward, premium identity per main.css */
  color: var(--color-gold-dark);
  text-align: center;
  margin-bottom: var(--spacing-3);
  line-height: var(--leading-snug);
  transition: var(--transition-elegant);
  /* 2-line clamp — NO min-height (was causing white gap on short names) */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

/* Animated navy underline grows in on hover */
.attr-card .card-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-elegant);
}

/* HOVER: navy-deep — strong contrast reversal from gold default */
.attr-card:hover .card-title { color: var(--color-navy-deep); }
.attr-card:hover .card-title::after { width: 55%; }

.attr-card .card-text {
  color: var(--text-muted);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  text-align: center;
  /* 3-line clamp — consistent height across all cards, no button misalignment */
  flex-grow: 0;
  flex-shrink: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* Fixed height = 3 lines × 1.70 leading × 1rem base */
  min-height: calc(1rem * 1.70 * 3);
  margin-bottom: var(--spacing-4);
}

/* Spacer pushes button to bottom after fixed-height description */
.attr-card .card-body > .text-center {
  margin-top: auto;
  flex-shrink: 0;
}

.attr-card .btn {
  margin-top: 0;
  /* Use primary gradient + button system colors */
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
  border: none;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-3) var(--spacing-6);
  font-weight: var(--font-weight-semibold);
  letter-spacing: .5px;
  text-transform: uppercase;
  font-size: var(--text-sm);
  transition: var(--transition-smooth);
}

.attr-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
  color: var(--text-white);
}

/* =============================================
 * WHY VISIT SECTION
 * ============================================= */

.attr-why-visit {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  padding: var(--spacing-20) 0;
}

.attr-why-visit .card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-2xl);
  border: 1.5px solid var(--border-gold);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-premium);
}

.attr-why-visit .card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-luxury), 0 0 0 2px var(--color-gold);
  border-color: var(--color-gold);
}

/* =============================================
 * LOADING STATES
 * ============================================= */

#loading-overlay,
#error-message {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
}

#error-message h2 { color: var(--text-primary); font-family: var(--font-heading); }
#error-message .lead { color: var(--text-secondary); }

/* Loading spinner — token-only */
.loading-spinner {
  display: inline-block;
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-primary);
  border-top-color: var(--color-gold);
  border-radius: var(--radius-full);
  animation: spin 0.9s linear infinite;
}

/* =============================================
 * ANIMATIONS — all using main.css token easing
 * ============================================= */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Header entrance: fade + rise ── */
@keyframes attr-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Gold underline bar grows from centre ── */
@keyframes attr-bar-grow {
  from { width: 0; }
  to   { width: 60px; }
}

/* ── Card entrance: fade + rise + subtle scale ── */
@keyframes attr-card-in {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ── Glow blob slow float ── */
@keyframes attr-float-slow {
  0%,100% { transform: translateY(0)    scale(1); }
  50%      { transform: translateY(-22px) scale(1.04); }
}

/* ── Gold pulse on card hover glow ── */
@keyframes attr-gold-pulse {
  0%,100% { box-shadow: var(--shadow-sm), 0 0 0 0 var(--color-gold-glow); }
  50%      { box-shadow: var(--shadow-md), 0 0 0 8px transparent; }
}



/* =============================================
 * RESPONSIVE
 * ============================================= */

@media (max-width: 1199.98px) {
  .attr-destinations .section-title,
  .attr-why-visit .section-title { font-size: var(--text-3xl) !important; }
  .hero-slideshow h1 { font-size: var(--text-4xl); }
  .premium-glow, .premium-glow-2 { width: 320px; height: 320px; }
}

@media (max-width: 991.98px) {
  .hero-slideshow { padding: var(--spacing-16) 0 0; background-attachment: scroll; min-height: 60vh; }
  .hero-slideshow .container { padding-bottom: var(--spacing-12); }
  .attr-why-visit { padding: var(--spacing-16) 0; }
  .hero-slideshow h1 { font-size: var(--text-3xl); }
  .hero-slideshow p { font-size: var(--text-base); margin-bottom: var(--spacing-8); }
  .attr-destinations .section-title,
  .attr-why-visit .section-title { font-size: var(--text-2xl) !important; }
  .filter-btn { padding: var(--spacing-2) var(--spacing-5); font-size: var(--text-sm); }
  .attr-card .card-body { padding: var(--spacing-6); }
  .attr-card-img-wrapper { height: 240px; }
  .attr-card { min-height: 400px; }
}

@media (max-width: 767.98px) {
  .hero-slideshow { padding: var(--spacing-14) 0 0; min-height: 50vh; }
  .hero-slideshow .container { padding-bottom: var(--spacing-10); }
  .hero-slideshow h1 { font-size: var(--text-2xl); }
  .hero-slideshow p { font-size: var(--text-sm); }
  .hero-badges { flex-direction: column; align-items: center; gap: var(--spacing-2); }
  .hero-badges .badge { font-size: var(--text-xs); padding: var(--spacing-2) var(--spacing-4); }
  .attr-card-img-wrapper { height: 220px; }
  .attr-card { min-height: 380px; }
  .attr-card .card-body { padding: var(--spacing-5); }
  .attr-card .card-title { font-size: var(--text-lg); }
  .filter-btn { padding: var(--spacing-2) var(--spacing-4); font-size: var(--text-xs); }
  /* Single column on mobile — remove fixed clamp heights */
  .attr-card .card-title {
    -webkit-line-clamp: unset;
    min-height: unset;
    overflow: visible;
    display: block;
  }
  .attr-card .card-text {
    -webkit-line-clamp: unset;
    min-height: unset;
    overflow: visible;
    display: block;
    margin-bottom: var(--spacing-4);
  }
  /* Cards visible immediately on mobile — no entrance delay */
  .attr-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

@media (max-width: 576px) {
  .attr-card-img-wrapper { height: 200px; }
  .attr-card .card-body { padding: var(--spacing-4); }
}

/* =============================================
 * ACCESSIBILITY
 * ============================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* Show cards immediately — no entrance needed */
  .attr-card { opacity: 1 !important; transform: none !important; }
  .attr-card:hover { transform: translateY(-4px); }
  .attr-card::before { animation: none !important; opacity: 0 !important; }
  /* Show header elements immediately */
  .attr-destinations .section-label,
  .attr-destinations .section-title,
  .attr-destinations .section-subtitle,
  .attr-why-visit .section-label,
  .attr-why-visit .section-title,
  .attr-why-visit .section-subtitle {
    animation: none !important; opacity: 1 !important;
  }
  .attr-destinations .section-title::after,
  .attr-why-visit .section-title::after {
    animation: none !important; width: 60px !important;
  }
  /* Stop glow float */
  .premium-glow, .premium-glow-2 { animation: none !important; }
}

.attr-card:focus,
.attr-card:focus-within,
.filter-btn:focus-visible,
.attr-card .btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* =============================================
 * TOUCH / HOVER BEHAVIOR
 * ============================================= */

@media (hover: none) {
  .attr-card:hover::before { opacity: 0; }
  .attr-card:active::before {
    transform: translateX(100%) translateY(-100%) rotate(45deg);
    opacity: 1;
    transition: transform 0.3s ease-out;
  }
  .attr-card:hover { transform: none; }
  .attr-card:active { transform: scale(0.98); }
}

/* =============================================
 * PRINT
 * ============================================= */

@media print {
  .hero-slideshow,
  .attr-filter,
  .premium-glow,
  .premium-glow-2 { display: none !important; }

  .attr-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }
  .attr-card:hover { transform: none; box-shadow: none; }
  .attr-card::before { display: none !important; }
}

/* =============================================
 * UTILITIES / PERFORMANCE
 * ============================================= */

/* Accessibility skip-link */
.skip-link {
  position: absolute;
  top: -40px;
  left: var(--spacing-2);
  background: var(--gradient-primary);
  color: var(--text-white);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  padding: var(--spacing-2) var(--spacing-4);
  border-radius: var(--radius-md);
  text-decoration: none;
  z-index: var(--z-index-maximum);
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: var(--spacing-2);
  color: var(--text-white);
}

.attr-card.loading { opacity: 0.6; pointer-events: none; }
.attr-card.loading::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 2rem; height: 2rem;
  margin: -1rem 0 0 -1rem;
  border: 2px solid var(--border-gray);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: var(--z-index-50);
}

.attr-card.featured {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-brand);
}

.attr-card.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-truncate-2 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.text-truncate-3 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* Containment / will-change for smoother animations */
.attr-card,
.attr-card-img,
.attr-card-category,
.filter-btn { will-change: transform; }

/* contain: paint removed — it creates stacking context that blocks
   the opacity:0 entrance animation. style-only containment is safe. */
.attr-card { contain: style; }

/* =============================================
 * GRID ENHANCEMENTS
 * ============================================= */

.attr-destinations .row { display: flex; flex-wrap: wrap; }
.attr-destinations .col-md-4,
.attr-destinations .col-lg-3 { display: flex; flex-direction: column; }

/* Optional masonry */
.attr-destinations.masonry { column-count: 3; column-gap: 2rem; }
.attr-destinations.masonry .attr-card { break-inside: avoid; margin-bottom: 2rem; }

@media (max-width: 991.98px) { .attr-destinations.masonry { column-count: 2; } }
@media (max-width: 767.98px) { .attr-destinations.masonry { column-count: 1; } }