/* =========================================================
   daybreak.places.css
   Styles for the modern Places landing (/places2).
   Builds on the daybreak design tokens defined in daybreak.home.css
   and extends the "daylight" theme.
   Scoped under .daybreak.places2 so this file never bleeds
   into other daybreak pages.
   ========================================================= */

/* Theme alias: daylight is the new public name for the daybreak palette. */
.daybreak.daylight{
    --paper:        #FBF9F2;
    --tape-yellow:  rgba(255,212,94,.78);
    --tape-pink:    rgba(255,91,133,.55);
    --tape-blue:    rgba(74,144,226,.45);
}

/* Route-scoped reveal hook (avoid Foundation's global .reveal class). */
.daybreak.places2 .px-reveal{opacity:0;transform:translateY(20px);transition:opacity .8s var(--ease), transform .8s var(--ease)}
.daybreak.places2 .px-reveal.px-in{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){
    .daybreak.places2 .px-reveal{opacity:1;transform:none;transition:none}
}

/* =========================================================
   Hero
   ========================================================= */
.daybreak.places2 .px-hero{
    position:relative;padding:68px 0 72px;overflow:hidden;
    background:
        radial-gradient(900px 500px at 88% -10%, rgba(74,144,226,.18), transparent 60%),
        radial-gradient(700px 400px at -5% 35%, rgba(255,91,133,.14), transparent 60%),
        radial-gradient(540px 320px at 50% 110%, rgba(245,184,58,.14), transparent 60%);
}
.daybreak.places2 .px-hero::before{
    content:"";position:absolute;inset:0;
    background-image:radial-gradient(rgba(17,22,42,.045) 1px, transparent 1px);
    background-size:22px 22px;
    pointer-events:none;
    mask-image:linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,0) 80%);
    -webkit-mask-image:linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,0) 80%);
}
.daybreak.places2 .px-hero-wrap{
    position:relative;z-index:1;
    display:grid;grid-template-columns:1.3fr .7fr;gap:44px;align-items:start;
}
.daybreak.places2 .px-hero-text h1{
    font-size:clamp(40px,5.4vw,72px);font-weight:600;
    margin:12px 0 14px;line-height:1.05;
}
.daybreak.places2 .px-hero-text h1 .line{display:block}
.daybreak.places2 .px-hero-deck{
    font-size:clamp(18px,1.95vw,21px);line-height:1.45;color:var(--ink-soft);
    max-width:640px;margin-bottom:22px;
}

@media (max-width:1080px){
    .daybreak.places2 .px-hero-wrap{grid-template-columns:1fr;gap:30px}
    .daybreak.places2 .px-hero-art{max-width:520px;margin:0 auto}
}
@media (max-width:760px){
    .daybreak.places2 .px-hero{padding:42px 0 52px}
}

/* =========================================================
   Country finder bar (hero)
   ========================================================= */
.daybreak.places2 .px-finder{margin-top:14px;position:relative;z-index:2}
.daybreak.places2 .px-finder-bar{
    display:flex;align-items:center;gap:10px;
    background:#fff;border:1.5px solid var(--line);
    border-radius:18px;padding:8px 8px 8px 22px;
    box-shadow:var(--shadow-md);
    transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.daybreak.places2 .px-finder-bar:focus-within{
    border-color:var(--blue);
    box-shadow:0 12px 36px rgba(74,144,226,.20), 0 2px 6px rgba(17,22,42,.04);
    transform:translateY(-1px);
}
.daybreak.places2 .px-finder-icon{color:var(--ink-mute);font-size:18px;flex:0 0 auto}
.daybreak.places2 #px-finder-input{
    flex:1 1 auto;border:0;outline:0;background:transparent;
    font-family:inherit;font-size:18px;color:var(--ink);
    padding:14px 8px;min-width:0;margin-bottom:0px !important;box-shadow:none;
}
.daybreak.places2 #px-finder-input::placeholder{color:var(--ink-mute)}
.daybreak.places2 .px-finder-clear{
    width:34px;height:34px;border-radius:50%;
    background:var(--bg);color:var(--ink-soft);
    display:grid;place-items:center;flex:0 0 auto;
    transition:background .2s ease, color .2s ease;
}
.daybreak.places2 .px-finder-clear:hover{background:var(--line);color:var(--ink)}

