/* ShopTownly discovery homepage – isolated styles, no shared components overwritten. */
.st-discovery-hero{position:relative;color:#fff;background:linear-gradient(90deg,rgba(9,35,53,.95),rgba(9,35,53,.72) 42%,rgba(9,35,53,.15) 100%),var(--st-hero) center/cover no-repeat;min-height:430px;display:flex;align-items:center}
.st-discovery-hero-inner{padding:82px 0 72px}
.st-discovery-kicker,.st-discovery-eyebrow{display:block;font-size:11px;font-weight:800;letter-spacing:2.7px;color:#cda96e;margin-bottom:12px}
.st-discovery-hero h1{font-family:Georgia,serif;font-size:clamp(45px,6vw,79px);line-height:1.04;letter-spacing:-1.6px;margin:0 0 19px}
.st-discovery-hero h1 em{color:#efc990;font-weight:400}
.st-discovery-hero p{max-width:610px;font-size:17px;line-height:1.65;color:#e8edf0;margin:0 0 25px}
.st-discovery-search{display:flex;align-items:stretch;gap:6px;padding:7px;background:white;border-radius:8px;max-width:820px;box-shadow:0 15px 40px #071b2b55}
.st-discovery-search input,.st-discovery-search select{border:0;padding:13px 16px;min-width:0;color:#142f42;background:#fff;font-size:14px}
.st-discovery-search input{flex:1}.st-discovery-search select{width:180px;border-left:1px solid #e4e7ea}
.st-discovery-search button,.st-discovery-primary{background:#b92c2e;color:white;border:0;border-radius:5px;padding:14px 22px;font-weight:800;white-space:nowrap;cursor:pointer}
.st-discovery-primary{display:inline-flex}.st-discovery-hero-foot{display:flex;gap:22px;align-items:center;flex-wrap:wrap;margin-top:18px;color:#f1f3f4;font-size:12px}.st-discovery-hero-foot a{text-decoration:underline;text-underline-offset:3px}
.st-discovery-location{background:#f8f5ef;border-bottom:1px solid #e9e3da}.st-discovery-location .wrap{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:14px;padding-bottom:14px;font-size:13px}.st-discovery-location a{border:1px solid #142f42;padding:9px 14px;border-radius:5px;background:#fff;font-weight:700}
.st-discovery-towns{background:#faf8f4;padding:66px 0 77px}.st-discovery-section-title{display:flex;justify-content:space-between;gap:30px;align-items:end;margin-bottom:26px}.st-discovery-towns h2,.st-discovery-promise h2{font-family:Georgia,serif;color:#142f42;font-size:clamp(29px,3.5vw,43px);letter-spacing:-.5px;line-height:1.15;margin:0 0 12px}.st-discovery-section-title p,.st-discovery-intro{color:#546a77;font-size:15px;line-height:1.6;margin:0}.st-discovery-handwritten{font-family:Georgia,serif;font-size:24px;font-style:italic;color:#2b6d83;transform:rotate(-7deg);white-space:nowrap;text-align:center;padding:15px 8px}
.st-discovery-town-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.st-discovery-town-card{height:258px;border-radius:9px;overflow:hidden;position:relative;display:flex;align-items:end;background:#19465d;color:white;box-shadow:0 9px 22px #142f421a;transition:transform .2s,box-shadow .2s}.st-discovery-town-card:hover{transform:translateY(-4px);box-shadow:0 16px 30px #142f422b}.st-discovery-town-photo{position:absolute;inset:0;background:linear-gradient(0deg,rgba(4,33,52,.98),rgba(4,33,52,.08) 85%),var(--town-photo,linear-gradient(135deg,#2a6875,#142f42)) center/cover no-repeat;transition:transform .35s}.st-discovery-town-card:hover .st-discovery-town-photo{transform:scale(1.04)}.st-discovery-town-content{position:relative;display:flex;flex-direction:column;align-items:start;padding:23px;width:100%}.st-discovery-town-content strong{font-family:Georgia,serif;font-size:31px;line-height:1.1}.st-discovery-town-content small{font-size:13px;line-height:1.45;color:#edf4f7;margin:7px 0 14px;min-height:18px}.st-discovery-town-link{display:inline-flex;gap:12px;align-items:center;border-radius:50px;padding:9px 13px;background:#fff;color:#143447;font-size:12px;font-weight:800}.st-discovery-town-link span{color:#0b9aa7;font-size:18px}.st-discovery-switch{margin:24px 0 0;text-align:center;color:#a92c31;font-weight:700}
.st-discovery-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:25px 0}.st-discovery-choice{display:flex;justify-content:space-between;gap:14px;padding:25px;border:1px solid #d9e0e3;background:#fff;border-radius:9px;color:#142f42;font-weight:700;box-shadow:0 4px 15px #142f4210}.st-discovery-choice span:last-child{color:#a82e33}.st-discovery-choice:hover{border-color:#1d8092}.st-discovery-back{display:inline-block;margin-top:12px;color:#a82e33;font-weight:700}.st-discovery-location-btn{margin:22px 12px 0 0;border:0;border-radius:5px;background:#142f42;color:#fff;padding:13px 18px;cursor:pointer;font-weight:700}.st-discovery-geo-status{font-size:13px;color:#546a77}
.st-discovery-promise{text-align:center;background:#fff;padding:60px 0 55px}.st-discovery-promise p{max-width:700px;margin:0 auto;color:#60727c;line-height:1.6}.st-discovery-values{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:30px}.st-discovery-values div{background:#eef4f6;padding:22px 10px;border-radius:8px;font-weight:800;color:#163e54}.st-discovery-values span{color:#bc8c3d;margin-right:6px}
@media(max-width:850px){.st-discovery-town-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.st-discovery-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.st-discovery-handwritten{display:none}}
@media(max-width:600px){.st-discovery-hero{min-height:0}.st-discovery-hero-inner{padding:65px 0 55px}.st-discovery-hero h1{font-size:clamp(42px,11vw,62px)}.st-discovery-hero p{font-size:15px}.st-discovery-search{flex-direction:column}.st-discovery-search input,.st-discovery-search select,.st-discovery-search button{width:100%;min-height:46px}.st-discovery-search select{border-left:0;border-top:1px solid #e4e7ea}.st-discovery-location .wrap{flex-wrap:wrap}.st-discovery-towns{padding:46px 0 55px}.st-discovery-town-grid,.st-discovery-choice-grid{grid-template-columns:1fr}.st-discovery-town-card{height:265px}.st-discovery-values{grid-template-columns:repeat(2,1fr)}.st-discovery-hero-foot{gap:12px}}

/* Homepage categories and lifestyle panels from the approved design. */
.st-home-categories{background:#f4f0e9;padding:44px 0 36px;text-align:center}
.st-home-categories h2{font:700 clamp(26px,3vw,38px)/1.15 Georgia,serif;color:#142f42;margin:0 0 9px}
.st-home-categories p{font-size:14px;color:#526875;margin:0 0 26px}
.st-home-category-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:9px}
.st-home-category{display:flex;flex-direction:column;align-items:center;gap:12px;min-height:128px;padding:17px 7px 12px;background:#fff;border:1px solid #dce2e4;border-radius:7px;color:#14354a;text-decoration:none;box-shadow:0 3px 12px #142f420b;transition:transform .2s,box-shadow .2s}
.st-home-category:hover,.st-home-category:focus-visible{transform:translateY(-3px);box-shadow:0 9px 22px #142f421e}
.st-home-category-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:#e6f0f5;color:#153c56;font-size:27px;font-family:Arial,sans-serif}
.st-home-category strong{font-size:11px;line-height:1.25;overflow-wrap:anywhere}
.st-home-lifestyle{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;overflow:hidden}
.st-home-lifestyle-panel{height:230px;min-width:0;background:#142f42}
.st-home-lifestyle-panel img{width:100%;height:100%;object-fit:cover;display:block}
.st-discovery-town-card.st-fallback-photo .st-discovery-town-photo{filter:saturate(.8)}
@media(max-width:950px){.st-home-category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.st-home-lifestyle-panel{height:190px}}
@media(max-width:600px){.st-home-categories{padding:36px 0 30px}.st-home-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.st-home-category{min-height:112px}.st-home-lifestyle{grid-template-columns:repeat(2,minmax(0,1fr))}.st-home-lifestyle-panel{height:160px}}

/* Fix: show entire lifestyle artwork, including lettering and underline. */
.st-home-lifestyle-panel{height:auto!important;aspect-ratio:220/167;overflow:hidden}
.st-home-lifestyle-panel img{display:block;width:100%;height:100%;object-fit:fill}
@media(max-width:950px){.st-home-lifestyle-panel{height:auto!important}}
@media(max-width:600px){.st-home-lifestyle-panel{height:auto!important}}

/* Keep the four lifestyle panels immediately after advertising and before the footer CTA.
   Limit rendered width to the source artwork resolution to avoid blurry upscaling. */
.st-home-lifestyle{
  width:min(100%,880px);
  max-width:880px;
  margin:30px auto 0;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  overflow:hidden;
}
.st-home-lifestyle-panel{height:auto!important;aspect-ratio:220/167}
.st-home-lifestyle-panel img{display:block;width:100%;height:100%;object-fit:fill}
@media(max-width:600px){
  .st-home-lifestyle{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:22px}
}

/* Correction: lifestyle artwork spans the available homepage width. */
.st-home-lifestyle {
  width:100%;
  max-width:none;
  margin:30px 0 0;
}
@media(max-width:600px) {
  .st-home-lifestyle { margin-top:22px; }
}

/* Mobile-only: compact, fully clickable town cards in two columns. */
@media (max-width:600px) {
  .st-discovery-town-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  .st-discovery-town-card {
    height:auto;
    min-height:154px;
    aspect-ratio:1.08 / 1;
    border-radius:9px;
  }
  .st-discovery-town-content {
    padding:12px;
    flex-direction:row;
    justify-content:space-between;
    align-items:end;
    gap:5px;
  }
  .st-discovery-town-content strong {
    font-size:clamp(18px,5vw,25px);
    line-height:1.1;
    overflow-wrap:anywhere;
  }
  .st-discovery-town-content small { display:none; }
  .st-discovery-town-link {
    font-size:0!important;
    line-height:0;
    padding:0!important;
    width:30px;
    height:30px;
    min-width:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#e9f8ff;
    color:#087ba7;
    box-shadow:0 2px 7px rgba(0,0,0,.15);
  }
  .st-discovery-town-link span {font-size:21px;line-height:1;}
  .st-discovery-towns {padding-bottom:36px;}
}
@media(max-width:340px) {
  .st-discovery-town-grid{gap:8px}
  .st-discovery-town-card{min-height:132px}
  .st-discovery-town-content{padding:9px}
  .st-discovery-town-content strong{font-size:17px}
  .st-discovery-town-link{width:26px;height:26px;min-width:26px}
}
