/* =========================================================
   StudyStay — foglio di stile principale
   ========================================================= */

:root {
  /* Palette */
  --bg: #FAF9F6;
  --bg-warm: #F5F1EA;
  --surface: #FFFFFF;
  --green: #233D35;
  --green-900: #1B312A;
  --orange: #D9774A;          /* arancio brand: titoli grandi, decorazioni */
  --orange-ink: #C4521F;      /* arancio accessibile: testi piccoli e bottoni con testo bianco */
  --orange-ink-hover: #A6441A;
  --mint: #E3F0EA;
  --mint-strong: #CFE5DA;
  --gold: #D9A845;
  --pink: #E6C2D9;

  --text: #1E2B27;
  --text-soft: #4F5D57;
  --text-muted: #5E6B66;
  --line: #E7E4DD;
  --chip: #F2F0EB;

  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(30, 43, 39, .06);
  --shadow: 0 10px 30px -12px rgba(30, 43, 39, .18);
  --shadow-lg: 0 24px 60px -20px rgba(30, 43, 39, .25);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--green);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; margin: 0; line-height: 1.08; letter-spacing: -.02em; color: var(--green); }
p { margin: 0; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
.on-dark :focus-visible, .on-dark:focus-visible { box-shadow: 0 0 0 3px var(--green), 0 0 0 5px #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 56px; width: auto; }
.main-nav ul { list-style: none; display: flex; gap: clamp(16px, 2.4vw, 40px); margin: 0; padding: 0; }
.main-nav a { text-decoration: none; color: var(--text); font-size: 15.5px; font-weight: 450; padding: 8px 2px; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { display: inline-flex; }
.main-nav .mobile-cta { display: none; color: #fff; }
.main-nav .mobile-cta::after { display: none; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; color: var(--green); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .brand img { height: 46px; }
  .header-inner { min-height: 64px; }
  .nav-toggle { display: inline-flex; }
  .header-inner .header-cta { display: none; }
  .main-nav { position: fixed; inset: 64px 0 auto 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px var(--gutter) 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li a { display: block; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .main-nav li a::after { display: none; }
  .main-nav .mobile-cta { display: flex; margin-top: 16px; }
  .hero-badge { font-size: 14px; padding: 8px 14px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 1.5px solid transparent; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: background-color .15s, box-shadow .15s, transform .15s, border-color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn-orange { background: var(--orange-ink); color: #fff; box-shadow: 0 8px 20px -8px rgba(196, 82, 31, .5); }
.btn-orange:hover { background: var(--orange-ink-hover); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-900); }
.btn-mint { background: var(--mint); color: var(--green); border-color: var(--mint-strong); }
.btn-mint:hover { background: var(--mint-strong); }
.btn-outline { background: var(--surface); color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--mint); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--mint); }
.btn-danger { background: #fff; color: #A3282B; border-color: #E9C4C4; }
.btn-danger:hover { background: #FBEDED; }
.btn-danger-solid { background: #A3282B; color: #fff; }
.btn-danger-solid:hover { background: #87201F; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14.5px; border-radius: 10px; }
.btn-block { width: 100%; white-space: normal; text-align: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 600; font-size: 17px; text-decoration: none; padding: 6px 2px; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 12px; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-title { font-size: clamp(34px, 5vw, 58px); }
.section-sub { color: var(--text-soft); font-size: 17px; margin-top: 12px; }
.section-center { text-align: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 50% 0%, #F7F3EC 0%, transparent 70%), linear-gradient(180deg, #F3F1EB 0%, #F6F2EB 60%, #F8EFE7 100%); padding: clamp(56px, 9vw, 96px) 0 clamp(48px, 7vw, 64px); text-align: center; }
.hero::before, .hero::after { content: ""; position: absolute; border: 1.5px solid rgba(35, 61, 53, .12); border-radius: 50%; pointer-events: none; }
.hero::before { width: 420px; height: 420px; left: -260px; top: 30px; }
.hero::after { width: 420px; height: 420px; right: -180px; bottom: -220px; border-color: rgba(217, 119, 74, .18); }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--mint); color: var(--green); font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 999px; }
.hero-title { margin: 28px auto 0; font-size: clamp(48px, 9vw, 108px); letter-spacing: -.035em; line-height: 1.02; font-weight: 400; }
.hero-title em { display: block; font-style: italic; color: var(--orange); }
.hero-sub { max-width: 640px; margin: 24px auto 0; font-size: clamp(17px, 2vw, 21px); color: var(--text-soft); }

.search-card { position: relative; z-index: 1; max-width: 1060px; margin: 52px auto 0; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 0 16px 16px; text-align: left; }
.search-tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 4px; }
.search-tab { display: inline-flex; align-items: center; gap: 10px; padding: 20px 20px 18px; font-weight: 600; color: var(--green); border-bottom: 2.5px solid var(--green); margin-bottom: -1px; }
.search-fields { display: grid; grid-template-columns: 1.35fr 1fr 1fr auto; align-items: stretch; padding-top: 12px; }
.search-field { padding: 8px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.search-field:nth-child(3) { border-right: 0; }
.search-field label { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > .icon { position: absolute; left: 0; color: var(--text-muted); pointer-events: none; width: 20px; height: 20px; }
.input-icon .euro { position: absolute; left: 2px; color: var(--text-muted); font-weight: 600; pointer-events: none; }
.input-icon input, .input-icon select { width: 100%; border: 0; background: transparent; padding: 8px 8px 8px 32px; font-size: 17px; min-height: 44px; border-radius: 8px; appearance: none; -webkit-appearance: none; }
.input-icon select { padding-right: 32px; cursor: pointer; }
.input-icon .chev { position: absolute; right: 4px; left: auto; }
.input-icon input::placeholder { color: #7E8A85; }
.search-submit { align-self: center; min-height: 64px; padding: 0 30px; font-size: 20px; border-radius: 14px; }
.search-submit .icon { width: 22px; height: 22px; }
.hero-checks { position: relative; z-index: 1; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 48px; margin-top: 32px; color: var(--text-soft); font-size: 15.5px; }
.hero-checks li { display: inline-flex; align-items: center; gap: 10px; }
.check-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--mint-strong); color: var(--green); display: inline-flex; align-items: center; justify-content: center; }
.check-dot svg { width: 13px; height: 13px; }
.plain { list-style: none; margin: 0; padding: 0; }

@media (max-width: 860px) {
  .search-fields { grid-template-columns: 1fr; padding-top: 4px; }
  .search-field { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 8px; }
  .search-field:nth-child(3) { border-bottom: 0; }
  .search-submit { width: 100%; margin-top: 8px; min-height: 56px; }
  .hero-checks { gap: 10px 24px; }
}

/* ---------- Cards grid ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 1024px) { .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-cards { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Card alloggio ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-media { position: relative; aspect-ratio: 16 / 10.5; background: var(--mint); overflow: hidden; }
.card-media > a { display: block; height: 100%; text-decoration: none; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.03); }
.badge-verified { position: absolute; left: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .95); color: var(--green); font-size: 13.5px; font-weight: 600; padding: 6px 12px 6px 9px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.badge-verified svg { width: 16px; height: 16px; }
.fav-btn { position: absolute; right: 14px; top: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .96); color: var(--green); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .15s, color .15s; }
.fav-btn:hover { transform: scale(1.08); }
.fav-btn svg { width: 22px; height: 22px; }
.fav-btn[aria-pressed="true"] { color: var(--orange-ink); }
.fav-btn[aria-pressed="true"] svg path { fill: currentColor; }

.placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--green); background:
  radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .7) 0 60px, transparent 61px),
  radial-gradient(circle at 85% 90%, rgba(217, 119, 74, .12) 0 90px, transparent 91px),
  linear-gradient(135deg, #E3F0EA 0%, #EEF1EA 55%, #F6EBE2 100%); }
.placeholder svg { width: 64px; height: 64px; opacity: .85; }
.placeholder span { font-family: var(--font-serif); font-style: italic; font-size: 17px; color: var(--text-soft); }

.card-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-loc { font-size: 13.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-ink); }
.price { font-weight: 700; font-size: 24px; color: var(--green); white-space: nowrap; letter-spacing: -.01em; }
.price small { font-size: 13px; font-weight: 500; color: var(--text-muted); margin-left: 1px; }
.card-title { font-size: 26px; line-height: 1.15; letter-spacing: -.015em; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.meta { display: flex; flex-direction: column; gap: 10px; color: var(--text-soft); font-size: 15.5px; }
.meta li { display: flex; align-items: center; gap: 10px; }
.meta .icon { color: var(--text-muted); width: 19px; height: 19px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--chip); color: var(--text-soft); font-size: 13.5px; padding: 6px 12px; border-radius: 8px; }
.ref { font-size: 15px; font-weight: 700; color: var(--text-soft); letter-spacing: .02em; }
.card-actions { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; margin-top: auto; padding-top: 4px; }
.card-actions .btn { padding-left: 12px; padding-right: 12px; }
@media (max-width: 380px) { .card-actions { grid-template-columns: 1fr; } }

.section-foot { text-align: center; margin-top: 40px; }

/* ---------- Dark section / coinquilini ---------- */
.section-dark { background: var(--green); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: #F0A57F; }
.section-dark .section-sub { color: rgba(255, 255, 255, .85); }
.section-dark .link-arrow { color: #fff; }
.dark-head-icon { color: var(--gold); width: 84px; height: 84px; }
@media (max-width: 640px) { .dark-head-icon { display: none; } }

.profile-card { background: var(--surface); color: var(--text); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--line); }
.profile-head { display: flex; align-items: center; gap: 16px; }
.avatar { width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 600; font-size: 24px; color: var(--green); background: var(--pink); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-family: var(--font-sans); font-size: 24px; font-weight: 450; color: var(--text); letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; line-height: 1.2; }
.profile-name svg { width: 22px; height: 22px; color: var(--green); }
.profile-uni { color: var(--text-soft); margin-top: 4px; }
.profile-desc { color: var(--text); font-size: 16.5px; }
.profile-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; margin-top: auto; }
.budget { font-weight: 700; color: var(--green); }
.profiles-note { margin-top: 28px; font-size: 14px; color: rgba(255, 255, 255, .8); max-width: 760px; }
.profiles-note a { color: #fff; }
.light-note { color: var(--text-muted); }
.light-note a { color: var(--green); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; text-align: center; }
.step-top { display: inline-flex; align-items: flex-start; gap: 18px; margin-bottom: 26px; }
.step-icon { width: 80px; height: 80px; border-radius: 20px; background: var(--mint); color: var(--green); display: inline-flex; align-items: center; justify-content: center; }
.step-icon svg { width: 30px; height: 30px; }
.step-num { font-family: var(--font-serif); font-size: 60px; font-weight: 600; line-height: .9; color: #E4E2DD; }
.step h3 { font-size: 30px; margin-bottom: 10px; }
.step p { color: var(--text-soft); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 48px; margin-top: 44px; } }

/* ---------- Quality box ---------- */
.quality { background: var(--orange-ink); color: #fff; border-radius: 32px; padding: clamp(36px, 6vw, 80px) clamp(24px, 6vw, 100px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.quality .eyebrow { color: #fff; }
.quality h2 { color: #fff; font-size: clamp(34px, 5vw, 58px); }
.quality-note { display: flex; gap: 16px; align-items: flex-start; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); border-radius: 18px; padding: 24px 26px; font-size: 17px; line-height: 1.6; }
.quality-note svg { width: 26px; height: 26px; flex-shrink: 0; margin-top: 2px; }
@media (max-width: 860px) { .quality { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(56px, 8vw, 96px); padding: 44px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.footer-brand img { height: 78px; width: auto; }
.footer-brand p { color: var(--text-soft); font-size: 15.5px; }
.footer-links { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-size: 17px; padding: 6px 0; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { color: var(--text-muted); font-size: 15.5px; }
.footer-legal a { color: var(--text-muted); }

/* ---------- Page header (inner pages) ---------- */
.page-hero { background: linear-gradient(180deg, #F3F1EB 0%, var(--bg) 100%); padding: clamp(40px, 7vw, 72px) 0 clamp(28px, 4vw, 40px); }
.page-hero h1 { font-size: clamp(38px, 6vw, 68px); }
.page-hero h1 em { color: var(--orange); }
.page-hero p { color: var(--text-soft); font-size: 18px; margin-top: 14px; max-width: 640px; }

/* ---------- Filters ---------- */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 14px; align-items: end; box-shadow: var(--shadow-sm); }
.filters.filters-2 { grid-template-columns: 1.4fr 1fr auto; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.control { width: 100%; min-height: 46px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; padding: 10px 12px; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.control:hover { border-color: #CFCBC2; }
.control:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(35, 61, 53, .15); }
select.control { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235E6B66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 38px; }
textarea.control { min-height: 120px; resize: vertical; line-height: 1.5; }
.check-inline { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; font-weight: 500; cursor: pointer; }
.check-inline input { width: 20px; height: 20px; accent-color: var(--green); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 28px 0 22px; color: var(--text-soft); }
.results-bar strong { color: var(--green); }
@media (max-width: 960px) { .filters, .filters.filters-2 { grid-template-columns: 1fr 1fr; } .filters .filters-actions { grid-column: 1 / -1; } }
@media (max-width: 520px) { .filters, .filters.filters-2 { grid-template-columns: 1fr; } }
.filters-actions { display: flex; gap: 8px; }
.filters-actions .btn { flex: 1; }

/* ---------- States ---------- */
.empty-state { text-align: center; padding: 56px 24px; background: var(--surface); border: 1px dashed #D8D4CB; border-radius: var(--radius); color: var(--text-soft); }
.empty-state h3 { font-size: 26px; margin-bottom: 8px; }
.section-dark .empty-state { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .85); }
.section-dark .empty-state h3 { color: #fff; }
.skeleton { border-radius: 20px; background: linear-gradient(90deg, #EFECE6 0%, #F7F5F0 50%, #EFECE6 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; min-height: 460px; }
.section-dark .skeleton { background: linear-gradient(90deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.06) 100%); background-size: 200% 100%; min-height: 380px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.notice { background: #FFF7E6; border: 1px solid #F1D9A6; color: #6B4E12; padding: 12px 16px; border-radius: 12px; font-size: 14.5px; margin: 16px auto; max-width: var(--container); }
.demo-banner { background: var(--gold); color: var(--green-900); text-align: center; font-size: 14px; font-weight: 600; padding: 8px 16px; }

/* ---------- Detail page ---------- */
.breadcrumb { font-size: 14.5px; color: var(--text-muted); padding: 24px 0 0; }
.breadcrumb a { color: var(--green); }
.detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 40px; padding: 24px 0 0; align-items: start; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; gap: 28px; } }
.gallery-main { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: var(--mint); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: var(--green); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow); }
.gallery-nav.prev { left: 14px; } .gallery-nav.next { right: 14px; }
.gallery-count { position: absolute; right: 14px; bottom: 14px; background: rgba(27, 49, 42, .8); color: #fff; font-size: 13.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.gallery-thumbs button { flex: 0 0 auto; width: 104px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--mint); opacity: .75; transition: opacity .15s, border-color .15s; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--green); opacity: 1; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { font-size: clamp(32px, 4.5vw, 50px); margin: 10px 0 18px; }
.detail-section { margin-top: 36px; }
.detail-section h2 { font-size: 28px; margin-bottom: 14px; }
.detail-desc { white-space: pre-line; color: var(--text); font-size: 17px; line-height: 1.7; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.fact .icon { color: var(--green); width: 22px; height: 22px; }
.fact small { display: block; color: var(--text-muted); font-size: 13px; }
.fact strong { font-weight: 600; }
.contact-box { position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.contact-box .price { font-size: 34px; }
.contact-box p { color: var(--text-soft); font-size: 15px; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 30px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--text-soft); font-size: 17px; line-height: 1.75; }
.prose p + p { margin-top: 12px; }
.prose a { color: var(--green); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--green); color: #fff; padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 500; animation: toast-in .25s ease-out; }
.toast.error { background: #A3282B; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