.daybreak.places2 .px-finder-suggestions{
    margin-top:14px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;
}
.daybreak.places2 .px-finder-suggestions-label{
    font-family:'Caveat',cursive;color:var(--ink-mute);font-size:18px;margin-right:4px;
}
.daybreak.places2 .px-chip{
    display:inline-flex;align-items:center;gap:8px;
    padding:8px 14px;border-radius:999px;
    background:#fff;border:1px solid var(--line);
    font-size:13.5px;font-weight:600;color:var(--ink-soft);
    box-shadow:var(--shadow-sm);cursor:pointer;
    transition:transform .2s var(--ease), border-color .2s ease, color .2s ease, background .2s ease;
}
.daybreak.places2 .px-chip i{color:var(--blue-deep);font-size:13px}
.daybreak.places2 .px-chip:hover{
    transform:translateY(-2px) rotate(-.6deg);
    border-color:var(--blue);
    color:var(--ink);
    background:var(--blue-tint);
}

/* =========================================================
   Hero image (Top101-style taped art)
   ========================================================= */
.daybreak.places2 .px-hero-art{
    position:relative;
    aspect-ratio:5 / 4;
    border-radius:22px;
    overflow:visible;
    box-shadow:var(--shadow-lg);
    background:#fff;
    transform:rotate(-1.4deg);
    padding:14px;
    border:1px solid rgba(17,22,42,.05);
}
.daybreak.places2 .px-hero-art img{
    width:100%;height:100%;
    object-fit:cover;
    display:block;
    border-radius:14px;
}
.daybreak.places2 .px-hero-art-tape{
    position:absolute;width:120px;height:24px;
    background:var(--tape-yellow);
    box-shadow:0 2px 6px rgba(17,22,42,.08);
    border-radius:2px;z-index:2;
}
.daybreak.places2 .px-tape-yellow{
    top:-12px;left:50%;transform:translateX(-50%) rotate(-6deg);
    background:var(--tape-yellow);
}

/* =========================================================
   Region tabs + country grid
   ========================================================= */
.daybreak.places2 .px-countries-section{
    background:#fff;
    border-top:1px solid var(--line);border-bottom:1px solid var(--line);
    padding:56px 0 92px;
}
.daybreak.places2 .px-countries-head{
    display:flex;align-items:flex-end;justify-content:space-between;gap:24px;
    flex-wrap:wrap;margin-bottom:20px;
}
.daybreak.places2 .px-countries-head .section-eyebrow{margin-bottom:4px}
.daybreak.places2 .px-countries-head .section-title{margin-bottom:10px;text-align:left}
.daybreak.places2 .px-countries-head .section-sub{text-align:left;color:var(--ink-soft)}
.daybreak.places2 .px-countries-head > div:first-child{max-width:640px}
.daybreak.places2 .px-states-link{padding:11px 18px;font-size:14px}

.daybreak.places2 .px-region-tabs{
    display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px;
    padding-bottom:14px;border-bottom:1px dashed var(--line);
}
.daybreak.places2 .px-region-tab{
    display:inline-flex;align-items:center;gap:9px;
    padding:11px 16px;border-radius:999px;
    background:#fff;border:1.5px solid var(--line);
    font-size:13.5px;font-weight:700;color:var(--ink-soft);
    cursor:pointer;letter-spacing:.01em;
    transition:transform .2s var(--ease), background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.daybreak.places2 .px-region-tab i{color:var(--ink-mute);font-size:13px}
.daybreak.places2 .px-region-tab:hover{
    border-color:var(--blue);color:var(--ink);transform:translateY(-1px);
}
.daybreak.places2 .px-region-tab.is-active{
    background:var(--ink);color:#fff;border-color:var(--ink);
    box-shadow:0 4px 14px rgba(17,22,42,.18);
}
.daybreak.places2 .px-region-tab.is-active i{color:var(--gold)}

.daybreak.places2 .px-results-meta{
    font-size:13px;color:var(--ink-mute);margin-bottom:14px;
    font-weight:600;letter-spacing:.02em;
}
.daybreak.places2 .px-results-meta #px-results-count{
    color:var(--ink);font-family:'Fraunces',serif;font-size:16px;
}

