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

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 0.85em 1.6em; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--surface); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-whatsapp { background: #1F4A38; color: #fff; }
.btn-whatsapp:hover { background: var(--primary-dark); }

/* --- Top bar --- */
.topbar {
  background: var(--primary-dark); color: #EFEAE0;
  font-size: 0.86rem;
}
.topbar .container { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; padding-block: 0.5rem; }
.topbar a { color: inherit; }
.topbar ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; flex-wrap: wrap; }
.topbar svg { width: 14px; height: 14px; margin-right: 0.4em; vertical-align: -2px; }

/* --- Header / main nav --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}
.site-logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 1.3rem; color: var(--primary-dark); font-weight: 600; }
.site-logo img { height: 42px; width: auto; }

.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; gap: 1.9rem; margin: 0; padding: 0; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav a.nav-link {
  font-weight: 500; font-size: 0.98rem; color: var(--text);
  padding: 0.5rem 0; display: inline-block;
}
.main-nav a.nav-link:hover, .main-nav a.nav-link[aria-current="page"] { color: var(--primary); }

.has-submenu > button.nav-link {
  background: none; border: none; font: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.35em; color: var(--text); padding: 0.5rem 0;
}
.has-submenu > button.nav-link .chev { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; }

.submenu {
  list-style: none; margin: 0; padding: 0.8rem; position: absolute; top: 100%; left: -0.6rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); min-width: 460px;
  display: flex; gap: 0.8rem; align-items: flex-start;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu-links { list-style: none; margin: 0; padding: 0; flex: 1.3; min-width: 240px; }
.submenu-links a { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.6rem; border-radius: var(--radius-sm); font-size: 0.95rem; }
.submenu-links a:hover { background: var(--primary-light); color: var(--primary-dark); }
.submenu-thumb { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; flex: 0 0 auto; }
.submenu-featured {
  flex: 1; min-width: 170px; border-radius: var(--radius-sm); overflow: hidden; position: relative;
  display: block; height: 100%; min-height: 190px; color: #fff;
}
.submenu-featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.submenu-featured::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,51,38,0.1), rgba(18,51,38,0.85)); }
.submenu-featured-tag, .submenu-featured-title { position: relative; z-index: 1; display: block; padding-inline: 0.9rem; }
.submenu-featured-tag { margin-top: 0.9rem; font-size: 0.75rem; font-weight: 600; color: var(--accent-light); text-transform: uppercase; letter-spacing: 0.03em; }
.submenu-featured-title { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; padding-bottom: 0.9rem; margin-top: 0.2rem; }

.header-cta { display: none; align-items: center; gap: 0.9rem; }

/* Hamburger */
.nav-toggle {
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* Mobile drawer — slides from the right */
.mobile-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px);
  background: var(--surface); z-index: 200;
  transform: translateX(100%); transition: transform 0.25s ease;
  overflow-y: auto; box-shadow: var(--shadow-md);
  padding: 1.25rem;
}
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-scrim {
  position: fixed; inset: 0; background: rgba(18,51,38,0.45);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease; z-index: 199;
}
.drawer-scrim.is-open { opacity: 1; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.drawer-close { background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0.4rem; }
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer > nav > ul > li { border-bottom: 1px solid var(--border); }
.mobile-drawer a, .mobile-drawer .drawer-toggle {
  display: flex; width: 100%; justify-content: space-between; align-items: center;
  padding: 0.95rem 0.2rem; font-size: 1.02rem; font-weight: 500;
  background: none; border: none; font-family: inherit; text-align: left; cursor: pointer; color: var(--text);
}
.mobile-drawer .submenu-mobile { display: none; list-style: none; padding: 0 0 0.6rem 0.8rem; }
.mobile-drawer .submenu-mobile.is-open { display: block; }
.mobile-drawer .submenu-mobile a { padding: 0.6rem 0.2rem; font-weight: 400; color: var(--text-light); }
.drawer-cta { margin-top: 1.25rem; display: grid; gap: 0.7rem; }

/* --- Hero --- */
.hero {
  position: relative; color: #fff; display: flex; align-items: flex-end;
  min-height: min(78vh, 640px);
  background-size: cover; background-position: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,51,38,0.25) 0%, rgba(18,51,38,0.78) 100%);
}
.hero .container { position: relative; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero p.lede { color: #F1EEE5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.4rem; }

/* --- Hero slider (homepage only): stacked background layers cross-fading --- */
.hero-slider { z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease; z-index: 0;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slider::before { z-index: 2; }
.hero-slider .container { z-index: 3; }
.hero-dots {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.55rem; z-index: 4;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.45);
  border: none; padding: 0; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease;
}
.hero-dot.is-active { background: var(--accent); transform: scale(1.25); }

/* Page header (interior pages, no full hero photo) */
.page-header { background: var(--primary-light); border-bottom: 1px solid var(--border); }
.page-header .container { padding-block: clamp(1.6rem, 3vw, 2.4rem); }

/* --- Breadcrumbs --- */
.breadcrumbs { font-size: 0.88rem; color: var(--text-light); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--border); }
.breadcrumbs a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--text); }

