/* --- 1. VARIABLES & RESET --- */
:root {
    /* Colors */
    --color-navy: #0F172A;     /* Deep Navy background */
    --color-navy-light: #1E293B;
    --color-gold: #C5A47E;     /* Luxury accent */
    --color-gold-hover: #D4B48C;
    --color-white: #FFFFFF;
    --color-light: #F8F9FA;    /* Off-white background */
    --color-text: #334155;     /* Body text */
    --color-text-light: #94A3B8;

    /* Fonts */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1240px;
    --header-height: 80px;
    --border-radius: 4px; /* Sharp/Small radius for elegance */
    
    /* Transitions */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- 2. TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-navy);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; }

p { font-family: var(--font-sans); color: var(--color-text); }

.overline {
    display: block;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.text-white { color: var(--color-white) !important; }
.text-white-dim { color: rgba(255,255,255,0.7) !important; }
.text-gold { color: var(--color-gold) !important; }
.text-center { text-align: center; }
.text-muted { color: var(--color-text-light); }

/* --- 3. UTILITIES & LAYOUT --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container--narrow { max-width: 800px; }

.section { padding: 100px 0; }
.section--bg-light { background-color: var(--color-light); }
.section--navy { background-color: var(--color-navy); color: var(--color-white); }

.grid {
    display: grid;
    gap: 40px;
}

/* --- 4. BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn--primary, .btn--gold {
    background-color: var(--color-gold);
    color: var(--color-white);
}
.btn--gold:hover { background-color: var(--color-gold-hover); }

.btn--outline-light {
    border-color: var(--color-white);
    color: var(--color-white);
}
.btn--outline-light:hover {
    background-color: var(--color-white);
    color: var(--color-navy);
}

.btn--outline-gold {
    border-color: var(--color-gold);
    color: var(--color-gold);
}
.btn--outline-gold:hover {
    background-color: var(--color-gold);
    color: var(--color-navy);
}

.btn-link {
    color: var(--color-navy);
    text-decoration: none;
    border-bottom: 1px solid var(--color-gold);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    padding-bottom: 2px;
}

.full-width { width: 100%; }

/* --- 5. NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar__logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-navy);
    text-decoration: none;
    letter-spacing: 1px;
}

.navbar__links { display: flex; align-items: center; gap: 30px; }

.nav-link {
    text-decoration: none;
    color: var(--color-navy);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}
.nav-link:hover { color: var(--color-gold); }

.navbar__toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* --- 6. HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero__title {
    color: var(--color-white) !important;
}

.hero__subtitle {
    color: var(--color-white) !important;
}

.hero__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.6));
}

.hero__content { position: relative; z-index: 1; max-width: 800px; }
.hero__subtitle { font-size: 1.25rem; margin: 1.5rem 0 2.5rem; opacity: 0.9; }
.hero__actions { display: flex; gap: 20px; justify-content: center; }

/* --- 7. CONCEPT (Parallax) --- */
.section--concept {
    position: relative;
    height: 90vh; /* Mobile 100vh check later */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Use a texture or subtle sea image here */
    background-image: url('../assets/img/concept-bg.webp'); 
    background-color: #FAF9F6; /* Fallback */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Simple parallax */
    opacity: 0.30; /* Subtle texture */
    z-index: -1;
}

.concept__text {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    line-height: 1.5;
    color: var(--color-navy);
    max-width: 700px;
    margin: 2rem auto;
}

.signature-badge {
    margin-top: 3rem;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
}

/* --- 8. YACHT SECTION (Split) --- */
.grid--yacht {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
}

.yacht__main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.yacht__thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.yacht__thumbnails img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border-radius: var(--border-radius);
    opacity: 0.7;
    transition: var(--transition);
}
.yacht__thumbnails img:hover { opacity: 1; }

.yacht__info { position: relative; }

