.hero h1 { text-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.3) !important; }
.hero-sub { text-shadow: 0 2px 8px rgba(0,0,0,0.4) !important; }
.hero-slogan { text-shadow: 0 4px 20px rgba(212,175,55,0.3), 0 2px 4px rgba(0,0,0,0.4) !important; }
.hero-content { perspective: 1000px; }
.hero-title span { display: inline-block; background: linear-gradient(120deg, #fff 0%, #fff 40%, var(--gold) 50%, #fff 60%, #fff 100%); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: title-float 6s ease-in-out infinite, shimmer 8s linear infinite; }
@keyframes shimmer { 0% { background-position: 200% center; } 100% { background-position: -200% center; } }
@keyframes title-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
  .preloader-logo span {
    display: inline-block;
    opacity: 0;
    transform: translate(var(--dx, -120vw), var(--dy, 0)) scale(0.5);
    filter: blur(10px);
    animation: letter-race 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }
  @keyframes letter-race {
    0% { transform: translate(var(--dx, -120vw), var(--dy, 0)) scale(0.5); filter: blur(10px); opacity: 0; }
    40% { opacity: 1; }
    100% { transform: translate(0, 0) scale(1); filter: blur(0); opacity: 1; }
  }
  /* Racing Directions */
  .preloader-logo span:nth-child(1) { --dx: -150vw; --dy: -20vh; animation-delay: 0.1s; }
  .preloader-logo span:nth-child(2) { --dx: 150vw;  --dy: 30vh;  animation-delay: 0.2s; }
  .preloader-logo span:nth-child(3) { --dx: -150vw; --dy: 50vh;  animation-delay: 0.3s; }
  .preloader-logo span:nth-child(4) { --dx: 0;      --dy: -100vh; animation-delay: 0.4s; }
  .preloader-logo span:nth-child(5) { --dx: 150vw;  --dy: -50vh; animation-delay: 0.5s; }
  .preloader-logo span:nth-child(6) { --dx: -150vw; --dy: 20vh;  animation-delay: 0.6s; }
  .preloader-logo span:nth-child(7) { --dx: 150vw;  --dy: -20vh; animation-delay: 0.7s; }
  .preloader-logo span:nth-child(8) { --dx: -150vw; --dy: -50vh; animation-delay: 0.8s; }
  .preloader-logo span:nth-child(9) { --dx: 0;      --dy: 100vh;  animation-delay: 0.9s; }
  .preloader-logo span:nth-child(10){ --dx: 150vw;  --dy: 50vh;  animation-delay: 1.0s; }
.btn-gold { box-shadow: 0 10px 20px rgba(212,175,55,0.2), inset 0 0 0 1px rgba(255,255,255,0.1); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-gold:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 30px rgba(212,175,55,0.3); }

/* Traveler Tools Widgets */
.widget-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.widget-card:hover { transform: translateY(-8px); border-color: var(--gold-pale); }
.widget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.widget-title { font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; }
.widget-status { font-size: 0.85rem; color: var(--text-muted); }
.weather-main { display: flex; align-items: center; gap: 2rem; margin-bottom: 2rem; }
.weather-temp { font-size: 4rem; font-family: 'Playfair Display', serif; font-weight: 800; display: flex; align-items: baseline; }
.weather-temp .unit { font-size: 1.5rem; color: var(--gold); margin-left: 0.2rem; }
.weather-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--border); }
.w-stat-item { font-size: 0.9rem; color: var(--text-muted); }
.w-stat-item strong { color: var(--text); margin-left: 0.4rem; }
.weather-footer { margin-top: 1rem; font-size: 0.85rem; font-weight: 600; color: var(--teal-300); }

.currency-body { display: flex; flex-direction: column; gap: 1rem; }
.c-input-group { display: flex; gap: 0.5rem; }
.c-field { background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 0.75rem; color: var(--text); padding: 0.8rem 1rem; font-size: 1rem; flex: 1; outline: none; transition: border-color 0.3s ease; }
.c-field:focus { border-color: var(--gold); }
.c-result-box { background: rgba(212,175,55,0.1); border: 1px solid var(--gold-pale); border-radius: 0.75rem; color: var(--gold); padding: 0.8rem 1rem; font-size: 1.25rem; font-weight: 700; flex: 1; display: flex; align-items: center; }
.c-swap { align-self: center; cursor: pointer; color: var(--gold); font-size: 1.5rem; transition: transform 0.3s ease; }
.c-swap:hover { transform: rotate(180deg); }
.currency-footer { margin-top: 1.5rem; font-size: 0.75rem; color: var(--text-faint); text-align: center; }

