/* ================================
   WineWayfarer — styles.css (clean)
   Focus: fix repeating/multi-row carousels
   ================================ */

:root{
  --wine:#7B1E3D; /* burgundy */
  --gold:#F4C95D;
  --forest:#1E5631;
  --ink:#111;
  --charcoal:#222;
  --smoke:#666;
  --mist:#9aa0a6;
  --paper:#fff;
  --ivory:#FFF8F0;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:'Poppins',system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial,sans-serif;
  color:var(--charcoal);background:var(--ivory);line-height:1.6;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}
img{max-width:100%;display:block;border-radius:1rem}
a{color:var(--wine);text-decoration:none}
a:hover{text-decoration:underline}
.container{width:min(1120px, 92%);margin-inline:auto}
.muted{color:var(--smoke)}

/* ================= Header ================ */
.site-header{position:sticky;top:0;background:rgba(255,255,255,.9);backdrop-filter:saturate(140%) blur(10px);border-bottom:1px solid #eee;z-index:10}
.nav{display:flex;align-items:center;justify-content:space-between;padding:.75rem 0}
.brand{font-weight:700;font-size:1.25rem;color:var(--wine)}
.menu{display:flex;gap:1rem;align-items:center}
.menu a{padding:.5rem .75rem;border-radius:.75rem}
.menu .btn{background:var(--wine);color:#fff}
.menu .btn:hover{filter:brightness(.95)}
.nav-toggle{display:none;font-size:1.5rem;background:none;border:0}

@media (max-width: 820px){
  .menu{position:fixed;inset:64px 0 auto auto;background:var(--paper);padding:1rem 1.25rem;box-shadow:0 20px 40px rgba(0,0,0,.08);border-radius:1.25rem;margin:0 .75rem;display:none;flex-direction:column;align-items:flex-start}
  .menu.open{display:flex}
  .nav-toggle{display:inline-flex}
}

/* ================= Hero ================ */
.hero{
  background:linear-gradient(to bottom, rgba(123,30,61,.45), rgba(0,0,0,.5)), center/cover no-repeat;
  color:#fff;min-height:58vh;display:grid;place-items:center;text-align:center
}
.hero-inner{padding:4rem 0}
.hero h1{font-size:clamp(2rem, 3.2vw + 1rem, 3.25rem);line-height:1.1;margin:.25rem 0}
.hero p{opacity:.95;margin:.25rem 0 1rem}

/* ================= Sections ================ */
.section{padding:3.5rem 0}
.section.alt{background:var(--paper)}
.section-head h2{font-size:clamp(1.5rem,1.5vw+1rem,2rem);margin:0}
.section-head p{color:var(--smoke);margin:.25rem 0 1.25rem}

/* ================= Cards & Strips (Carousel) ================ */
/* Hardening: single row, no wrap, horizontal scroll, snap items */
.strip{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;                 /* <— crucial: never wrap into new rows */
  gap:1rem;
  overflow-x:auto;
  overflow-y:hidden;
  padding:.25rem;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch; /* smooth on iOS */
}
.strip > *{scroll-snap-align:start;}

/* Each card keeps its width and does not stretch; consistent size across viewports */
.card{
  flex:0 0 auto;                    /* <— crucial: prevent flex-grow shrink weirdness */
  background:#fff;
  border-radius:1.25rem;
  box-shadow:0 8px 26px rgba(0,0,0,.06);
  padding:1rem;
  min-width:clamp(280px, 40vw, 420px);
}
.card .price{font-weight:700;color:var(--forest)}
.card .pill{display:inline-block;background:var(--gold);color:#6b4b00;padding:.25rem .6rem;border-radius:999px;font-weight:600}
.card-cta{display:flex;align-items:center;justify-content:space-between;margin-top:.5rem}
.card .muted{color:var(--smoke)}

/* Tours: image crop (16:10), linked image + title */
.card.tour{padding:0}
.card.tour .thumb{aspect-ratio:16/10;overflow:hidden;border-top-left-radius:1.25rem;border-top-right-radius:1.25rem}
.card.tour .thumb-link{display:block;height:100%}
.card.tour .thumb-link img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease;border-radius:0}
.card.tour .thumb-link:hover img{transform:scale(1.02)}
.card.tour .card-body{padding:1rem}
/* .card.tour .title-link{color:inherit;text-decoration:none} */
.card.tour .title-link{text-decoration:none}
.card.tour .title-link:hover{text-decoration:underline}

/* Offers & Reviews width tweaks */
.offer{border-left:6px solid var(--gold)}
.review{min-width:clamp(380px, 70vw, 520px)}
.stars{letter-spacing:2px}
.star{color:#ddd}
.star.filled{color:var(--gold)}

/* Scrollbar (nice to have) */
.strip::-webkit-scrollbar{height:.5rem}
.strip::-webkit-scrollbar-thumb{background:#ddd;border-radius:999px}

/* ================= Forms ================ */
.form{background:#fff;padding:1.25rem;border-radius:1.25rem;box-shadow:0 10px 30px rgba(0,0,0,.06)}
.grid{display:grid;grid-template-columns:repeat(6,1fr);gap:1rem}
.field{grid-column: span 3}
.field.full{grid-column:1/-1}
.field.hp{display:none}
label{display:block;font-weight:600;margin-bottom:.35rem}
input,select,textarea{width:100%;padding:.75rem;border:1px solid #e5e7eb;border-radius:.85rem;background:#fff}
input:focus,select:focus,textarea:focus{outline:3px solid #ead0d9;border-color:#d3c1c7}
.form-actions{display:flex;align-items:center;gap:1rem;margin-top:.75rem}
#formStatus{min-height:1.5rem;color:var(--wine)}

/* Responsive form + review card */
@media (max-width: 820px){
  .grid{grid-template-columns:repeat(2,1fr)}
  .field{grid-column: span 2}
  .review{min-width:min(380px, 92%)}
}

/* ================= Buttons ================ */
.btn{display:inline-flex;align-items:center;justify-content:center;padding:.6rem 1rem;border-radius:.9rem;background:var(--wine);color:#fff;font-weight:700;border:2px solid transparent;transition:.15s}
.btn:hover{filter:brightness(.95);text-decoration:none}
.btn-lg{padding:.9rem 1.25rem;font-size:1.05rem}

/* ================= Accordion ================ */
.accordion{margin-top:1rem}
.accordion summary{list-style:none;cursor:pointer}
.accordion summary::-webkit-details-marker{display:none}
.accordion summary.btn{display:inline-flex}
.accordion[open] summary.btn{filter:brightness(.95)}
.accordion .accordion-content{margin-top:1rem}

/* ================= Lists with icons ================ */
.list{list-style:none;margin:0;padding:0}
.list li{position:relative;padding-left:1.4rem;margin:.4rem 0}
.list.ticks li::before{content:'✓';position:absolute;left:0;color:var(--forest);font-weight:700}
.list.crosses li::before{content:'✕';position:absolute;left:0;color:var(--wine);font-weight:700}
.list.pluses li::before{content:'+';position:absolute;left:0;color:var(--gold);font-weight:700}
.extras .price{font-weight:600;margin-left:.25rem;color:var(--charcoal)}
.columns-3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
@media (max-width: 820px){.columns-3{grid-template-columns:1fr}}

/* ================= Footer ================ */
.site-footer{background:linear-gradient(135deg, var(--wine), #54152a);color:#fff;padding:2.25rem 0}
.footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2rem}
.footer-grid h4{margin:.25rem 0 1rem}
.footer-grid a{color:#fff}
.footer-grid ul{list-style:none;margin:0;padding:0}
.footer-grid li{margin:.45rem 0}
.socials{display:flex;gap:.75rem}
.ico{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;background:rgba(255,255,255,.1);border-radius:999px}
.ico:hover{background:rgba(255,255,255,.2)}
@media (max-width: 900px){.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width: 520px){.footer-grid{grid-template-columns:1fr}}

/* ================= Utility (optional) ================ */
/* Uncomment to quickly see if CSS loaded correctly */
/* body::before{content:'CSS OK';position:fixed;bottom:.5rem;right:.75rem;background:#111;color:#fff;font:12px/1 monospace;padding:.2rem .35rem;border-radius:.25rem;opacity:.2;z-index:9999} */

/* === Carousel hardening (keep at end) === */
.section .strip.auto-scroll{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;            /* critical */
  gap:1rem;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.section .strip.auto-scroll > *{ scroll-snap-align:start; }

.section .strip.auto-scroll .card{
  flex:0 0 auto;               /* critical */
  width:clamp(280px, 40vw, 520px);
}
.card.tour .thumb{ aspect-ratio:16/10; overflow:hidden; }
.card.tour .thumb-link{ display:block; height:100%; }
.card.tour .thumb-link img{ width:100%; height:100%; object-fit:cover; border-radius:0; }

/* Generic card – no hard min width here */
.card{
  background:#fff;
  border-radius:1.25rem;
  box-shadow:0 8px 26px rgba(0,0,0,.06);
  padding:1rem;
  /* REMOVE this: min-width: min(320px, 85%); */
  min-width: auto;
}

/* Country filter chips */
.country-filter{display:flex;flex-wrap:wrap;gap:.5rem  .5rem;margin:0 0 1rem}
.chip{
  display:inline-flex;align-items:center;gap:.35rem;
  padding:.4rem .75rem;border-radius:999px;background:#f3f4f6;color:#374151;
  border:1px solid #e5e7eb; font-weight:600;
}
.chip:hover{text-decoration:none;filter:brightness(.98)}
.chip.active{background:var(--wine);color:#fff;border-color:var(--wine)}
.chip.disabled{opacity:.5;pointer-events:none}

/* ================= Country picker (buttons + separators) ================ */
.country-filter{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.5rem .5rem;
  margin:0 0 1rem;
}

/* Pill buttons */
.country-filter .chip{
  display:inline-flex;
  align-items:center;
  padding:.45rem .85rem;
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:#f7f7f8;
  color:#374151;
  font-weight:600;
  line-height:1;
  text-decoration:none;
  transition:background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.country-filter .chip:hover{ background:#f0f1f3; text-decoration:none; }
.country-filter .chip:focus-visible{ outline:3px solid var(--gold); outline-offset:2px; }
.country-filter .chip.disabled{ opacity:.5; pointer-events:none; }

/* Active (selected) state: strong contrast + checkmark */
.country-filter .chip.active,
.country-filter .chip[aria-selected="true"]{
  background:var(--wine);
  color:#fff;
  border-color:var(--wine);
  box-shadow:0 0 0 2px rgba(123,30,61,.18) inset;
}
.country-filter .chip.active::after,
.country-filter .chip[aria-selected="true"]::after{
  content:"✓";
  font-weight:800;
  margin-left:.5rem;
  opacity:.95;
}

/* Visual separators: add “ | ” before every chip except the first */
.country-filter.separated .chip:not(:first-child)::before{
  content:"|";
  color:#c7ccd3;               /* subtle grey divider */
  margin:0 .5rem 0 0;
  font-weight:400;
}

/* Compact variant (optional) */
.country-filter.compact .chip{
  padding:.35rem .7rem;
  font-weight:600;
}