.daybreak.places2 .px-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));
    gap:14px;
}
.daybreak.places2 .px-card{
    position:relative;display:block;
    aspect-ratio:1.05/1;
    border-radius:var(--radius);
    background-size:cover;background-position:center;background-color:#E5E9F2;
    overflow:hidden;
    box-shadow:var(--shadow-sm);
    transition:transform .25s var(--ease), box-shadow .25s var(--ease);
}
.daybreak.places2 .px-card:hover{
    transform:translateY(-4px) rotate(-.4deg);
    box-shadow:var(--shadow-md);
}
.daybreak.places2 .px-card-shade{
    position:absolute;inset:0;
    background:linear-gradient(180deg, rgba(17,22,42,0) 0%, rgba(17,22,42,.55) 70%, rgba(17,22,42,.78) 100%);
    transition:background .25s ease;
}
.daybreak.places2 .px-card:hover .px-card-shade{
    background:linear-gradient(180deg, rgba(17,22,42,.05) 0%, rgba(17,22,42,.55) 60%, rgba(74,144,226,.78) 100%);
}
.daybreak.places2 .px-card-name{
    position:absolute;left:14px;right:14px;bottom:12px;
    color:#fff;font-weight:600; /* font-family:'Fraunces',serif; */
    font-size:16px;letter-spacing:.005em;line-height:1.15;
    text-shadow:0 2px 12px rgba(0,0,0,.35);
}
.daybreak.places2 .px-card-count{
    position:absolute;top:10px;left:10px;
    display:inline-flex;align-items:center;gap:5px;
    padding:5px 9px;border-radius:999px;
    background:rgba(255,255,255,.92);
    color:var(--ink);font-size:11.5px;font-weight:700;
    backdrop-filter:saturate(160%) blur(4px);
    -webkit-backdrop-filter:saturate(160%) blur(4px);
    box-shadow:0 1px 4px rgba(17,22,42,.08);
}
.daybreak.places2 .px-card-count i{font-size:10px;color:var(--blue-deep)}

.daybreak.places2 .px-grid-empty{
    margin-top:28px;padding:44px 24px;text-align:center;
    border:1.5px dashed var(--line);border-radius:var(--radius);
    color:var(--ink-mute);
}
.daybreak.places2 .px-grid-empty i{font-size:32px;color:var(--blue);display:block;margin-bottom:10px}
.daybreak.places2 .px-grid-empty p{font-size:15px;margin:0;color:var(--ink-soft)}

@media (max-width:600px){
    .daybreak.places2 .px-grid{grid-template-columns:repeat(auto-fill, minmax(140px, 1fr));gap:10px}
    .daybreak.places2 .px-card-name{font-size:16px}
}

/* =========================================================
   Themed collections
   ========================================================= */
