/* ORSCA site styles. Page sections keep the design's inline styles;
   this file adds the shared header, base rules and the mobile layout. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, sans-serif; color: #15191E; background: #FFFFFF; }
a { color: #2F6EA5; } a:hover { color: #12345A; }
img, video { max-width: 100%; }
main { display: block; overflow-x: clip; }
button { font: inherit; }
:focus-visible { outline: 3px solid #F2B437; outline-offset: 2px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #FFFFFF; border-bottom: 1px solid #E1E5EA; padding-top: env(safe-area-inset-top); }
/* white strip above the sticky header so page content never shows through the browser bar on iPad / iPhone */
.site-header::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 200px; background: #FFFFFF; }
.hd { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: baseline; gap: 2px; color: #12345A; text-decoration: none; }
.logo span { font-family: Archivo, sans-serif; font-stretch: 112%; font-weight: 900; font-size: 28px; line-height: 1; letter-spacing: 0.02em; }
.hd-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; }
.hd-nav a { color: #15191E; text-decoration: none; }
.hd-nav a:hover, .hd-nav a[aria-current="page"] { color: #2F6EA5; }
.hd-act { display: flex; align-items: center; gap: 10px; }
.btn-wa { color: #12345A; font-size: 14px; font-weight: 600; text-decoration: none; border: 1.5px solid #12345A; border-radius: 999px; padding: 10px 16px; }
.btn-plan { color: #12345A; background: #F2B437; font-size: 14px; font-weight: 700; text-decoration: none; border-radius: 999px; padding: 11px 20px; white-space: nowrap; }
.btn-plan:hover { color: #12345A; background: #FFC85A; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: #12345A; border-radius: 2px; transition: transform .2s, opacity .2s; }
.only-m { display: none; }

@media (max-width: 1180px) {
  .hd-nav { position: fixed; inset: 65px 0 auto 0; background: #FFFFFF; flex-direction: column; gap: 0; padding: 8px 24px 20px;
            border-bottom: 1px solid #E1E5EA; box-shadow: 0 16px 32px rgba(18,52,90,.12); display: none; max-height: calc(100vh - 65px); overflow-y: auto; }
  .hd-nav { align-items: stretch !important; }
  .hd-nav a { padding: 14px 0; border-bottom: 1px solid #EEF1F4; font-size: 17px; }
  .hd-nav.open { display: flex; }
  .only-m { display: block; }
  .burger { display: flex; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .hd { padding: 10px 16px; }
  .btn-wa { display: none; }
  .btn-plan { padding: 10px 16px; }
  .hd-nav { inset: 61px 0 auto 0; padding: 4px 16px 16px; }
}

/* ---------- tablet & phone layout of the design sections ---------- */
@media (max-width: 900px) {
  main [style*="grid-template-columns: repeat(2, minmax(0, 1fr))"] { grid-template-columns: 1fr !important; }
  main [style*="minmax(340px, 1fr)"], main [style*="minmax(320px, 1fr)"], main [style*="minmax(300px, 1fr)"] { grid-template-columns: 1fr !important; }
  main [style*="font-size: 4.5rem"] { font-size: 3rem !important; }
  main [style*="font-size: 3.6rem"] { font-size: 2.6rem !important; }
  main [style*="font-size: 3.2rem"] { font-size: 2.4rem !important; }
}
@media (max-width: 600px) {
  main [style*="minmax(280px, 1fr)"], main [style*="minmax(270px, 1fr)"], main [style*="minmax(260px, 1fr)"],
  main [style*="minmax(250px, 1fr)"], main [style*="minmax(240px, 1fr)"] { grid-template-columns: 1fr !important; }
  main [style*="minmax(190px, 1fr)"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  main [style*="padding: 0 24px"] { padding-left: 16px !important; padding-right: 16px !important; }
  main [style*="font-size: 4.5rem"] { font-size: 2.4rem !important; }
  main [style*="font-size: 3.6rem"] { font-size: 2.1rem !important; }
  main [style*="font-size: 3.2rem"] { font-size: 2rem !important; }
  main [style*="font-size: 2.4rem"] { font-size: 1.75rem !important; }
  main [style*="font-size: 2.3rem"], main [style*="font-size: 2.1rem"], main [style*="font-size: 2rem"] { font-size: 1.6rem !important; }
  main [style*="font-size: 1.9rem"] { font-size: 1.5rem !important; }
  main [style*="height: 560px"] { height: 420px !important; }
  main [style*="height: 440px"], main [style*="height: 420px"] { height: 300px !important; }
}

/* ---------- footer ---------- */
footer { font-family: Inter, system-ui, sans-serif; }
footer a { text-decoration: none; }
footer a:hover { color: #FFFFFF !important; }
@media (max-width: 600px) {
  footer [style*="minmax(190px, 1fr)"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  footer [style*="minmax(190px, 1fr)"] > div:first-child { grid-column: 1 / -1; }
  footer [style*="padding: 64px 24px 32px"] { padding: 48px 16px 28px !important; }
}

/* ---------- small fixes ---------- */
[id] { scroll-margin-top: 84px; }
footer a { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  main [data-track] > div { height: 260px !important; max-width: 84vw; }
  main [aria-label^="Previous"] { left: 4px !important; }
  main [aria-label^="Next"] { right: 4px !important; }
}

/* ---------- tour pages ---------- */
[hidden] { display: none !important; }
[data-day-toggle] { user-select: none; }
[data-lb-open] { cursor: pointer; }
@media (max-width: 600px) {
  [data-day-body] > div { padding: 0 16px 18px 16px !important; }
  [data-day-toggle] { padding: 14px 16px !important; gap: 12px !important; }
  [data-day-body] [style*="height: 300px"] { height: 220px !important; }
  [data-lb] > div { padding: 12px 10px !important; }
  [data-lb] [data-lb-prev], [data-lb] [data-lb-next] { position: absolute; z-index: 2; flex: none !important; width: 44px !important; height: 44px !important; opacity: .9; }
  [data-lb] [data-lb-prev] { left: 14px; }
  [data-lb] [data-lb-next] { right: 14px; }
  [data-lb] [data-lb-img] { border-radius: 6px !important; }
  [data-lb] [data-lb-thumb] { flex-basis: 72px !important; width: 72px !important; height: 50px !important; }
}
@media (max-width: 900px) {
  main [style*="repeat(2, minmax(0, 1fr))"]:has(> [data-lb-open]) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 600px) {
  main [data-lb-open][style*="min-height: 440px"] { min-height: 300px !important; }
  main [data-lb-open][style*="min-height: 214px"] { min-height: 130px !important; }
  main [data-lb-open] button[data-lb-open] { font-size: 13px !important; padding: 8px 12px !important; }
}

/* ---------- FAQ accordions ---------- */
summary::-webkit-details-marker { display: none; }
.faq-ic { display: inline-block; flex: 0 0 auto; transition: transform .2s; }
details[open] > summary .faq-ic { transform: rotate(45deg); }
.prose a { color: #2F6EA5; }

/* ---------- All tours filters ---------- */
.flt-toggle { all: unset; display: flex; justify-content: space-between; align-items: center; font-family: Archivo, sans-serif; font-stretch: 108%; font-weight: 800; font-size: 1.2rem; color: #12345A; cursor: default; }
.flt-toggle span { display: none; font-size: 24px; color: #2F6EA5; transition: transform .2s; }
@media (max-width: 900px) {
  [data-filters] { padding: 16px 20px !important; gap: 18px !important; }
  [data-filters] > :not(.flt-toggle) { display: none !important; }
  [data-filters].open > :not(.flt-toggle) { display: flex !important; }
  [data-filters].open > button[data-f-reset] { display: block !important; }
  .flt-toggle { cursor: pointer; min-height: 32px; }
  .flt-toggle span { display: inline; }
  [data-filters].open .flt-toggle span { transform: rotate(45deg); }
}

/* lightbox caption right above the photo on phones */
.lb-cap-m { display: none; }
@media (max-width: 600px) {
  [data-lb] [data-lb-cap] { visibility: hidden; }
  [data-lb] div:has(> [data-lb-img]) { flex-direction: column !important; gap: 12px; }
  .lb-cap-m { display: block; margin: 0; padding: 0 8px; text-align: center; color: #FFFFFF; font-size: 16px; font-weight: 600; line-height: 1.4; }
  [data-lb] [data-lb-img] { max-height: calc(100% - 70px) !important; }
}
[data-lb] span:has(> [data-lb-num]) { white-space: nowrap; }
@media (max-width: 600px) { [data-lb] > div { background: rgba(9, 22, 38, 0.98) !important; } }

/* whole tour card is clickable */
.card-click { position: relative; transition: box-shadow .2s, transform .2s; }
.card-click:hover { box-shadow: 0 14px 32px rgba(18, 52, 90, 0.14); transform: translateY(-2px); }
.card-click .card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-click .card-hit { position: absolute; inset: 0; z-index: 1; }
@media (hover: none) { .card-click:hover { transform: none; } }

/* Destinations menu */
.dd { position: relative; }
.dd-btn { all: unset; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; color: #15191E; font-size: 15px; font-weight: 600; }
.dd-btn svg { transition: transform .2s; }
.dd.is-current > .dd-btn, .dd-btn:hover { color: #2F6EA5; }
.dd-menu { display: none; position: absolute; top: 100%; left: -16px; padding-top: 12px; z-index: 60; }
.dd-menu::before { content: ""; position: absolute; inset: 12px 0 0 0; background: #FFFFFF; border: 1px solid #E1E5EA; border-radius: 14px; box-shadow: 0 16px 32px rgba(18, 52, 90, .14); z-index: -1; }
.dd-menu a { display: block; padding: 11px 20px; min-width: 170px; color: #15191E; text-decoration: none; }
.dd-menu a:first-child { margin-top: 6px; } .dd-menu a:last-child { margin-bottom: 6px; }
.dd-menu a:hover, .dd-menu a[aria-current="page"] { color: #2F6EA5; background: #F2F6FA; }
@media (min-width: 1181px) {
  .dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { display: block; }
  .dd:hover .dd-btn svg, .dd.open .dd-btn svg { transform: rotate(180deg); }
}
@media (max-width: 1180px) {
  .dd { border-bottom: 1px solid #EEF1F4; }
  .dd-btn { display: flex; justify-content: space-between; width: 100%; padding: 14px 0; font-size: 17px; }
  .dd.open .dd-btn svg { transform: rotate(180deg); }
  .dd-menu { position: static; padding: 0 0 8px 14px; }
  .dd-menu::before { display: none; }
  .dd.open .dd-menu { display: block; }
  .dd-menu a { padding: 11px 0; border-bottom: none !important; font-size: 16px; min-width: 0; }
  .dd-menu a:first-child { margin-top: 0; }
}

/* filtered card grids keep the normal card width instead of stretching */
main [style*="auto-fit, minmax(260px, 1fr)"]:has(> .card-click) { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; }
main [style*="auto-fit, minmax(270px, 1fr)"]:has(> .card-click) { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)) !important; }
main [style*="auto-fit, minmax(280px, 1fr)"]:has(> .card-click) { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; }
main [style*="auto-fit, minmax(300px, 1fr)"]:has(> .card-click) { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important; }
main [style*="auto-fit, minmax(250px, 1fr)"]:has(> .card-click) { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; }

/* image tiles (destinations, travel styles) lift on hover like the tour cards */
main a:has(> img)[style*="border-radius"] { transition: box-shadow .2s, transform .2s; }
main a:has(> img)[style*="border-radius"] > img { transition: transform .5s; }
main a:has(> img)[style*="border-radius"]:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(18, 52, 90, 0.2); }
main a:has(> img)[style*="border-radius"]:hover > img { transform: scale(1.04); }
@media (hover: none) { main a:has(> img)[style*="border-radius"]:hover { transform: none; } main a:has(> img)[style*="border-radius"]:hover > img { transform: none; } }

/* footer: wider first and last columns on desktop so the email fits on one line */
@media (min-width: 1000px) {
  footer [style*="minmax(190px, 1fr)"] { grid-template-columns: 1.35fr 1fr 1fr 1fr 1.35fr !important; }
  footer a { overflow-wrap: normal; white-space: nowrap; }
}

/* tablets: grids with exactly 4 items become 2 x 2 instead of 3 + 1 */
@media (min-width: 601px) and (max-width: 1180px) {
  main [style*="grid-template-columns: repeat(auto-fit"]:has(> :nth-child(4)):not(:has(> :nth-child(5))):not(:has(> .card-click)) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
/* tablets: tour cards two per row */
@media (min-width: 601px) and (max-width: 900px) {
  main [style*="grid-template-columns: repeat(auto-fit"]:has(> .card-click) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
/* very wide screens: slightly larger base text so the 1240px layout does not look tiny */
@media (min-width: 2200px) { html { zoom: 1.15; } }
@media (min-width: 601px) and (max-width: 900px) {
  main [style*="grid-template-columns"]:has(> a > img) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