/* ─────────────────────────────────────────────────────
   MODERN MASONRY GALLERY
───────────────────────────────────────────────────── */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  padding: 0 2rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}
.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
/* Stagger heights for masonry feel */
.gallery-col:nth-child(1) .gallery-item:nth-child(1) { aspect-ratio: 3/4; }
.gallery-col:nth-child(1) .gallery-item:nth-child(2) { aspect-ratio: 4/3; }
.gallery-col:nth-child(1) .gallery-item:nth-child(3) { aspect-ratio: 1/1; }
.gallery-col:nth-child(2) .gallery-item:nth-child(1) { aspect-ratio: 4/3; }
.gallery-col:nth-child(2) .gallery-item:nth-child(2) { aspect-ratio: 1/1; }
.gallery-col:nth-child(2) .gallery-item:nth-child(3) { aspect-ratio: 3/4; }
.gallery-col:nth-child(3) .gallery-item:nth-child(1) { aspect-ratio: 1/1; }
.gallery-col:nth-child(3) .gallery-item:nth-child(2) { aspect-ratio: 3/4; }
.gallery-col:nth-child(3) .gallery-item:nth-child(3) { aspect-ratio: 4/3; }
.gallery-col:nth-child(4) .gallery-item:nth-child(1) { aspect-ratio: 4/3; }
.gallery-col:nth-child(4) .gallery-item:nth-child(2) { aspect-ratio: 3/4; }
.gallery-col:nth-child(4) .gallery-item:nth-child(3) { aspect-ratio: 4/3; }

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  background: var(--surface);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* ── Lightbox prev/next ── */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 10001;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover { background: var(--gold); transform: translateY(-50%) scale(1.1); }
.lightbox-next:hover { background: var(--gold); transform: translateY(-50%) scale(1.1); }
#lightboxImg { transition: opacity 0.2s ease; }

/* ── Gallery responsive ── */
@media (max-width: 1024px) {
  .gallery-masonry { grid-template-columns: repeat(3, 1fr); }
  .gallery-col:nth-child(4) { display: none; }
}
@media (max-width: 768px) {
  .gallery-masonry { grid-template-columns: repeat(2, 1fr); padding: 0 1rem 2rem; }
  .gallery-col:nth-child(3), .gallery-col:nth-child(4) { display: none; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}
@media (max-width: 480px) {
  .gallery-masonry { grid-template-columns: 1fr; }
  .gallery-col:nth-child(2), .gallery-col:nth-child(3), .gallery-col:nth-child(4) { display: none; }
}

/* ─────────────────────────────────────────────────────
   REAL-TIME WEATHER \u2014 enhanced essentials section
───────────────────────────────────────────────────── */
.essentials-section { padding: 5rem 0; }
#weatherCard.day-theme { background: linear-gradient(135deg, rgba(8,22,14,0.8), rgba(14,30,20,0.8)) !important; }
#weatherCard.night-theme { background: linear-gradient(135deg, rgba(5,10,18,0.85), rgba(8,14,30,0.85)) !important; }

/* ─────────────────────────────────────────────────────
   CURRENCY WIDGET \u2014 auto-refresh indicator
───────────────────────────────────────────────────── */
.c-footer { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--text-muted); margin-top: 1rem; }
.live-refresh-tag { font-size: 0.68rem; color: var(--teal-300); letter-spacing: 0.05em; text-transform: uppercase; }

/* ─────────────────────────────────────────────────────
   HERO LIVE URGENCY STRIP
───────────────────────────────────────────────────── */
.hero-live-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2rem;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
}
.live-strip-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 1.5s infinite;
  flex-shrink: 0;
}
.live-strip-sep { opacity: 0.4; }
#liveVisitors { font-weight: 700; color: #d4af37; }
@keyframes pulse-update {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.25); color: #22c55e; }
}
.pulse-update { animation: pulse-update 0.4s ease; }

/* ─────────────────────────────────────────────────────
   HOT DEAL BANNER (top of tours section)
───────────────────────────────────────────────────── */
.hot-deal-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(239,68,68,0.12));
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  margin: 0 auto 2rem;
  max-width: 900px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.9);
  position: relative;
}
.hot-deal-flame { font-size: 1.4rem; }
.hot-deal-banner strong { color: #d4af37; }
.hot-deal-btn {
  margin-left: auto;
  background: #d4af37;
  color: #0a0a0a;
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.hot-deal-btn:hover { background: #f0cc60; transform: scale(1.04); }
.hot-deal-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.2rem;
  margin-left: 0.5rem;
  transition: color 0.2s;
}
.hot-deal-close:hover { color: #ef4444; }

/* ─────────────────────────────────────────────────────
   SOCIAL PROOF TOASTS (booking notifications)
───────────────────────────────────────────────────── */
.toast-proof {
  background: rgba(10, 16, 12, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 0.75rem;
  padding: 0;
  overflow: hidden;
  min-width: 260px;
  max-width: 300px;
}
.toast-proof-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}
.toast-flag { font-size: 1.5rem; flex-shrink: 0; }
.toast-proof-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.8rem;
}
.toast-proof-text strong { color: rgba(255,255,255,0.95); font-size: 0.85rem; }
.toast-proof-text span { color: rgba(255,255,255,0.6); }
.toast-proof-text em { color: #d4af37; font-style: normal; font-weight: 600; }
.toast-mins { color: rgba(255,255,255,0.4); font-size: 0.72rem; }

/* ─────────────────────────────────────────────────────
   EXIT-INTENT POPUP
───────────────────────────────────────────────────── */
#exitPopup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
#exitPopup.show {
  opacity: 1;
  pointer-events: all;
}
.exit-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}
.exit-popup-box {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, #0f1e15 0%, #0a1410 100%);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 90vw;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#exitPopup.show .exit-popup-box { transform: scale(1); }

.exit-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s;
}
.exit-popup-close:hover { color: #ef4444; }
.exit-popup-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.exit-popup-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #d4af37;
  margin-bottom: 0.5rem;
}
.exit-popup-sub {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.exit-popup-sub strong { color: #fff; }

.exit-popup-countdown-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}
.exit-countdown {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ef4444;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}
.exit-popup-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  text-decoration: none;
  padding: 0.9rem 1.5rem;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}
.exit-popup-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37,211,102,0.4); }
.exit-popup-note {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}

