:root {
  --esy-ivory: #fffaf0;
  --esy-surface: #ffffff;
  --esy-surface-soft: #f7f8fb;
  --esy-navy: #092b67;
  --esy-blue: #174d9a;
  --esy-yellow: #ffc928;
  --esy-text: #253550;
  --esy-muted: #65738a;
  --esy-border: #e4e8ef;
  --esy-success: #19724c;
  --esy-radius-sm: 14px;
  --esy-radius-md: 22px;
  --esy-radius-lg: 32px;
  --esy-shadow: 0 10px 28px rgba(9, 43, 103, 0.07);
  --esy-container: 1180px;
  --esy-space: clamp(44px, 6vw, 72px);
  --esy-body-size: 1rem;
  --esy-caption-size: .875rem;
  --esy-hero-size: clamp(2.2rem, 4vw, 3rem);
  --esy-section-size: clamp(1.65rem, 3vw, 2rem);
  --esy-card-heading-size: clamp(1.125rem, 2vw, 1.5rem);
  font-family: Inter, "Noto Sans Thai", "Segoe UI", sans-serif;
  color: var(--esy-text);
  background: var(--esy-ivory);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--esy-ivory); }

.privacy-banner {
  position: fixed;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  width: min(760px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid var(--esy-border);
  border-radius: var(--esy-radius-sm);
  background: var(--esy-surface);
  box-shadow: 0 18px 42px rgba(9, 43, 103, .14);
}

.privacy-banner h2,
.privacy-preferences-dialog h2,
.privacy-preference-card h3 { margin: 0; color: var(--esy-navy); }
.privacy-banner p,
.privacy-preferences-dialog p { margin: 7px 0 0; color: var(--esy-muted); line-height: 1.55; }
.privacy-banner-actions,
.privacy-preferences-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.privacy-banner .btn,
.privacy-preferences-actions .btn {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--esy-navy);
  border-radius: 12px;
  color: var(--esy-navy);
  background: var(--esy-surface);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.privacy-banner .btn-primary,
.privacy-preferences-actions .btn-primary { background: var(--esy-yellow); }

.privacy-preferences-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--esy-radius-sm);
  color: var(--esy-navy);
  background: var(--esy-surface);
  box-shadow: 0 24px 70px rgba(9, 43, 103, .28);
}
.privacy-preferences-dialog::backdrop { background: rgba(9, 43, 103, .26); }
.privacy-preferences-frame { display: grid; gap: 16px; padding: 22px; }
.privacy-preferences-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.privacy-dialog-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--esy-border);
  border-radius: 50%;
  color: var(--esy-navy);
  background: var(--esy-surface);
  font-weight: 900;
  cursor: pointer;
}
.privacy-preferences-list { display: grid; gap: 12px; }
.privacy-preference-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--esy-border);
  border-radius: var(--esy-radius-sm);
  background: var(--esy-ivory);
}
.privacy-always-active { min-height: 34px; padding: 7px 10px; border-radius: 12px; background: rgba(255, 201, 40, .3); font-weight: 800; white-space: nowrap; }
.privacy-toggle { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; white-space: nowrap; }
.privacy-toggle input { width: 20px; height: 20px; accent-color: var(--esy-navy); }
.privacy-dialog-close:focus-visible,
.privacy-toggle input:focus-visible,
.privacy-banner .btn:focus-visible,
.privacy-preferences-actions .btn:focus-visible { outline: 3px solid rgba(255, 201, 40, .45); outline-offset: 2px; }

@media (max-width: 640px) {
  .privacy-banner {
    right: 12px;
    bottom: max(8px, env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 16px - env(safe-area-inset-bottom));
    gap: 10px;
    padding: 12px;
    overflow-y: auto;
  }
  .privacy-banner-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .privacy-banner-actions .btn:nth-child(3) { grid-column: 1 / -1; }
  .privacy-preference-card { grid-template-columns: 1fr; }
}
body { font-size: var(--esy-body-size); line-height: 1.6; }
body, button, input, select { font: inherit; }
a { color: inherit; }
img { max-width: 100%; }
.soft-shell { width: min(calc(100% - 40px), var(--esy-container)); margin-inline: auto; }
.soft-section { padding-block: var(--esy-space); }
.soft-section + .soft-section { padding-top: 0; }
.soft-kicker { margin: 0 0 10px; color: var(--esy-blue); font-size: var(--esy-caption-size); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.soft-heading { margin: 0; color: var(--esy-navy); font-size: var(--esy-section-size); line-height: 1.16; letter-spacing: -.025em; }
.soft-lead { max-width: 680px; min-width: 0; margin: 16px 0 0; overflow-wrap: anywhere; color: var(--esy-muted); font-size: 1.05rem; line-height: 1.75; }
.soft-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }

.soft-header { position: relative; z-index: 20; border-bottom: 1px solid rgba(9,43,103,.08); background: rgba(255,250,240,.94); backdrop-filter: blur(14px); }
.soft-nav { min-height: 82px; display: flex; align-items: center; gap: 24px; }
.soft-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.soft-brand img { width: 162px; height: 58px; object-fit: contain; }
.soft-nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.soft-nav-links a { color: var(--esy-navy); font-size: .95rem; font-weight: 700; text-decoration: none; }
.soft-controls { display: flex; gap: 8px; align-items: center; }
.soft-segment, .soft-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--esy-border); border-radius: 999px; background: #fff; }
.soft-segment a, .soft-segment button, .soft-toggle button { min-width: 42px; border: 0; border-radius: 999px; padding: 7px 10px; color: var(--esy-muted); background: transparent; font-weight: 800; text-decoration: none; cursor: pointer; }
.soft-segment .active, .soft-toggle .active { color: #fff; background: var(--esy-navy); }
.soft-lang { color: var(--esy-navy); font-size: .84rem; font-weight: 800; text-decoration: none; }
.soft-cart { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding: 0 16px; border-radius: 999px; color: #fff; background: var(--esy-navy); font-weight: 800; text-decoration: none; }

.soft-btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 0 22px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.soft-btn:hover { transform: translateY(-1px); }
.soft-btn-primary { color: var(--esy-navy); background: var(--esy-yellow); box-shadow: 0 10px 24px rgba(255,201,40,.24); }
.soft-btn-secondary { color: #fff; background: var(--esy-navy); }
.soft-btn-quiet { color: var(--esy-navy); border: 1px solid var(--esy-border); background: #fff; }
.soft-btn:focus-visible, .soft-input:focus-visible, .soft-filter:focus-visible, .package-choice:focus-visible { outline: 3px solid rgba(23,77,154,.24); outline-offset: 3px; }

.soft-hero { position: relative; overflow: hidden; padding-block: clamp(64px, 8vw, 108px); background: linear-gradient(90deg,rgba(255,253,248,.98) 0%,rgba(255,253,248,.88) 44%,rgba(255,253,248,.08) 72%),url('/assets/travel-hero-soft-v2.webp') center right/cover no-repeat; }
.soft-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 70%,rgba(255,250,240,.55)); pointer-events: none; }
.soft-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); gap: clamp(36px,7vw,90px); align-items: center; }
.soft-hero h1 { max-width: 690px; margin: 0; color: var(--esy-navy); font-size: var(--esy-hero-size); line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.soft-hero h1 span { color: var(--esy-blue); }
.soft-search { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 30px; padding: 8px; border: 1px solid var(--esy-border); border-radius: 999px; background: #fff; box-shadow: var(--esy-shadow); }
.soft-input { width: 100%; min-width: 0; border: 0; border-radius: 999px; padding: 0 18px; color: var(--esy-navy); background: transparent; outline: 0; }
.soft-hero-card { position: relative; min-height: 330px; display: grid; align-content: end; padding: 28px; border: 1px solid rgba(255,255,255,.78); border-radius: var(--esy-radius-lg); background: #fff; box-shadow: var(--esy-shadow); }
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .soft-hero-card { background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
.soft-hero-card h2 { margin: 0; color: var(--esy-navy); font-size: clamp(1.25rem,2vw,1.65rem); line-height: 1.3; text-wrap: balance; }
.soft-steps-visual { width: 100%; margin: 0 0 24px; }
.soft-steps-visual svg { display: block; width: 100%; height: auto; overflow: visible; }
.soft-steps-visual circle { fill: #fff8df; stroke: var(--esy-yellow); stroke-width: 3; }
.soft-steps-visual g path, .soft-steps-visual g rect { fill: none; stroke: var(--esy-navy); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.soft-steps-visual text { fill: var(--esy-navy); font: 800 13px Inter,"Noto Sans Thai",sans-serif; text-anchor: middle; }
.steps-route { fill: none; stroke: rgba(23,77,154,.24); stroke-width: 2; stroke-dasharray: 6 7; }
.steps-plane { fill: var(--esy-yellow); stroke: var(--esy-navy); stroke-width: 1.5; stroke-linejoin: round; }

.soft-grid { display: grid; gap: 18px; }
.soft-grid-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.soft-grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.soft-card { min-width: 0; border: 1px solid var(--esy-border); border-radius: var(--esy-radius-md); background: var(--esy-surface); box-shadow: 0 10px 30px rgba(9,43,103,.055); }
.destination-link { position: relative; overflow: hidden; display: grid; gap: 12px; min-height: 220px; align-content: end; padding: 22px; text-decoration: none; background-color: #fff; background-repeat: no-repeat; background-position: center; background-size: cover; transition: transform .18s ease, box-shadow .18s ease; }
.destination-link:hover { transform: translateY(-2px); box-shadow: var(--esy-shadow); }
.destination-link[data-destination="JP"] { background-image: linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.97) 58%),url('/assets/travel-hero-soft-v2.webp'); background-position: 72% center; }
.destination-link[data-destination="ES"] { background-image: linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.97) 58%),url('/assets/spain-hero-approved-v1.webp'); background-position: 66% center; }
.destination-link[data-destination="TH"] { background-image: linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.98) 65%),radial-gradient(circle at 78% 22%,rgba(255,201,40,.7) 0 16%,transparent 16.5%),url('/esy-sims/public/assets/flags/th.svg'); background-position: center,center,calc(100% - 20px) 20px; background-size: cover,cover,112px auto; }
.destination-link[data-destination="KR"] { background-image: linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.98) 65%),radial-gradient(circle at 74% 20%,rgba(23,77,154,.16) 0 24%,transparent 24.5%),url('/esy-sims/public/assets/flags/kr.svg'); background-position: center,center,calc(100% - 20px) 20px; background-size: cover,cover,112px auto; }
.destination-link img { width: 58px; height: 40px; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 12px rgba(9,43,103,.1); }
.destination-link h3, .benefit-card h3, .compat-card h3 { margin: 0; color: var(--esy-navy); font-size: 1.15rem; }
.destination-link p, .benefit-card p, .compat-card p { margin: 0; color: var(--esy-muted); line-height: 1.65; }
.destination-link strong { margin-top: auto; color: var(--esy-blue); }
.region-card, .benefit-card { padding: 24px; }
.region-card { position: relative; overflow: hidden; min-height: 132px; display: grid; align-content: space-between; color: var(--esy-navy); text-decoration: none; background: linear-gradient(145deg,#fff,#f5f8ff); }
.region-card::after { content: ""; position: absolute; width: 92px; height: 92px; right: -22px; top: -26px; border-radius: 50%; background: var(--region-accent,rgba(23,77,154,.1)); }
.region-card[data-region="east-asia"] { --region-accent: rgba(231,69,73,.18); background: linear-gradient(145deg,#fff,#fff5f3); }
.region-card[data-region="southeast-asia"] { --region-accent: rgba(255,201,40,.3); background: linear-gradient(145deg,#fff,#fff9e7); }
.region-card[data-region="europe"] { --region-accent: rgba(23,77,154,.16); background: linear-gradient(145deg,#fff,#f1f5ff); }
.region-card[data-region="americas"] { --region-accent: rgba(25,114,76,.15); background: linear-gradient(145deg,#fff,#eef9f4); }
.region-card span { color: var(--esy-muted); }
.benefit-card .benefit-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 26px; border-radius: 15px; color: var(--esy-navy); background: rgba(255,201,40,.35); font-weight: 900; }
.compat-card { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: clamp(28px,5vw,56px); background: var(--esy-navy); color: #fff; }
.compat-card h3 { color: #fff; font-size: clamp(1.7rem,3vw,2rem); }
.compat-card p { max-width: 680px; color: rgba(255,255,255,.76); }

.country-hero { position: relative; overflow: hidden; padding-block: clamp(44px,6vw,78px); background: linear-gradient(125deg,#fffaf0 0%,#fff 55%,#f2f6ff 100%); }
.country-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.country-hero > .soft-shell { position: relative; z-index: 1; }
body[data-country-code="JP"] .country-hero { background: url('/assets/travel-hero-soft-v2.webp') 76% center/cover no-repeat; }
body[data-country-code="JP"] .country-hero::before { background: linear-gradient(90deg,rgba(255,250,240,.99) 0%,rgba(255,250,240,.93) 38%,rgba(255,250,240,.22) 64%,rgba(255,250,240,.04) 100%); }
body[data-country-code="ES"] .country-hero { background: url('/assets/spain-hero-approved-v1.webp') 62% center/cover no-repeat; }
body[data-country-code="ES"] .country-hero::before { background: linear-gradient(90deg,rgba(255,250,240,.99) 0%,rgba(255,250,240,.95) 38%,rgba(255,250,240,.3) 62%,rgba(255,250,240,.03) 100%); }
body[data-country-code="JP"] .country-art, body[data-country-code="ES"] .country-art { display: none; }
.country-art { position: absolute; right: 4vw; bottom: -24px; color: rgba(9,43,103,.045); font-size: clamp(7rem,18vw,16rem); font-weight: 900; line-height: 1; }
.breadcrumb { display: flex; gap: 8px; margin-bottom: 26px; color: var(--esy-muted); font-size: .9rem; }
.breadcrumb a { color: var(--esy-blue); text-decoration: none; }
.country-title-row { position: relative; z-index: 1; display: flex; gap: 24px; align-items: center; }
.country-flag { width: 74px; height: 52px; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 24px rgba(9,43,103,.1); }
.country-hero h1 { margin: 0; color: var(--esy-navy); font-size: var(--esy-hero-size); line-height: 1.1; letter-spacing: -.035em; overflow-wrap: anywhere; }
.country-hero .soft-lead { position: relative; z-index: 1; }
.country-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 28px; align-items: start; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.soft-filter { min-height: 42px; border: 1px solid var(--esy-border); border-radius: 999px; padding: 0 16px; color: var(--esy-navy); background: #fff; font-weight: 750; cursor: pointer; }
.soft-filter.active { border-color: var(--esy-navy); color: #fff; background: var(--esy-navy); }
.package-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.package-choice { display: grid; gap: 14px; min-height: 178px; padding: 20px; text-align: left; cursor: pointer; }
.package-choice.selected { border-color: #efb900; background: #fffdf4; box-shadow: 0 0 0 3px rgba(255,201,40,.16); }
.package-choice .package-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.package-choice h2 { margin: 0; color: var(--esy-navy); font-size: 1.25rem; }
.package-tag { border-radius: 999px; padding: 6px 10px; color: var(--esy-success); background: #eaf7f1; font-size: var(--esy-caption-size); font-weight: 800; }
.package-compare { display: flex; gap: 26px; padding-block: 12px; border-block: 1px solid var(--esy-border); }
.package-compare span { display: grid; gap: 3px; }
.package-compare small { color: var(--esy-muted); font-size: var(--esy-caption-size); }
.package-compare strong { color: var(--esy-navy); }
.package-price { margin-top: auto; color: var(--esy-navy); font-size: 1.3rem; font-weight: 900; }
.purchase-panel { position: sticky; top: 22px; padding: 26px; }
.purchase-panel h2 { margin: 0; color: var(--esy-navy); }
.purchase-empty { color: var(--esy-muted); line-height: 1.65; }
.purchase-detail { display: grid; gap: 10px; margin-block: 20px; padding-block: 20px; border-block: 1px solid var(--esy-border); }
.purchase-detail div { display: flex; justify-content: space-between; gap: 12px; }
.purchase-detail span { color: var(--esy-muted); }
.purchase-detail strong { color: var(--esy-navy); }
.purchase-panel .soft-btn { width: 100%; }
.coverage-drawer { margin-bottom: 24px; overflow: hidden; }
.coverage-drawer summary { cursor: pointer; padding: 20px 24px; color: var(--esy-navy); font-weight: 850; }
.coverage-drawer div { padding: 0 24px 22px; color: var(--esy-muted); line-height: 1.65; }
.destination-seo { background: #fff; }
.destination-seo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.destination-seo-card { padding: clamp(22px,4vw,32px); }
.destination-seo-card h3, .destination-faqs h2 { margin-top: 0; color: var(--esy-navy); }
.destination-seo-card p, .destination-faq p { color: var(--esy-muted); line-height: 1.7; }
.network-list, .city-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.network-list li, .city-list li { border: 1px solid var(--esy-border); border-radius: 999px; padding: 8px 12px; color: var(--esy-navy); background: var(--esy-surface-soft); }
.destination-disclaimer { margin-bottom: 0; font-size: .92rem; }
.destination-faqs { margin-top: clamp(30px,5vw,48px); }
.destination-faq { margin-top: 12px; overflow: hidden; }
.destination-faq summary { cursor: pointer; padding: 18px 22px; color: var(--esy-navy); font-weight: 800; }
.destination-faq p { margin: 0; padding: 0 22px 20px; }
.mobile-purchase { display: none; }
.soft-empty { grid-column: 1/-1; padding: 32px; text-align: center; color: var(--esy-muted); }

.soft-footer { margin-top: var(--esy-space); padding-block: 48px 30px; color: rgba(255,255,255,.8); background: var(--esy-navy); }
.soft-footer-grid { display: grid; grid-template-columns: 1.45fr repeat(3,1fr); gap: 40px; }
.soft-footer img { width: 128px; filter: brightness(0) invert(1); }
.soft-footer h2 { margin: 0 0 14px; color: #fff; font-size: 1rem; }
.soft-footer a { display: block; margin: 9px 0; color: inherit; text-decoration: none; }
.soft-footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .82rem; }
.soft-footer-bottom button { border: 0; padding: 0; color: inherit; background: transparent; font: inherit; text-decoration: underline; cursor: pointer; }

.soft-content-page { margin: 0; color: var(--esy-text); background: var(--esy-ivory); font-family: var(--esy-font); }
.soft-content-page .shell-main { width: min(calc(100% - 40px), 980px); margin-inline: auto; padding-block: clamp(42px,6vw,76px); }
.soft-content-page .page-hero { width: 100%; box-sizing: border-box; margin: 0 0 28px; padding: 34px; border: 1px solid var(--esy-border); border-radius: var(--esy-radius-lg); background: linear-gradient(135deg,#fff 0%,#fffaf0 100%); box-shadow: var(--esy-shadow); }
.soft-content-page .page-hero h1 { margin: 0 0 12px; color: var(--esy-navy); font-size: var(--esy-hero-size); line-height: 1.15; overflow-wrap: anywhere; text-wrap: balance; }
.soft-content-page .page-hero p { margin: 0; color: var(--esy-muted); }
.soft-content-page .policy-section, .soft-content-page .detail-panel, .soft-content-page .contact-card { border: 1px solid var(--esy-border); border-radius: var(--esy-radius-md); background: #fff; box-shadow: 0 8px 24px rgba(9,43,103,.045); }
.soft-content-page .policy-section, .soft-content-page .detail-panel { margin-block: 16px; padding: clamp(22px,4vw,34px); }
.soft-content-page .policy-section h2, .soft-content-page .detail-panel h2 { margin-top: 0; color: var(--esy-navy); font-size: clamp(1.2rem,2.5vw,1.55rem); }
.soft-content-page .policy-section p, .soft-content-page .policy-section li, .soft-content-page .detail-panel { line-height: 1.75; }
.soft-content-page .policy-section a, .soft-content-page .detail-panel a, .soft-content-page .contact-card { color: var(--esy-blue); }
.soft-content-page .contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-block: 24px; }
.soft-content-page .contact-card { display: grid; gap: 8px; padding: 24px; text-decoration: none; }
.soft-content-page .contact-card strong { color: var(--esy-navy); }
.soft-content-page .detail-specs { display: grid; gap: 0; }
.soft-content-page .detail-specs > div { display: grid; grid-template-columns: minmax(150px,.5fr) 1fr; gap: 20px; padding-block: 14px; border-bottom: 1px solid var(--esy-border); }
.soft-content-page .detail-specs dt { color: var(--esy-muted); }
.soft-content-page .detail-specs dd { margin: 0; color: var(--esy-navy); }

@media (max-width: 900px) {
  .soft-nav-links { display: none; }
  .soft-hero-grid, .country-layout { grid-template-columns: 1fr; }
  .soft-hero-card { min-height: 260px; }
  .soft-grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .purchase-panel { display: none; }
  .mobile-purchase.is-visible { position: fixed; z-index: 30; left: 20px; right: 20px; bottom: max(12px,env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 12px 14px; border: 1px solid var(--esy-border); border-radius: 999px; background: rgba(255,255,255,.96); box-shadow: 0 14px 42px rgba(9,43,103,.18); backdrop-filter: blur(14px); }
  body.mobile-cta-visible { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  .soft-shell { width: min(calc(100% - 28px), var(--esy-container)); }
  .soft-nav { min-height: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block: 12px; }
  .soft-brand { min-width: 118px; width: max-content; max-width: 100%; }
  :root { --esy-body-size: 1rem; }
  .soft-brand img { width: 132px; max-width: 100%; height: 46px; }
  .soft-controls { width: 100%; min-width: 0; max-width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: 6px; }
  .soft-controls > * { min-width: 0; }
  .soft-controls .soft-toggle { width: 100%; justify-content: center; }
  .soft-controls .storefront-auth-menu { min-width: 0; justify-self: stretch; }
  .soft-controls .storefront-auth-menu > .btn { min-height: 38px; max-width: 100%; padding: 7px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .soft-controls .soft-toggle button { min-width: 34px; padding: 6px 7px; font-size: .78rem; }
  .soft-cart { min-height: 38px; margin-left: 0; justify-content: center; padding-inline: 10px; font-size: .86rem; white-space: nowrap; }
  .soft-hero { padding-block: 42px 48px; background-position: 70% center; }
  .soft-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(255,253,248,.99) 0%,rgba(255,253,248,.9) 66%,rgba(255,253,248,.3) 100%); }
  .soft-hero-grid { gap: 28px; }
  :root { --esy-hero-size: clamp(2rem, 8.5vw, 2.5rem); --esy-section-size: clamp(1.55rem, 6vw, 1.9rem); }
  .soft-hero h1 { line-height: 1.12; }
  .soft-search { grid-template-columns: 1fr; border-radius: var(--esy-radius-md); }
  .soft-input { min-height: 48px; }
  .soft-hero-card { display: none; }
  .soft-grid-4, .soft-grid-3, .package-list, .soft-footer-grid, .destination-seo-grid { grid-template-columns: 1fr; }
  .soft-section-head { align-items: start; flex-direction: column; }
  .country-art { display: none; }
  .country-title-row { align-items: start; }
  .country-flag { width: 58px; height: 42px; }
  .country-hero h1 { font-size: var(--esy-hero-size); }
  body[data-country-code="JP"] .country-hero, body[data-country-code="ES"] .country-hero { min-height: 290px; background-position: 66% center; }
  body[data-country-code="JP"] .country-hero::before, body[data-country-code="ES"] .country-hero::before { background: linear-gradient(90deg,rgba(255,250,240,.99) 0%,rgba(255,250,240,.95) 68%,rgba(255,250,240,.42) 100%); }
  .package-choice { min-height: 0; }
  .mobile-purchase.is-visible { left: 10px; right: 10px; border-radius: 22px; }
  .mobile-purchase .soft-btn { min-height: 44px; padding-inline: 16px; }
  .soft-content-page .shell-main { width: min(calc(100% - 28px), 980px); padding-block: 28px 48px; }
  .soft-content-page .page-hero { padding: 22px 20px; }
  .soft-content-page .contact-grid { grid-template-columns: 1fr; }
  .soft-content-page .detail-specs > div { grid-template-columns: 1fr; gap: 4px; }
}

.storefront-page-shell .soft-header,
.storefront-catalog-page .soft-header { width: 100%; }
.storefront-page-shell .soft-footer,
.storefront-catalog-page .soft-footer { width: 100%; }

.auth-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--esy-ivory); }
.auth-shell .auth-page { width: 100%; flex: 1 0 auto; min-height: 0; }
.auth-shell .auth-card { border: 1px solid var(--esy-border); border-radius: var(--esy-radius-md); background: #fff; box-shadow: var(--esy-shadow); }
.auth-shell .auth-card > a:first-child img { width: 132px; height: auto; }
.product-discovery-redirect { max-width: 680px; padding: clamp(26px,6vw,52px); }
.soft-search-result {
  display: block;
  width: 100%;
  margin-top: .5rem;
  padding: .75rem 1rem;
  border: 1px solid var(--soft-border, #e6e1d7);
  border-radius: .75rem;
  background: #fff;
  color: var(--soft-navy, #13233f);
  text-decoration: none;
}

.soft-search-result:hover,
.soft-search-result:focus-visible { border-color: #e5b900; background: #fffaf0; }

.featured-package { display: grid; grid-template-rows: auto auto auto; gap: 1rem; min-height: 178px; align-content: start; padding: 22px; text-decoration: none; color: inherit; }
.featured-package-country { display: flex; min-height: 2rem; align-items: center; gap: .75rem; }
.featured-package-country img { flex: 0 0 auto; width: 2.5rem; height: 1.75rem; object-fit: contain; border-radius: .25rem; box-shadow: 0 3px 9px rgba(9,43,103,.08); }
.featured-package-country strong { color: var(--esy-navy); line-height: 1.25; }
.featured-package-plan { font-size: 1.2rem; font-weight: 750; color: var(--soft-navy, #13233f); }
.featured-package-price { margin-top: auto; color: #675a42; font-weight: 650; }

@media (max-width: 640px) {
  .featured-package { min-height: 0; gap: .75rem; padding: 18px; }
}