/* TABS */
.tabs { margin: 2rem 0; }
.tabs__nav {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.tabs__btn {
    background: none;
    border: none;
    padding-bottom: 10px;
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    color: var(--color-text-light);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}
.tabs__btn.active {
    color: var(--color-navy);
    border-bottom-color: var(--color-gold);
}

.tab-panel { display: none; animation: fadeIn 0.5s; }
.tab-panel.active { display: block; }
.specs-list { list-style: none; }
.specs-list li { margin-bottom: 10px; border-bottom: 1px solid #eee; padding-bottom: 5px; }

/* EXPERIENCE RAIL (Sticky Icons) */
.experience-rail {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.features-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-navy);
    background: var(--color-light);
    padding: 8px 12px;
    border-radius: 4px;
}
.feature-item i { color: var(--color-gold); font-size: 1.2rem; }

/* --- 9. ITINERARIES & CARDS --- */
.section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.region-switch {
    display: flex;
    gap: 10px;
    background: #eee;
    padding: 5px;
    border-radius: 50px;
}
.region-btn {
    border: none;
    background: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}
.region-btn.active { background: var(--color-white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

.grid--cards { grid-template-columns: repeat(3, 1fr); }

.card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.card__media { position: relative; height: 250px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__badge {
    position: absolute;
    top: 15px; right: 15px;
    background: var(--color-white);
    padding: 5px 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.card__content { padding: 30px; }
.card__title { font-size: 1.4rem; margin-bottom: 5px; }
.card__subtitle { font-size: 0.9rem; color: var(--color-text-light); margin-bottom: 15px; }
.card__highlights {
    list-style: none;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--color-text);
}
.card__highlights li { margin-bottom: 5px; }

/* --- 10. EXPERIENCES --- */
.tabs__nav--center { justify-content: center; }
.grid--experiences { grid-template-columns: repeat(4, 1fr); }
.exp-card { position: relative; height: 350px; border-radius: var(--border-radius); overflow: hidden; cursor: pointer; }
.exp-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.exp-card:hover img { transform: scale(1.05); }
.exp-card__overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--color-white);
}
.exp-card__title { color: var(--color-white); font-size: 1.2rem; }
.exp-card__tag { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--color-gold); }

/* --- 11. GASTRONOMY --- */
.grid--gastronomy { grid-template-columns: 1fr 1fr; align-items: center; }

.gastronomy__masonry {
    display: flex;
    gap: 20px;
}
.masonry-col { display: flex; flex-direction: column; gap: 20px; width: 50%; }
.masonry-col--down { margin-top: 40px; } /* Offset effect */
.gastronomy__masonry img { width: 100%; border-radius: var(--border-radius); }

.chef-quote {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--color-white-dim);
    margin: 30px 0;
    border-left: 2px solid var(--color-gold);
    padding-left: 20px;
}

/* Gastronomy Tabs Preview */
.tabs--gastronomy .tabs__nav {
  border-bottom-color: rgba(255,255,255,0.15);
}

.tabs--gastronomy .tabs__btn {
  color: rgba(255,255,255,0.6);
}

.tabs--gastronomy .tabs__btn.active {
  color: var(--color-white);
  border-bottom-color: var(--color-gold);
}

.menu-preview {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.menu-preview li {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.5;
}

.gastronomy-note {
  margin-top: 16px;
  font-size: 0.85rem;
  opacity: 0.75;
}


.menu-accordion { margin-top: 40px; }
.menu-item { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 15px 0; }
.menu-header { display: flex; justify-content: space-between; cursor: pointer; color: var(--color-gold); font-family: var(--font-serif); font-size: 1.2rem; }
.menu-content { display: none; padding-top: 10px; color: var(--color-white-dim); font-size: 0.9rem; }
.menu-content.active { display: block; }
.menu-content li { list-style: none; margin-bottom: 5px; }

/* --- 12. RATES & FAQ --- */
.grid--rates { grid-template-columns: repeat(3, 1fr); align-items: start; }

.rate-card {
    background: var(--color-white);
    padding: 40px;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
}
.rate-card--highlight { border-color: var(--color-gold); box-shadow: 0 10px 40px rgba(197, 164, 126, 0.1); transform: scale(1.05); z-index: 2; }
.badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--color-gold); color: var(--color-white);
    padding: 4px 12px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px;
}

.rate-price { font-size: 2.5rem; font-family: var(--font-serif); color: var(--color-navy); margin: 10px 0; }
.rate-period { font-size: 1rem; color: var(--color-text-light); }
.rate-features { list-style: none; margin: 30px 0; text-align: left; }
.rate-features li { margin-bottom: 10px; display: flex; gap: 10px; color: var(--color-text); }
.rate-features i { color: var(--color-gold); }