/* ─────────────────────────────────────────────────────
   COUNTDOWN TIMERS (tour cards)
───────────────────────────────────────────────────── */
.urgency-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #ef4444;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.urgency-timer::before { content: '⏱'; font-size: 0.9rem; }

/* Spots left label color (set by urgency.js) */
[data-urgency] {
  font-size: 0.75rem;
  font-weight: 600;
  transition: color 0.5s ease;
}


/* ============================================================
   HORIZONTAL WIDGET REDESIGN (ESSENTIALS)
   ============================================================ */
.essentials-section {
  padding: 4rem 0 !important;
}

.widgets-grid {
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
  margin-top: 2rem !important;
}

.widget-card {
  padding: 1.5rem 2.5rem !important;
  border-radius: 1.25rem !important;
  background: rgba(12, 18, 14, 0.7) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(212, 175, 55, 0.15) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}
.widget-card:hover {
  border-color: rgba(212, 175, 55, 0.4) !important;
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.1) !important;
}

/* Horizontal Premium Weather */
.premium-weather {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 3rem !important;
}

.premium-weather .weather-badge {
  position: absolute;
  top: 1rem;
  left: 2.5rem;
  background: rgba(212, 175, 55, 0.15) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  color: var(--gold) !important;
}

.premium-weather .weather-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 !important;
}
.premium-weather .weather-icon-container {
  width: 70px !important;
  height: 70px !important;
}
.premium-weather .weather-temp-wrap {
  display: flex;
  align-items: baseline;
}
.premium-weather .temp-val {
  font-size: 3.5rem !important;
  line-height: 1 !important;
}

.premium-weather .weather-info {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex: 1;
  justify-content: center;
}
.premium-weather .weather-info h3 {
  margin: 0 !important;
  font-size: 1.8rem !important;
  color: var(--gold) !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
}
.premium-weather .weather-stats-premium {
  display: flex;
  gap: 1.5rem;
}
.premium-weather .stat-box {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  background: rgba(255,255,255,0.03);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.05);
}
.premium-weather > div:last-child {
  margin: 0 !important; 
}
.sea-status-pill {
  background: linear-gradient(135deg, rgba(37,211,102,0.1), rgba(18,140,126,0.1)) !important;
  border-color: rgba(37,211,102,0.3) !important;
}

/* Horizontal Currency Widget */
.currency-widget {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.currency-widget .currency-title {
  margin: 0 !important;
  white-space: nowrap;
  font-size: 1.3rem !important;
  color: var(--gold) !important;
}

.currency-widget .c-input-row {
  margin: 0 !important;
  flex: 1;
  max-width: 350px;
}

.currency-widget .c-divider {
  margin: 0 !important;
}

.currency-widget .c-footer {
  position: absolute;
  bottom: 0.6rem;
  right: 2.5rem;
  width: auto !important;
  margin: 0 !important;
}

@media (max-width: 992px) {
  .currency-widget {
    flex-wrap: wrap;
  }
  .currency-widget .c-input-row {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .premium-weather {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 2rem !important;
  }
  .premium-weather .weather-info {
    flex-direction: column;
    gap: 1.5rem;
  }
  .premium-weather .weather-stats-premium {
    justify-content: space-between;
    width: 100%;
  }
  .currency-widget {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .currency-widget .c-footer {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 1rem !important;
    width: 100% !important;
  }
}

/* ─────────────────────────────────────────────────────
   ROMERO'S STUDIOS CREDIT HOVER
───────────────────────────────────────────────────── */
.romero-credit {
  position: relative;
  display: inline-block;
  cursor: help;
  color: var(--gold);
  font-weight: 700;
  transition: all 0.3s ease;
  margin-left: 0.3rem;
}
.romero-credit .credit-hover {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface2);
  color: var(--gold);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-family: 'Raleway', sans-serif;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 1px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  z-index: 100;
}
.romero-credit:hover .credit-hover {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.romero-credit:hover .credit-text {
  text-shadow: 0 0 10px rgba(212,175,55,0.5);
}