/* --- Cards --- */
.card-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (min-width: 720px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card-tag { font-size: 0.8rem; font-weight: 600; color: var(--accent-dark); }
.card h3 { font-size: 1.15rem; margin-bottom: 0.2em; }
.card .card-meta { font-size: 0.88rem; color: var(--text-light); margin-top: auto; padding-top: 0.6rem; }
.card a.card-link { margin-top: 0.4rem; font-weight: 600; color: var(--primary); font-size: 0.94rem; }

/* --- Highlight box --- */
.highlight-box {
  background: var(--primary-light); border-left: 4px solid var(--primary);
  padding: 1.2rem 1.4rem; border-radius: var(--radius-sm); margin: 1.6rem 0;
}
.highlight-box.accent { background: var(--accent-light); border-color: var(--accent); }

/* --- FAQ accordion --- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-size: 1.05rem; color: var(--primary-dark);
  padding: 1.1rem 2.2rem 1.1rem 0; position: relative; font-weight: 600;
}
.faq-question::after {
  content: ""; position: absolute; right: 0.2rem; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--accent-dark); border-bottom: 2px solid var(--accent-dark);
  transform: translateY(-65%) rotate(45deg); transition: transform 0.2s ease;
}
.faq-question[aria-expanded="true"]::after { transform: translateY(-35%) rotate(-135deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-answer > div { padding-bottom: 1.2rem; color: var(--text-light); }

/* --- Spam-protection helpers: honeypot + captcha + submit status --- */
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; overflow: hidden; }
.captcha-row { display: flex; align-items: center; gap: 0.7rem; }
.captcha-row input { max-width: 100px; }
.form-status {
  display: none; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: 0.94rem;
}
.form-status.is-success { display: block; background: var(--primary-light); color: var(--primary-dark); border: 1px solid var(--primary); }
.form-status.is-error { display: block; background: #FBEAEA; color: #8A2E2E; border: 1px solid #D98C8C; }

/* --- Contact form --- */
.form-grid { display: grid; gap: 1rem; }
.form-field { display: grid; gap: 0.4rem; }
.form-field label { font-weight: 600; font-size: 0.92rem; }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; padding: 0.75em 0.9em; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
}
.form-field textarea { resize: vertical; min-height: 120px; }

/* --- WhatsApp float --- */
.whatsapp-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%; background: #1F4A38;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
}
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* --- Reviews slider (single row, horizontal scroll + nav arrows) --- */
.reviews-slider-wrap { position: relative; margin-top: 1.5rem; }
.reviews-slider {
  display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 0.6rem; scrollbar-width: thin;
}
.review-card {
  flex: 0 0 280px; scroll-snap-align: start; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
}
.review-card .card-body { padding: 1.2rem 1.3rem; }
.reviews-nav {
  position: absolute; top: 40%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; font-size: 1.1rem;
  color: var(--primary-dark); display: none; align-items: center; justify-content: center;
}
.reviews-nav-prev { left: -8px; }
.reviews-nav-next { right: -8px; }
@media (min-width: 640px) {
  .reviews-nav { display: flex; }
}