.daybreak.places2 .px-collections-section{
    background:linear-gradient(180deg,#FFFDF8 0%, var(--bg) 100%);
}
.daybreak.places2 .px-collections{
    display:grid;grid-template-columns:repeat(2, 1fr);gap:24px;
}
.daybreak.places2 .px-collection{
    background:#fff;border:1px solid var(--line);
    border-radius:var(--radius-lg);
    padding:28px 28px 24px;
    box-shadow:var(--shadow-sm);
    transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.daybreak.places2 .px-collection:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}
.daybreak.places2 .px-collection-head{
    display:flex;align-items:flex-start;gap:18px;margin-bottom:20px;
}
.daybreak.places2 .px-collection-icon{
    width:56px;height:56px;border-radius:18px;flex:0 0 auto;
    display:grid;place-items:center;font-size:22px;color:#fff;
    background:linear-gradient(135deg, var(--blue), var(--blue-deep));
    box-shadow:var(--shadow-sm);
}
.daybreak.places2 .px-collection:nth-child(1) .px-collection-icon{background:linear-gradient(135deg,#F5B83A,#E08B1F);color:#fff}
.daybreak.places2 .px-collection:nth-child(2) .px-collection-icon{background:linear-gradient(135deg,#FF8A5B,#FF5B85)}
.daybreak.places2 .px-collection:nth-child(3) .px-collection-icon{background:linear-gradient(135deg,#3FCBA0,#2DAE85)}
.daybreak.places2 .px-collection:nth-child(4) .px-collection-icon{background:linear-gradient(135deg,#7FC0FA,#4A90E2)}
.daybreak.places2 .px-collection:nth-child(5) .px-collection-icon{background:linear-gradient(135deg,#8B5CF6,#6535D9)}
.daybreak.places2 .px-collection:nth-child(6) .px-collection-icon{background:linear-gradient(135deg,#FFD45E,#A77800)}
.daybreak.places2 .px-collection-tag{
    display:inline-block;font-size:11px;font-weight:800;letter-spacing:.14em;
    text-transform:uppercase;color:var(--blue-deep);margin-bottom:6px;
}
.daybreak.places2 .px-collection h3{font-size:24px;margin:0 0 6px}
.daybreak.places2 .px-collection p{color:var(--ink-soft);font-size:14.5px;margin:0;max-width:420px}

.daybreak.places2 .px-collection-picks{
    display:grid;grid-template-columns:repeat(4, 1fr);gap:10px;
}
.daybreak.places2 .px-collection-pick{
    position:relative;display:block;
    aspect-ratio:1/1.1;
    border-radius:var(--radius-sm);
    background-size:cover;background-position:center;background-color:#E5E9F2;
    overflow:hidden;
    box-shadow:var(--shadow-sm);
    transition:transform .25s var(--ease);
}
.daybreak.places2 .px-collection-pick:hover{transform:translateY(-3px) rotate(-.6deg)}
.daybreak.places2 .px-collection-pick-shade{
    position:absolute;inset:0;
    background:linear-gradient(180deg, rgba(17,22,42,0) 30%, rgba(17,22,42,.78) 100%);
}
.daybreak.places2 .px-collection-pick-name{
    position:absolute;left:8px;right:8px;bottom:8px;
    color:#fff;font-family:'Fraunces',serif;font-weight:600;
    font-size:13.5px;line-height:1.15;
    text-shadow:0 2px 10px rgba(0,0,0,.4);
}
.daybreak.places2 .px-collection-pick-count{
    position:absolute;top:6px;right:6px;
    padding:3px 7px;border-radius:999px;
    background:rgba(255,255,255,.92);color:var(--ink);
    font-size:10.5px;font-weight:700;
    box-shadow:0 1px 4px rgba(17,22,42,.08);
}
.daybreak.places2 .px-collection-pick-empty{
    background:var(--bg);border:1.5px dashed var(--line);
    text-transform:capitalize;
}
.daybreak.places2 .px-collection-pick-empty .px-collection-pick-name{
    position:static;color:var(--ink-mute);text-shadow:none;
    padding:14px;text-align:center;font-size:12.5px;
}

@media (max-width:880px){
    .daybreak.places2 .px-collections{grid-template-columns:1fr}
}
@media (max-width:520px){
    .daybreak.places2 .px-collection-picks{grid-template-columns:repeat(2, 1fr)}
}

/* =========================================================
   Popular destinations (most visited / most desired)
   ========================================================= */
.daybreak.places2 .px-popular-section{
    background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);
}
.daybreak.places2 .px-popular-grid{
    display:grid;grid-template-columns:1fr 1fr;gap:24px;max-width:1040px;margin:0 auto;
}
.daybreak.places2 .px-popular-card{
    border-radius:var(--radius-lg);padding:32px 30px;
    border:1px solid var(--line);
    box-shadow:var(--shadow-sm);
    transition:transform .3s var(--ease), box-shadow .3s var(--ease);
    position:relative;overflow:hidden;
}
.daybreak.places2 .px-popular-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}
.daybreak.places2 .px-popular-visited{
    background:linear-gradient(160deg,#EAF2FE,#D8E6FB);
    border-color:rgba(74,144,226,.22);
}
.daybreak.places2 .px-popular-desired{
    background:linear-gradient(160deg,#FFEAF1,#FFD0DE);
    border-color:rgba(255,91,133,.22);
}
.daybreak.places2 .px-popular-card header{
    display:flex;align-items:center;gap:16px;margin-bottom:22px;
}
.daybreak.places2 .px-popular-icon{
    width:54px;height:54px;border-radius:16px;flex:0 0 auto;
    display:grid;place-items:center;font-size:22px;color:#fff;
    box-shadow:var(--shadow-sm);
}
.daybreak.places2 .px-popular-visited .px-popular-icon{background:linear-gradient(135deg,var(--blue),var(--blue-deep))}
.daybreak.places2 .px-popular-desired .px-popular-icon{background:linear-gradient(135deg,#FF8FA6,var(--pink))}
.daybreak.places2 .px-popular-eyebrow{
    display:block;font-size:11.5px;font-weight:800;letter-spacing:.14em;
    text-transform:uppercase;margin-bottom:4px;
}
.daybreak.places2 .px-popular-visited .px-popular-eyebrow{color:var(--blue-deep)}
.daybreak.places2 .px-popular-desired .px-popular-eyebrow{color:var(--pink)}
.daybreak.places2 .px-popular-card h3{font-size:22px;margin:0;color:var(--ink)}

.daybreak.places2 .px-popular-list{
    list-style:none;margin:0;padding:0;
    display:flex;flex-direction:column;gap:8px;
}

.places-home-popular-grid a{
 /*   color:var(--blue-deep);*/
}
.places-home-popular-grid a:hover{
   
}

.daybreak.places2 .px-popular-list a{
    display:grid;grid-template-columns:auto 1fr auto;
    align-items:center;gap:14px;
    padding:12px 14px;border-radius:14px;
    background:rgba(255,255,255,.65);
    transition:background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.daybreak.places2 .px-popular-list a:hover{
    background:#fff;transform:translateX(3px);
    box-shadow:var(--shadow-sm);
}
.daybreak.places2 .px-popular-rank{
    font-family:'Fraunces',serif;font-weight:700;font-size:22px;
    color:var(--ink-mute);min-width:28px;text-align:center;line-height:1;
}
.daybreak.places2 .px-popular-list a:hover .px-popular-rank{color:var(--ink)}
.daybreak.places2 .px-popular-name{
    font-weight:700;font-size:15.5px;color:var(--ink);
}
.daybreak.places2 .px-popular-count{
    font-family:'Fraunces',serif;font-weight:600;font-size:16px;color:var(--ink-soft);
    text-align:right;line-height:1;
}
.daybreak.places2 .px-popular-count small{
    display:block;font-family:'Plus Jakarta Sans',sans-serif;
    font-size:10.5px;font-weight:700;letter-spacing:.1em;
    text-transform:uppercase;color:var(--ink-mute);margin-top:3px;
}

@media (max-width:780px){
    .daybreak.places2 .px-popular-grid{grid-template-columns:1fr}
}

/* =========================================================
   1001-day passport block
   ========================================================= */
.daybreak.places2 .px-days-section{
    background:linear-gradient(135deg,#F4FFF8 0%, #EAF8FF 46%, #FFF4E7 100%);
    border-top:1px solid var(--line);border-bottom:1px solid var(--line);
    overflow:hidden;
}
.daybreak.places2 .px-days-wrap{
    display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center;
}
.daybreak.places2 .px-days-text h2{
    font-size:clamp(30px,3.8vw,46px);margin-bottom:14px;
}
.daybreak.places2 .px-days-text p{
    font-size:17px;color:var(--ink-soft);max-width:520px;margin-bottom:24px;
}
.daybreak.places2 .px-days-stats{display:flex;gap:32px;flex-wrap:wrap}
.daybreak.places2 .px-days-stats .ds-num{
    font-family:'Fraunces',serif;font-weight:700;font-size:46px;line-height:1;color:var(--ink);
}
.daybreak.places2 .px-days-stats .ds-label{
    margin-top:6px;font-size:13px;color:var(--ink-mute);font-weight:600;letter-spacing:.02em;
}

.daybreak.places2 .px-passport{
    position:relative;
    width:100%;max-width:380px;margin:0 auto;aspect-ratio:1.4/1;
}
.daybreak.places2 .px-passport-cover{
    position:absolute;inset:0;
    background:linear-gradient(135deg,#1B2347 0%, #2A3470 60%, #3a4894 120%);
    border-radius:14px;
    box-shadow:var(--shadow-lg);
    color:rgba(255,255,255,.92);
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
    transform:rotate(-3deg);
    border:1px solid rgba(255,255,255,.06);
}
.daybreak.places2 .px-passport-crest{
    width:72px;height:72px;border-radius:50%;
    border:2px solid rgba(245,184,58,.7);color:#F5B83A;
    display:grid;place-items:center;font-size:30px;
}
.daybreak.places2 .px-passport-title{
    font-family:'Fraunces',serif;font-weight:700;
    font-size:22px;letter-spacing:.32em;color:#F5B83A;
}
.daybreak.places2 .px-passport-sub{
    font-size:11.5px;font-weight:700;letter-spacing:.32em;
    text-transform:uppercase;color:rgba(255,255,255,.6);
}
.daybreak.places2 .px-passport-stamps{
    position:absolute;inset:0;pointer-events:none;
}
.daybreak.places2 .px-passport-stamps .px-stamp{
    position:absolute;
    font-family:'Fraunces',serif;font-weight:700;font-size:14px;letter-spacing:.18em;
    padding:10px 14px;border-radius:8px;
    border:2px solid currentColor;color:rgba(255,91,133,.85);
    transform-origin:center;background:rgba(255,255,255,.75);
    box-shadow:var(--shadow-sm);
}
.daybreak.places2 .px-stamp-a{top:8%;left:-6%;color:rgba(74,144,226,.85);transform:rotate(-12deg)}
.daybreak.places2 .px-stamp-b{top:18%;right:-4%;color:rgba(255,91,133,.85);transform:rotate(8deg)}
.daybreak.places2 .px-stamp-c{bottom:14%;left:-3%;color:rgba(63,203,160,.9);transform:rotate(6deg)}
.daybreak.places2 .px-stamp-d{bottom:6%;right:6%;color:rgba(245,184,58,.95);transform:rotate(-9deg)}

@media (max-width:880px){
    .daybreak.places2 .px-days-wrap{grid-template-columns:1fr;gap:28px}
    .daybreak.places2 .px-days-text{text-align:center}
    .daybreak.places2 .px-days-text p{margin-left:auto;margin-right:auto}
    .daybreak.places2 .px-days-stats{justify-content:center}
}
