/* Responsive layout, loaded after theme styles so mobile geometry stays consistent. */
.mobile-copy { display: none; }
.contact-field { display: grid; gap: 13px; min-width: 0; }
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

@media (max-width: 800px) {
  body > nav,
  body > header,
  body > main,
  body > footer {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .wrap {
    width: calc(100% - 32px);
    max-width: none;
  }

  .nav {
    top: 8px;
    left: 10px;
    right: 10px;
    width: auto;
    padding: 8px 12px;
    border-radius: 18px !important;
  }

  .nav .wrap {
    width: 100%;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 58px);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
  }

  .hero {
    width: 100%;
    min-height: min(720px, 100svh);
    height: auto;
    max-height: none;
    padding: 138px 0 88px;
    border-radius: 0 0 22px 22px;
  }

  .heroContent {
    width: calc(100% - 36px);
    max-width: 560px;
    margin-inline: auto;
    padding: 0;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(2.55rem, 11.5vw, 4.5rem);
    line-height: 0.99;
    letter-spacing: -0.045em;
  }

  .hero p {
    max-width: 35ch;
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero .actions .pill {
    min-height: 48px;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.86rem;
  }

  .section {
    padding-block: 58px;
  }

  .section.wrap {
    padding-inline: 16px;
  }

  .head {
    display: block;
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid #ffffffd9;
    border-radius: 20px;
    background: #faf8f1ed;
    box-shadow: 0 12px 30px #18382d18;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .head .kicker {
    color: #477a67;
  }

  .head h2,
  .head .intro {
    color: #344b42;
  }

  .head h2,
  .booking .head h2,
  .discover .head h2 {
    font-size: clamp(2rem, 8.7vw, 3.2rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
  }

  .intro {
    max-width: 42ch;
    margin-top: 14px;
    font-size: 0.96rem;
    line-height: 1.58;
  }

  /* Journey cards become a swipeable rail, not three unreadable columns. */
  #tours .grid {
    display: flex;
    gap: 14px;
    margin-inline: -2px;
    padding: 8px 2px 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Native axis locking keeps horizontal swipes without blocking page scroll. */
    touch-action: auto;
    overscroll-behavior-y: auto;
  }

  #tours .grid::-webkit-scrollbar,
  .package-grid::-webkit-scrollbar {
    display: none;
  }

  #tours .card {
    flex: 0 0 min(84vw, 360px);
    min-width: 0;
    scroll-snap-align: center;
    text-align: left;
    border-radius: 20px;
  }

  #tours .card img {
    height: clamp(160px, 52vw, 210px);
  }

  #tours .cardbody {
    padding: 18px;
  }

  #tours .card h3 {
    min-height: 0;
    margin: 13px 0 8px;
    font-size: clamp(1.25rem, 5.8vw, 1.65rem);
    line-height: 1.08;
  }

  #tours .card p {
    min-height: 0;
    margin-bottom: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  #tours .price {
    font-size: 0.86rem;
  }

  .storyin {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .storyin > div:first-child,
  .storyin .stats {
    min-width: 0;
    min-height: 0;
    padding: 22px 18px;
    border-radius: 20px;
  }

  .story h2 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.04;
  }

  .story p {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .story .pill {
    min-height: 44px;
    font-size: 0.8rem;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 0;
  }

  .stat {
    min-width: 0;
    padding: 14px 12px;
  }

  .stat strong {
    font-size: 1.8rem;
  }

  .stat span {
    font-size: 0.76rem;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: min(60vw, 230px) repeat(2, min(40vw, 160px));
    gap: 9px;
  }

  .gallery img:first-child {
    grid-column: span 2;
    grid-row: auto;
  }

  .discover-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: min(58vw, 220px) repeat(2, min(40vw, 155px));
    gap: 9px;
  }

  .discover-grid article:first-child {
    grid-column: span 2;
    grid-row: auto;
  }

  .discover-grid h3 {
    font-size: 0.88rem;
    line-height: 1.2;
  }

  .booking .head {
    padding: 18px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .steps article {
    padding: 18px;
  }

  .steps h3 {
    margin: 12px 0 6px;
    font-size: 1.05rem;
  }

  .steps p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* One generous tour card in view; next card peeks in to invite a swipe. */
  .packages.wrap {
    width: 100%;
    padding-inline: 16px;
  }

  .package-carousel {
    width: calc(100% + 32px);
    margin-inline: -16px;
    padding-block: 8px 18px;
  }

  .package-grid {
    gap: 12px;
    padding: 14px calc((100vw - min(84vw, 380px)) / 2) 24px;
    scroll-padding-inline: calc((100vw - min(84vw, 380px)) / 2);
  }

  .package-card,
  .package-edge-space,
  .package-edge-space:last-child {
    flex-basis: min(84vw, 380px) !important;
  }

  .package-edge-space,
  .package-edge-space:last-child {
    flex: 0 0 0 !important;
    width: 0;
  }

  .package-card {
    min-height: 340px;
    border-radius: 22px;
  }

  .package-card.is-current {
    transform: translateY(-5px) scale(1.045) !important;
    box-shadow: 0 20px 40px #18382d40;
  }

  .package-card.is-transitioning {
    animation: mobileCarouselFocus 0.82s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes mobileCarouselFocus {
    0% { transform: scale(0.99); filter: brightness(0.96); }
    58% { transform: translateY(-7px) scale(1.055); filter: brightness(1.03); }
    100% { transform: translateY(-5px) scale(1.045); filter: brightness(1); }
  }

  .tour-card-image {
    height: clamp(170px, 54vw, 220px);
  }

  .tour-card-body {
    gap: 10px;
    padding: 17px 18px 18px;
  }

  .tour-card-body .tag {
    padding: 6px 9px;
    font-size: 0.68rem;
  }

  .tour-card-body h3 {
    font-size: clamp(1.12rem, 5.2vw, 1.45rem);
    line-height: 1.12;
  }

  .tour-card-body p {
    min-height: 4.2em;
    font-size: 0.9rem;
    line-height: 1.5;
    -webkit-line-clamp: 3;
  }

  .tour-card-body > strong {
    font-size: 0.98rem;
  }

  .tour-card-body small {
    font-size: 0.72rem;
  }

  .tour-detail-trigger {
    min-height: 46px;
    padding: 10px 13px;
    font-size: 0.82rem;
  }

  .tour-arrows {
    inset: -54px 16px auto auto;
    gap: 8px;
    transform: none;
  }

  .tour-arrow {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .contactbox {
    padding: 25px 20px;
    border-radius: 22px !important;
  }

  .contactbox h2 {
    font-size: clamp(2rem, 9vw, 3.1rem);
  }

  .contactbox p,
  .form label {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .form input,
  .form textarea,
  .form select,
  .form .pill {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    font-size: 16px;
  }

  .date-row {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .site-footer {
    padding: 30px 16px 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 14px;
  }

  .footer-brand,
  .footer-social {
    grid-column: 1 / -1;
  }

  .contact-float {
    right: 8px;
  }
}

@media (max-width: 380px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .section.wrap {
    padding-inline: 14px;
  }

  .heroContent {
    width: calc(100% - 32px);
  }

  .hero h1 {
    font-size: clamp(2.4rem, 11.5vw, 3.25rem);
  }

  #tours .card {
    flex-basis: 86vw;
  }

  .package-grid {
    padding-inline: 7vw;
    scroll-padding-inline: 7vw;
  }

  .package-card,
  .package-edge-space,
  .package-edge-space:last-child {
    flex-basis: 86vw !important;
  }

  .tour-detail-columns {
    grid-template-columns: 1fr;
  }

  .date-row {
    grid-template-columns: 1fr;
  }
}

/* Compact mobile composition: shared gutters and connected section surfaces. */
@media (max-width: 800px) {
  body > main { display: flex; flex-direction: column; }
  body > .nav {
    position: relative !important;
    top: 0; left: auto; right: auto;
    width: calc(100% - 24px); margin: 8px auto 0;
    padding: 8px 12px; min-height: 56px;
    border-radius: 12px !important;
  }
  .navin { min-height: 40px; }
  .brand img { width: 38px; height: 38px; border-radius: 8px; }
  .menu { color: #315847; width: 40px; height: 40px; padding: 0; }
  .links.is-open { top: 58px; right: 0; }
  body > .hero {
    width: calc(100% - 24px); margin: 8px auto 0;
    height: auto; min-height: 0; max-height: none;
    padding: 40px 18px 30px; border-radius: 14px;
  }
  .hero .heroContent { width: 100%; max-width: none; padding: 0; }
  .hero .eyebrow { font-size: .61rem; letter-spacing: .09em; line-height: 1.5; color: #d7e7dd; }
  .hero h1 { max-width: none; margin: 12px 0; font-size: clamp(2.15rem, 9.8vw, 3.5rem); line-height: 1.04; letter-spacing: -.025em; }
  .hero p { max-width: none; margin: 0; font-size: .9rem; line-height: 1.5; }
  .hero .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
  .hero .actions .pill { min-height: 44px; padding: 10px 9px; border-radius: 8px; font-size: .74rem; line-height: 1.3; text-align: center; }
  .wrap, .section.wrap { width: calc(100% - 24px); padding-inline: 0; margin-inline: auto; }
  .section { padding-block: 24px; }
  .section .head { padding: 14px; margin-bottom: 12px; border-radius: 14px; background: #faf8f1f5; box-shadow: none; }
  .section .head h2, .booking .head h2, .discover .head h2 { font-size: clamp(1.55rem, 6.7vw, 2rem); line-height: 1.12; letter-spacing: -.015em; margin: 7px 0 0; color: #2f4b3e; }
  .head .kicker { font-size: .6rem; letter-spacing: .1em; line-height: 1.45; }
  .head .intro { margin: 10px 0 0; font-size: .86rem; line-height: 1.5; color: #52695e; }
  #tours .card { flex-basis: calc(100% - 18px); border-radius: 12px; }
  #tours .card img { height: clamp(150px, 43vw, 190px); }
  #tours .cardbody { padding: 14px; }
  #tours .card h3 { font-size: 1.2rem; margin: 10px 0 7px; }
  #tours .card p { font-size: .86rem; margin-bottom: 10px; }
  .story.section { padding-block: 16px; }
  .storyin { display: grid; grid-template-columns: 1fr; gap: 0; border-radius: 14px; overflow: hidden; background: #506b60; }
  .storyin > div:first-child { min-height: 0; padding: 16px; border-radius: 0; background: transparent; }
  .story .kicker { color: #d1e3d8; font-size: .6rem; letter-spacing: .1em; }
  .story h2 { font-size: 1.5rem; line-height: 1.15; letter-spacing: .025em; margin: 7px 0; }
  .story p { margin: 8px 0 12px; font-size: .87rem; line-height: 1.45; }
  .story .pill { min-height: 44px; padding: 10px 14px; border-radius: 8px; font-size: .8rem; align-items: center; }
  .storyin .stats { min-height: 0; margin: 0; padding: 10px 8px; border-radius: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: #284c40; }
  .story .stat { padding: 0 5px; min-width: 0; border: 0; border-right: 1px solid #ffffff30; border-radius: 0; background: none; text-align: center; }
  .story .stat:last-child { border-right: 0; }
  .story .stat strong { font-size: 1.45rem; line-height: 1.15; }
  .story .stat span { display: block; margin-top: 3px; font-size: .72rem; line-height: 1.3; }
  .story .stat span .mobile-copy { margin: 0; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: clamp(130px, 40vw, 175px); gap: 8px; }
  .gallery img:first-child { grid-column: auto; grid-row: auto; }
  .section.booking { padding: 20px 12px; border-radius: 14px; margin: 12px; width: calc(100% - 24px); }
  .booking .wrap { width: 100%; }
  .booking .head { padding: 0; }
  .steps article { padding: 14px; border-radius: 10px; }
  .steps h3 { margin: 8px 0 5px; font-size: .95rem; }
  .steps p { font-size: .83rem; line-height: 1.45; }
  .packages.wrap {
    order: -1; width: calc(100% - 24px); padding: 16px 0 10px;
    margin: 16px auto 0; border: 1px solid #ffffffb5; border-radius: 16px;
    background: #f7f5edf5; box-shadow: 0 8px 24px #17382d18;
  }
  .packages .head { padding: 0 14px; margin: 0 0 4px; background: transparent; border: 0; backdrop-filter: none; }
  .packages .head h2 { font-size: clamp(1.5rem, 6.4vw, 1.9rem); }
  :is(.packages, .story, #contact) .desktop-copy { display: none; }
  :is(.packages, .story, #contact) .mobile-copy { display: inline; }
  .packages .head .intro { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .packages .package-carousel { width: 100%; margin: 0; padding: 8px 0 4px; }
  .packages .package-grid { gap: 16px; padding: 12px 20px 14px; scroll-padding-inline: 20px; touch-action: auto; align-items: stretch; }
  .packages .package-card { flex-basis: calc(100% - 12px) !important; min-height: 0; padding: 0; border-radius: 12px; background: #fff; }
  .packages .package-card.is-current { transform: translateY(-3px) scale(1.02) !important; box-shadow: 0 10px 20px #18382d24; }
  .packages .tour-card-image { width: 100%; height: clamp(155px, 46vw, 195px); margin: 0; border-radius: 0; }
  .packages .tour-card-body { padding: 13px 14px 14px; gap: 9px; }
  .packages .tour-card-body h3 { font-size: 1.1rem; line-height: 1.16; letter-spacing: .01em; }
  .packages .tour-card-body p { min-height: 0; font-size: .85rem; line-height: 1.45; -webkit-line-clamp: 2; }
  .packages .tour-card-body > strong { margin-top: 3px; font-size: .94rem; }
  .packages .tour-detail-trigger { min-height: 44px; border-radius: 8px; font-size: .8rem; }
  .packages .tour-arrows { inset: 50% 5px auto; transform: translateY(-50%); gap: 0; }
  .packages .tour-arrow { width: 34px; height: 38px; border-radius: 8px; background: #ffffffef; color: #345e50; font-size: 1.15rem; }
  #contact.section { padding-block: 16px; }
  #contact .contactbox { padding: 16px; border-radius: 14px !important; }
  #contact .kicker { font-size: .6rem; letter-spacing: .1em; }
  #contact h2 { font-size: 1.55rem; line-height: 1.15; letter-spacing: .025em; margin: 7px 0; }
  #contact .contactbox p { margin: 0; font-size: .86rem; line-height: 1.45; }
  #contact .form { margin-top: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: start; }
  #contact .contact-field { grid-column: span 2; }
  #contact .contact-tour { grid-column: span 3; }
  #contact .contact-guests { grid-column: span 1; }
  #contact .contact-field, #contact .date-row > div { gap: 4px; }
  #contact .contact-field-wide { grid-column: 1 / -1; }
  #contact .date-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #contact .form label { font-size: .76rem; line-height: 1.3; }
  #contact .form input, #contact .form select, #contact .form textarea { min-width: 0; width: 100%; min-height: 44px; padding: 9px 10px; border-radius: 8px; font-size: 16px; line-height: 1.3; }
  #contact .form input[type=date] { appearance: none; }
  #contact .form textarea { height: 72px; min-height: 72px; resize: vertical; }
  #contact .form .pill { min-height: 44px; padding: 10px 14px; border-radius: 8px; font-size: .88rem; }
  #contact .status { min-height: 0; font-size: .82rem; line-height: 1.5; }
  #contact .status:empty { display: none; }
  .contact-float { top: auto; bottom: max(10px, env(safe-area-inset-bottom)); right: 10px; transform: none; flex-direction: row; gap: 5px; padding: 5px; border-radius: 30px; background: #ffffffe8; box-shadow: 0 4px 18px #17382d24; }
  .contact-float .float-btn { width: 36px !important; height: 36px !important; min-width: 36px; min-height: 36px; flex-basis: 36px; }
  body.tour-modal-open .contact-float, body.blog-modal-open .contact-float { visibility: hidden; }
  .site-footer { margin-top: 8px; padding-bottom: 76px; }
}