/* Accordion Common */
.accordion-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}
.accordion-item summary {
    padding: 20px 0;
    cursor: pointer;
    font-weight: 500;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after { content: '+'; font-size: 1.5rem; color: var(--color-gold); }
.accordion-item[open] summary::after { content: '-'; }
.accordion-content { padding-bottom: 20px; color: var(--color-text-light); }

/* --- 13. GALLERY & CONTACT --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.gallery-item { height: 300px; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.05); }

.grid--contact { grid-template-columns: 1fr 1fr; gap: 80px; }
.contact__form { background: var(--color-white); padding: 40px; border-radius: var(--border-radius); }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 8px; color: var(--color-navy); letter-spacing: 1px; }
input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-sans);
}
input:focus, textarea:focus { outline: none; border-color: var(--color-navy); }

/* --- 14. FOOTER --- */
.footer { background: var(--color-navy-light); color: rgba(255,255,255,0.4); padding: 40px 0; font-size: 0.9rem; }
.footer__container { display: flex; justify-content: space-between; }
.footer__legal a { color: inherit; margin-left: 20px; text-decoration: none; }

/* --- 15. ANIMATIONS --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-up { animation: fadeIn 1s ease-out forwards; }

/* --- 16. RESPONSIVE --- */
@media (max-width: 900px) {
    h1 { font-size: 2.5rem; }
    .grid--yacht, .grid--gastronomy, .grid--contact { grid-template-columns: 1fr; gap: 40px; }
    .grid--cards { grid-template-columns: 1fr; } /* Mobile cards stack */
    .grid--rates { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .rate-card--highlight { transform: none; order: -1; } /* Best value first on mobile */
    .section__header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .navbar__links { display: none; } /* Add JS hamburger menu later if needed */
    .navbar__toggle { display: block; }
    .grid--experiences { grid-template-columns: repeat(2, 1fr); }
    .hero__actions { flex-direction: column; width: 100%; padding: 0 20px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .navbar__links.is-open {
    display: flex;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px 22px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .navbar__links.is-open .nav-link,
  .navbar__links.is-open .navbar__btn {
    width: 100%;
  }
}

#chef-quote-container,
.chef-profile {
  display: none !important;
}

/* =========================================================
   UNIVERSAL MOBILE FIX (CSS ONLY)
   Paste at the END of styles.css
   ========================================================= */

/* Hard stop for sideways scrolling on phones */
html, body { width: 100%; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
img, video { max-width: 100%; height: auto; display: block; }

/* Better mobile viewport behavior */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* ---------------------------
   MOBILE: <= 900px
--------------------------- */
@media (max-width: 900px) {
  /* global spacing */
  .container { padding-left: 16px !important; padding-right: 16px !important; }
  .section { padding: 64px 0 !important; }

  /* HERO: avoid giant/tiny scaling issues */
  .hero { height: 100svh !important; min-height: 520px !important; }
  .hero__content { max-width: 100% !important; padding: 0 10px !important; }
  .hero__subtitle { font-size: 1.05rem !important; margin: 1rem 0 1.6rem !important; }
  .hero__actions { flex-direction: column !important; align-items: stretch !important; width: 100% !important; }
  .hero__actions .btn { width: 100% !important; justify-content: center !important; }

  /* CONCEPT: fixed 90vh is hurting mobile, make it natural height */
  .section--concept {
    height: auto !important;
    min-height: 0 !important;
    padding: 72px 0 !important;
  }

  /* PARALLAX: fixed background attachment breaks on iOS */
  .parallax-bg { background-attachment: scroll !important; }

  /* YACHT: stack cleanly, remove rigid heights */
  .grid--yacht { grid-template-columns: 1fr !important; gap: 22px !important; }
  .yacht__main-image img { height: auto !important; aspect-ratio: 4 / 3; }

  /* Yacht thumbnails: swipe row (no tiny cram) */
  .yacht__thumbnails {
    display: flex !important;
    gap: 10px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px !important;
  }
  .yacht__thumbnails img {
    flex: 0 0 auto !important;
    width: 92px !important;
    height: 68px !important;
    object-fit: cover !important;
    scroll-snap-align: start;
  }

  /* EXPERIENCES: 4 cols -> 1 col on phones (this fixes the “tiny cards” look) */
  .grid--experiences { grid-template-columns: 1fr !important; }
  .exp-card { height: 280px !important; }
  .exp-card__overlay { padding: 18px !important; }

  /* GALLERY: 2 cols is often still too tight, force 1 col for universal phones */
  .gallery-grid { grid-template-columns: 1fr !important; gap: 12px !important; }

  /* RATES: remove the mobile squeeze (max-width:400px) */
  .grid--rates { max-width: none !important; width: 100% !important; margin: 0 !important; }

  /* NAV dropdown (works even if your first media query hides .navbar__links) */
  .navbar__links.is-open {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: calc(100svh - var(--header-height)) !important;
    overflow: auto !important;
  }
}

/* ---------------------------
   EXTRA SMALL: <= 480px
--------------------------- */
@media (max-width: 480px) {
  h1 { font-size: 2.05rem !important; line-height: 1.08 !important; }
  h2 { font-size: 1.55rem !important; line-height: 1.12 !important; }
  .overline { letter-spacing: 2px !important; }

  .yacht__thumbnails img { width: 84px !important; height: 64px !important; }
}

/* =========================================================
   MOBILE FIX OVERRIDES (paste at very bottom)
   ========================================================= */

@media (max-width: 900px) {
  /* YACHT: keep main image above, thumbnails in rows */
  .yacht__main-image { margin-bottom: 14px !important; }
  .yacht__main-image img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    display: block;
  }

  /* Override the “single horizontal row” behavior and stack thumbnails */
  .yacht__thumbnails {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
    padding-bottom: 0 !important;
  }
  .yacht__thumbnails img {
    width: 100% !important;
    height: 78px !important;
    flex: initial !important;
  }

  /* TABS: prevent nav overflow and keep content inside */
  .tabs { width: 100% !important; overflow: hidden !important; }
  .tabs__nav {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px !important;
  }
  .tabs__btn { flex: 0 0 auto !important; white-space: nowrap !important; }
  .tabs__content { width: 100% !important; overflow: hidden !important; }
  .tab-panel { width: 100% !important; }

  /* GALLERY: 2 columns on mobile */
  .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
}

/* Lightbox (popup image) styles */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0,0,0,.78);
  z-index: 9999;
  padding: 18px;
}
.lightbox.is-open { display: grid; }
.lightbox__img {
  max-width: min(96vw, 980px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 14px;
}
.lightbox__close {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255,255,255,.92);
  font-size: 22px;
  line-height: 44px;
}


/* =========================================================
   TAB TRACK + MOBILE TABS UX (Experiences + Gastronomy)
   Paste at END of styles.css
   ========================================================= */

@media (max-width: 900px) {
  /* Make ALL tab rails scroll nicely on mobile */
  .tabs__nav,
  #experience-tabs {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 10px !important;
    padding-bottom: 10px !important;
    scrollbar-width: none; /* Firefox */
  }
  .tabs__nav::-webkit-scrollbar,
  #experience-tabs::-webkit-scrollbar {
    display: none; /* iOS/Chrome */
  }

  /* Keep underline (track) visible and not “broken” while scrolling */
  .tabs__nav,
  #experience-tabs {
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  /* Experiences uses dark text, so keep its border light-grey instead */
  #experience-tabs {
    border-bottom-color: rgba(0,0,0,0.12) !important;
    justify-content: flex-start !important; /* better on mobile than center */
  }

  /* Buttons should not shrink or wrap */
  .tabs__btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 8px 6px 12px !important;
  }

  /* Ensure tab content never spills outside */
  .tabs__content { width: 100% !important; overflow: hidden !important; }
  .tab-panel { width: 100% !important; }
}