/* --- Footer --- */
.site-footer { position: relative; background-size: cover; background-position: center 35%; color: #DCE6DF; }
.site-footer-overlay { background: linear-gradient(180deg, rgba(18,51,38,0.93) 0%, rgba(18,51,38,0.97) 100%); }
.footer-grid {
  display: grid; gap: 2.4rem; padding-block: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
.footer-grid-5 { grid-template-columns: 1.3fr 0.8fr 0.8fr 0.8fr 1fr; }
@media (max-width: 960px) { .footer-grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid-5 { grid-template-columns: 1fr; } }
.footer-newsletter-form { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-newsletter-form input {
  padding: 0.75em 1em; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12); color: #fff; font: inherit;
}
.footer-newsletter-form input::placeholder { color: #D9E3DC; }
.footer-newsletter-form input:focus-visible { outline: 2px solid var(--accent); background: rgba(255,255,255,0.18); }
.site-footer h4 { color: #fff; font-size: 1rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 1rem; }
.site-footer a { color: #C9D6CC; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.footer-brand p { color: #B9C7BD; max-width: 34ch; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 17px; height: 17px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-block: 1.2rem; font-size: 0.85rem; color: #AFC0B4; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; justify-content: space-between; }

/* --- Travel Journal listing: 70/30 article list + tours sidebar --- */
.journal-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
.journal-main { display: grid; gap: 2rem; min-width: 0; }
.journal-article {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.journal-article:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.journal-article img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.journal-article-body { padding: 1.4rem 1.6rem 1.6rem; }
.journal-article-body h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: 0.4em; }
.journal-article-body p { color: var(--text-light); margin-bottom: 0.6em; }
@media (min-width: 960px) {
  .journal-layout { grid-template-columns: 2.3fr 1fr; }
}

/* --- Tour page: itinerary column + sticky booking sidebar --- */
.tour-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
.tour-main { min-width: 0; }
.tour-main > .eyebrow:not(:first-child) { display: block; margin-top: 2.6rem; }
.tour-sidebar-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.4rem; box-shadow: var(--shadow-sm);
}
.featured-tour-list { display: grid; gap: 1rem; }
.featured-tour-item { display: flex; gap: 0.8rem; align-items: center; }
.featured-tour-item img { width: 68px; height: 68px; border-radius: var(--radius-sm); object-fit: cover; flex: 0 0 auto; }
.featured-tour-item strong { display: block; font-size: 0.92rem; color: var(--text); font-weight: 600; line-height: 1.3; }
@media (min-width: 960px) {
  .tour-layout { grid-template-columns: 1fr 360px; }
  .tour-sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* --- Checkout Our Top: accordion + static feature card (matches original Elementor layout) --- */
.checkout-widget { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 1.5rem; align-items: start; }
.checkout-accordion { display: flex; flex-direction: column; gap: 0.7rem; }
.checkout-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--background); overflow: hidden; }
.checkout-item[open] { border-color: var(--accent); background: var(--surface); box-shadow: var(--shadow-sm); }
.checkout-item summary {
  list-style: none; cursor: pointer; padding: 0.95rem 1.1rem; font-weight: 600; font-size: 0.98rem;
  color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 0.8rem;
}
.checkout-item summary::-webkit-details-marker { display: none; }
.checkout-item summary::after {
  content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-right: 2px solid var(--accent-dark);
  border-bottom: 2px solid var(--accent-dark); transform: rotate(45deg); transition: transform 0.2s ease;
}
.checkout-item[open] summary::after { transform: rotate(-135deg); }
.checkout-item[open] summary { color: var(--primary-dark); border-bottom: 1px solid var(--border); }
.checkout-body { padding: 1.2rem 1.1rem 1.4rem; }
.checkout-body img { width: 100%; max-width: 560px; border-radius: var(--radius-md); margin: 0.8rem 0; aspect-ratio: 4/3; object-fit: cover; }
.checkout-body h3 { font-size: 1.25rem; color: var(--primary-dark); margin-top: 0; }
.checkout-body h4 { font-size: 1.05rem; color: var(--primary-dark); margin-top: 1.4rem; }
.checkout-body p { max-width: none; color: var(--text); }
.checkout-body ul { padding-left: 1.2rem; margin-bottom: 1em; }
.checkout-body li { margin-bottom: 0.4em; }
.checkout-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.checkout-body a:hover { color: var(--accent-dark); }
.checkout-body strong { color: var(--primary-dark); }

.checkout-feature {
  position: relative; border-radius: var(--radius-md); overflow: hidden; display: block; color: #fff;
  min-height: 260px;
}
.checkout-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.checkout-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,51,38,0.88), rgba(18,51,38,0.05) 55%); }
.checkout-feature-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem; z-index: 1; }
.checkout-feature-tag {
  display: inline-block; background: var(--accent); color: #fff; font-size: 0.8rem; font-weight: 600;
  padding: 0.4rem 0.9rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 0.9rem;
}
.checkout-feature h3 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 0.5em; }
.checkout-feature p { color: #E4ECE6; margin: 0; }
@media (min-width: 860px) {
  .checkout-widget { grid-template-columns: 1.1fr 0.9fr; }
}

/* --- Partner logo grid --- */
.partner-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.2rem; align-items: stretch;
}
.partner-logo {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  height: 110px; padding: 1.2rem;
  filter: grayscale(100%); opacity: 0.75;
  transition: filter 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}
.partner-logo:hover { filter: grayscale(0%); opacity: 1; box-shadow: var(--shadow-sm); }
.partner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; width: auto; height: auto; }
.partner-logo-text {
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-display); font-weight: 600; color: var(--primary-dark);
  font-size: 1rem; filter: none; opacity: 1; padding: 1.4rem 1rem;
}
.partner-logo-text:hover { box-shadow: none; }

/* --- Booking modal --- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(18,51,38,0.55);
  display: none; align-items: center; justify-content: center;
  padding: 1.2rem; z-index: 300;
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--radius-md);
  max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto;
  padding: 1.8rem; box-shadow: var(--shadow-md); position: relative;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem; background: none; border: none;
  font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--text-light);
  width: 36px; height: 36px; border-radius: 50%;
}
.modal-close:hover { background: var(--primary-light); }
.modal h2 { margin-bottom: 0.2em; }
.modal .modal-sub { color: var(--text-light); margin-bottom: 1.2rem; }
.cta-band { background: var(--primary); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lede { color: #E4ECE6; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }
