/* Trodly homepage redesign (index-v2.php / /preview-home). Lightweight, mobile-first.
   No Bootstrap / slick. Brand tokens match the live site so it reads as "fresher, not foreign". */

@font-face{font-family:'Roboto';src:url('fonts/Roboto-Regular-webfont.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Roboto';src:url('fonts/Roboto-Medium-webfont.woff') format('woff');font-weight:500;font-style:normal;font-display:swap}

:root{
	--teal:#33cc99; --teal-dark:#2db88a; --text:#232323; --muted:#6b6b6b;
	--line:#e5e5e5; --surface:#f6f7f8; --white:#fff; --radius:10px;
	--maxw:1180px; --shadow:0 1px 3px rgba(0,0,0,.08),0 4px 14px rgba(0,0,0,.05);
}
*{box-sizing:border-box}
body.v2h{margin:0;font-family:'Roboto',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;color:var(--text);background:var(--white);line-height:1.5;-webkit-font-smoothing:antialiased}
body.v2h img{max-width:100%;display:block}
body.v2h a{color:inherit;text-decoration:none}
h1,h2,h3{margin:0;font-weight:500;line-height:1.25}

/* ---- header ---- */
.v2h-header{position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:.9rem;padding:.6rem 1rem;background:var(--white);border-bottom:1px solid var(--line)}
.v2h-logo{display:flex;align-items:center}
.v2h-logo img{height:50px;width:auto;display:block}
.v2h-search{position:relative;flex:1;max-width:460px}
.v2h-search input{width:100%;height:40px;padding:0 .9rem;border:1px solid var(--line);border-radius:999px;font-size:.95rem;outline:none;background:var(--surface)}
.v2h-search input:focus{border-color:var(--teal);background:#fff}
#v2h-suggest{position:absolute;top:46px;left:0;right:0;margin:0;padding:.25rem 0;list-style:none;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);max-height:340px;overflow:auto;z-index:60}
#v2h-suggest li{padding:.55rem .9rem;cursor:pointer;font-size:.92rem}
#v2h-suggest li:hover,#v2h-suggest li[aria-selected=true]{background:var(--surface)}
#v2h-suggest .v2h-sug__cat{color:var(--muted);font-size:.75rem;margin-left:.4rem}
.v2h-destinations{position:relative}
.v2h-destinations>summary{list-style:none;cursor:pointer;padding:.5rem .6rem;font-size:.92rem;white-space:nowrap}
.v2h-destinations>summary::-webkit-details-marker{display:none}
.v2h-destinations>summary::after{content:" \25BE";color:var(--muted)}
.v2h-destmenu{position:absolute;top:100%;right:0;display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:.4rem 1.2rem;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:1rem 1.2rem;min-width:340px;z-index:60}
.v2h-destcol h3{font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:.35rem}
.v2h-destcol a{display:block;font-size:.9rem;padding:.18rem 0;color:var(--text)}
.v2h-destcol a:hover{color:var(--teal-dark)}

/* header tools (reused headerToolsV2 output) */
.v2-tools{display:flex;align-items:center;gap:.4rem;margin-left:auto}
.v2-tools details{position:relative}
.v2-tools summary{list-style:none;cursor:pointer;padding:.45rem .55rem;font-size:.9rem;white-space:nowrap;border-radius:8px}
.v2-tools summary::-webkit-details-marker{display:none}
.v2-tools details>ul{position:absolute;top:100%;right:0;margin:.2rem 0 0;padding:.3rem;list-style:none;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);min-width:170px;z-index:60}
.v2-tools details>ul li{margin:0}
.v2-tools details>ul a,.v2-tools details>ul button{display:block;width:100%;text-align:left;background:none;border:0;padding:.5rem .6rem;font:inherit;color:var(--text);cursor:pointer;border-radius:6px}
.v2-tools details>ul a:hover,.v2-tools details>ul button:hover{background:var(--surface)}
.v2-cart{padding:.45rem .6rem;font-size:.9rem}
.v2-login{background:var(--teal);color:#fff;border:0;border-radius:8px;padding:.5rem .95rem;font:inherit;font-weight:500;cursor:pointer}
.v2-login:hover{background:var(--teal-dark)}

/* ---- hero (text-first) ---- */
.v2h-hero{background-size:cover;background-position:center;color:#fff}
.v2h-hero__inner{max-width:var(--maxw);margin:0 auto;padding:3.2rem 1.1rem 2.6rem}
.v2h-hero h1{font-size:clamp(1.5rem,4.5vw,2.5rem);max-width:16ch;text-wrap:balance;text-shadow:0 1px 12px rgba(0,0,0,.4)}
.v2h-hero p{margin:.7rem 0 1.1rem;font-size:clamp(.95rem,2.4vw,1.15rem);text-shadow:0 1px 10px rgba(0,0,0,.4)}
.v2h-herosearch{position:relative;display:flex;max-width:560px;background:#fff;border-radius:999px;padding:.35rem;box-shadow:var(--shadow)}
.v2h-herosearch__field{flex:1;display:flex;min-width:0}
.v2h-herosearch__field input{flex:1;border:0;outline:none;padding:0 1rem;font-size:1rem;color:var(--text);background:transparent;min-width:0}
.v2h-herosearch button{background:var(--teal);color:#fff;border:0;border-radius:999px;padding:.7rem 1.4rem;font:inherit;font-weight:500;cursor:pointer}
#v2h-hero-suggest{position:absolute;top:calc(100% + .4rem);left:0;right:0;margin:0;padding:.25rem 0;list-style:none;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);max-height:340px;overflow:auto;z-index:60;text-align:left}
#v2h-hero-suggest li{padding:.6rem 1rem;cursor:pointer;font-size:.95rem;color:var(--text)}
#v2h-hero-suggest li:hover,#v2h-hero-suggest li[aria-selected=true]{background:var(--surface)}
#v2h-hero-suggest .v2h-sug__cat{color:var(--muted);font-size:.75rem;margin-left:.4rem}
.v2h-herosearch button:hover{background:var(--teal-dark)}
.v2h-usp{display:flex;flex-wrap:wrap;gap:.4rem 1.4rem;margin:1.1rem 0 0;padding:0;list-style:none;font-size:.9rem}
.v2h-usp li{position:relative;padding-left:1.3rem;text-shadow:0 1px 8px rgba(0,0,0,.4)}
.v2h-usp li::before{content:"\2713";position:absolute;left:0;color:var(--teal);font-weight:700}

/* ---- sections ---- */
.v2h-sec{max-width:var(--maxw);margin:0 auto;padding:1.8rem 1.1rem}
.v2h-sec__head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:1rem;gap:1rem}
.v2h-sec__head h2{font-size:clamp(1.15rem,3vw,1.5rem)}
.v2h-seeall{color:var(--teal-dark);font-size:.9rem;font-weight:500;white-space:nowrap}

/* chips */
.v2h-chiprow{display:flex;gap:.55rem;overflow-x:auto;padding-bottom:.4rem;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.v2h-chip{flex:0 0 auto;border:1px solid var(--line);border-radius:999px;padding:.5rem .95rem;font-size:.88rem;background:var(--white);white-space:nowrap;transition:.15s}
.v2h-chip:hover{border-color:var(--teal);color:var(--teal-dark)}

/* rails (native scroll-snap) */
.v2h-rail{position:relative}
.v2h-rail__track{display:flex;gap:.9rem;overflow-x:auto;padding:.2rem .1rem 1rem;margin:0;list-style:none;scroll-snap-type:x mandatory;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.v2h-card{flex:0 0 78%;max-width:260px;scroll-snap-align:start}
@media(min-width:600px){.v2h-card{flex-basis:260px}}
.v2h-card a{display:block;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;height:100%;transition:.15s}
.v2h-card a:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.v2h-card__media{display:block;aspect-ratio:4/3;background:var(--surface)}
.v2h-card__media img{width:100%;height:100%;object-fit:cover}
.v2h-card__body{display:block;padding:.7rem .8rem .85rem}
.v2h-card__body strong{display:block;font-weight:500;font-size:.98rem;line-height:1.3;max-height:2.6em;overflow:hidden}
.v2h-card__loc{display:block;color:var(--muted);font-size:.82rem;margin-top:.25rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2h-card__price{display:block;color:var(--text);font-weight:500;font-size:.9rem;margin-top:.35rem}
.v2h-rail__arrow{display:none;position:absolute;top:38%;transform:translateY(-50%);z-index:5;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:#fff;box-shadow:var(--shadow);font-size:1.4rem;line-height:1;color:var(--text);cursor:pointer}
.v2h-rail__arrow--l{left:-8px}.v2h-rail__arrow--r{right:-8px}
@media(min-width:900px){.v2h-rail:hover .v2h-rail__arrow{display:block}}

/* explore by country */
.v2h-countries{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1.2rem}
.v2h-country h3{font-size:1rem;margin-bottom:.5rem}
.v2h-country h3 a:hover{color:var(--teal-dark)}
.v2h-country ul{list-style:none;margin:0;padding:0}
.v2h-country li a{display:block;color:var(--muted);font-size:.9rem;padding:.22rem 0}
.v2h-country li a:hover{color:var(--teal-dark)}

/* prose + faq */
.v2h-prose{color:#484848}
.v2h-prose p{font-size:.98rem;line-height:1.65;margin:0 0 .9rem;max-width:75ch}
.v2h-faq details{border-bottom:1px solid var(--line);padding:.9rem 0}
.v2h-faq summary{list-style:none;cursor:pointer;font-weight:500;display:flex;justify-content:space-between;align-items:center;gap:1rem}
.v2h-faq summary::-webkit-details-marker{display:none}
.v2h-faq summary::after{content:"+";color:var(--teal);font-weight:700}
.v2h-faq details[open] summary::after{content:"\2212"}
.v2h-faq details p{margin:.6rem 0 0;color:#484848;font-size:.94rem;line-height:1.6}

/* ---- footer (reused footer-v2 markup) ---- */
.v2-footer{background:var(--surface);border-top:1px solid var(--line);margin-top:1.5rem}
.v2-footer__grid{max-width:var(--maxw);margin:0 auto;padding:2rem 1.1rem 1rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1.4rem}
.v2-footer__grid h3{font-size:.95rem;margin-bottom:.6rem}
.v2-footer__grid a{display:block;color:var(--muted);font-size:.9rem;padding:.2rem 0}
.v2-footer__grid a:hover{color:var(--teal-dark)}
.v2-news{max-width:var(--maxw);margin:0 auto;padding:.5rem 1.1rem 1.5rem}
.v2-news label{display:block;font-size:.95rem;font-weight:500;margin-bottom:.5rem}
.v2-news>div{display:flex;gap:.5rem;max-width:460px}
.v2-news input{flex:1;height:42px;padding:0 .9rem;border:1px solid var(--line);border-radius:8px;font-size:.95rem;min-width:0}
.v2-btn{cursor:pointer;font:inherit;border:0;border-radius:8px;padding:.6rem 1.1rem}
.v2-btn--solid{background:var(--teal);color:#fff;font-weight:500}
.v2-btn--solid:hover{background:var(--teal-dark)}
.v2-news__msg{font-size:.85rem;margin:.5rem 0 0;color:var(--muted)}
.v2-footer__legal{max-width:var(--maxw);margin:0 auto;padding:1rem 1.1rem 2rem;border-top:1px solid var(--line);color:var(--muted);font-size:.85rem}
.v2-footer__legal a{color:var(--muted)}.v2-footer__legal a:hover{color:var(--teal-dark)}

/* destination overlay cards (Popular destinations rail) */
.v2h-dcard{flex:0 0 62%;max-width:210px;scroll-snap-align:start}
@media(min-width:600px){.v2h-dcard{flex-basis:210px}}
.v2h-dcard a{position:relative;display:block;border-radius:var(--radius);overflow:hidden;aspect-ratio:3/4;background:var(--surface);transition:.15s}
.v2h-dcard a:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.v2h-dcard__media{position:absolute;inset:0}
.v2h-dcard__media img{width:100%;height:100%;object-fit:cover}
.v2h-dcard a::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 42%,rgba(0,0,0,.72))}
.v2h-dcard__cap{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:.8rem;color:#fff}
.v2h-dcard__cap strong{display:block;font-size:1.05rem;font-weight:500;line-height:1.2}
.v2h-dcard__cap span{display:block;font-size:.8rem;opacity:.92;margin-top:.15rem}

/* blog cards (reuse .v2h-card; allow a taller title) */
.v2h-bcard .v2h-card__body strong{max-height:3.9em}

/* search results grid (search.php) */
.v2h-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem;list-style:none;margin:0;padding:0}
.v2h-grid .v2h-card{flex:none;max-width:none;width:auto}
.v2h-empty{color:var(--muted);font-size:1rem}
.v2h-empty a{color:var(--teal-dark);font-weight:500}

/* mobile tweaks */
@media(max-width:640px){
	.v2h-search{order:3;flex-basis:100%;max-width:none}
	.v2h-header{flex-wrap:wrap;gap:.5rem .7rem}
	.v2h-destinations{display:none}
	.v2h-hero__inner{padding:2.4rem 1.1rem 2rem}
}