@media (max-width: 900px) {
  .grid--gastronomy { grid-template-columns: 1fr !important; gap: 22px !important; }

  /* Make the masonry look clean on phones */
  .gastronomy__masonry { gap: 12px !important; }
  .masonry-col { gap: 12px !important; }
  .masonry-col--down { margin-top: 0 !important; } /* remove offset on mobile */
}

/* =========================================================
   GASTRONOMY MOBILE: REAL MASONRY + CLEAN TABS
   Paste at END of styles.css (and remove previous gastronomy patch)
   ========================================================= */

@media (max-width: 900px) {
  /* Section layout */
  .grid--gastronomy{
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    align-items: start !important;
  }

  /* Make masonry a real 2-col grid on mobile */
  .gastronomy__masonry{
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
  }

  /* Flatten the two column wrappers so images become grid items */
  .gastronomy__masonry .masonry-col{
    display: contents !important;
    width: auto !important;
    gap: 0 !important;
  }
  .gastronomy__masonry .masonry-col--down{
    margin-top: 0 !important; /* grid handles the masonry look */
  }

  /* Default tile */
  .gastronomy__masonry img{
    width: 100% !important;
    height: 120px !important;
    object-fit: cover !important;
    border-radius: var(--border-radius) !important;
    display: block !important;
  }

  /* Masonry vibe: a couple taller tiles */
  .gastronomy__masonry img:nth-of-type(1),
  .gastronomy__masonry img:nth-of-type(4){
    height: 170px !important;
  }

  /* Tabs track and mobile swipe (gastronomy only) */
  .tabs--gastronomy .tabs__nav{
    justify-content: flex-start !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 10px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(255,255,255,0.18) !important;
    scrollbar-width: none;
  }
  .tabs--gastronomy .tabs__nav::-webkit-scrollbar{ display:none; }

  .tabs--gastronomy .tabs__btn{
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    color: rgba(255,255,255,0.75) !important;
    border-bottom-color: transparent !important;
  }
  .tabs--gastronomy .tabs__btn.active{
    color: #fff !important;
    border-bottom-color: var(--color-gold) !important;
  }

  /* Keep tab content inside */
  .tabs--gastronomy .tabs__content,
  .tabs--gastronomy .tab-panel{
    width: 100% !important;
    overflow: hidden !important;
  }
}

/* Smaller phones: slightly smaller tiles */
@media (max-width: 420px) {
  .gastronomy__masonry img{ height: 112px !important; }
  .gastronomy__masonry img:nth-of-type(1),
  .gastronomy__masonry img:nth-of-type(4){ height: 160px !important; }
}

/* =========================================================
   GASTRONOMY: stop overflow + make tabs rail scrollable
   Paste at END of styles.css
   ========================================================= */

@media (max-width: 900px) {
  /* 1) Hard stop any horizontal overflow inside gastronomy section */
  #gastronomy,
  .section--gastronomy,
  .grid--gastronomy,
  .tabs--gastronomy,
  .tabs--gastronomy * {
    max-width: 100% !important;
  }

  /* Critical: allow grid children to shrink instead of forcing overflow */
  .grid--gastronomy > * { min-width: 0 !important; }

  /* Any long text should wrap instead of pushing width */
  .tabs--gastronomy,
  .tabs--gastronomy .tab-panel,
  .tabs--gastronomy p,
  .tabs--gastronomy li {
    overflow-wrap: anywhere !important;
    word-break: break-word;
  }

  /* 2) Tabs rail: force single row + enable horizontal scroll */
  .tabs--gastronomy .tabs__nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;

    gap: 10px !important;
    padding: 0 16px 10px 16px !important; /* left and right padding so last tab is reachable */
    margin: 0 -16px !important;          /* make the rail full-bleed inside container */
    scroll-padding-left: 16px;
    scroll-padding-right: 16px;

    border-bottom: 1px solid rgba(255,255,255,0.18) !important;
    scrollbar-width: none;
  }
  .tabs--gastronomy .tabs__nav::-webkit-scrollbar { display: none; }

  .tabs--gastronomy .tabs__btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  /* Keep content box from overflowing due to padding/width combos */
  .tabs--gastronomy .tabs__content {
    width: 100% !important;
    overflow: hidden !important;
  }
  .tabs--gastronomy .tab-panel {
    width: 100% !important;
    overflow: hidden !important;
  }

  /* Safety: if any inner element has fixed width, force it to scale down */
  .tabs--gastronomy iframe,
  .tabs--gastronomy table,
  .tabs--gastronomy pre,
  .tabs--gastronomy code {
    max-width: 100% !important;
  }
}
