@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,600;9..144,750;9..144,850&display=swap');

:root {
  color-scheme: light;
  --ink: #321a3e;
  --muted: #604c64;
  --paper: #fff9f0;
  --white: #fffdf9;
  --pink: #f45e9b;
  --plum: #9b1d58;
  --yellow: #ffdd6d;
  --line: #dfcdd9;
  --display: Fraunces, Georgia, serif;
  --sans: 'Be Vietnam Pro', system-ui, sans-serif;
  --gutter: clamp(18px, 4vw, 52px);
  --theme: #fff0f5;
  --strong: #ffc5dc;
  --theme-ink: #8c2456;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--sans); }
a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #7222a3; outline-offset: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.08; font-family: var(--display); }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header nav { max-width: 1360px; margin: auto; min-height: 70px; padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 850 clamp(1.1rem, 2.7vw, 1.6rem)/1 var(--display); text-decoration: none; letter-spacing: -.035em; }
.brand span { border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; background: var(--pink); font-size: 1.5rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.nav-link { margin-inline: 9px; font-weight: 700; text-decoration: none; font-size: .9rem; }
.nav-link:hover, .card h3 a:hover { text-decoration: underline; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; border: 1px solid var(--ink); padding: 8px 14px; border-radius: 999px; color: var(--ink); background: var(--white); text-decoration: none; font-size: .875rem; font-weight: 700; }
.button:hover, [aria-current='page'].button { background: #ded5fa; }
.button.primary, .filters [aria-pressed='true'] { background: var(--ink); color: white; }
.button.primary:hover { background: #633c70; }
.hero { max-width: 1256px; margin: clamp(14px, 3vw, 35px) auto 0; width: calc(100% - var(--gutter) * 2); display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); overflow: hidden; background: var(--yellow); border: 1px solid var(--ink); border-radius: 27px; box-shadow: 0 6px 0 #eaa5c6; }
.hero-copy { padding: clamp(26px, 4vw, 59px); align-self: center; }
.label { font-size: .875rem; font-weight: 800; }
.label span { color: var(--plum); font-size: 1.3rem; }
.hero h1 { margin-top: 12px; font-size: clamp(3.05rem, 6.7vw, 6.55rem); font-weight: 850; line-height: .89; letter-spacing: -.078em; }
.hero h1 em { display: block; color: var(--plum); font-style: normal; }
.hero p { max-width: 36ch; margin: 22px 0 24px; }
.hero-art { min-height: 420px; background: #c5a5e7 center center / cover no-repeat; background-image: url('https://dalat-di-dau.phamkhanhvu.chatgpt.site/art/da-lat-bloom.jpg'), radial-gradient(ellipse at 26% 79%, #f45e9b 0 13%, transparent 38%), radial-gradient(ellipse at 80% 65%, #fbb84f 0 10%, transparent 36%), linear-gradient(145deg, #a68de5, #da8cbb 55%, #ffce6c); }
.search { display: flex; align-items: center; gap: 12px; max-width: 360px; background: var(--white); border: 1px solid var(--ink); border-radius: 11px; padding: 8px 12px; box-shadow: 3px 3px 0 var(--ink); }
.search span { font-size: 1.45rem; line-height: 1; }
.search input { border: 0; background: transparent; width: 100%; min-width: 0; padding: 4px; color: var(--ink); }
.search:focus-within { outline: 3px solid #7222a3; outline-offset: 4px; }
.search input:focus-visible { outline: none; }
.search input::placeholder { color: var(--muted); }
main { max-width: 1360px; margin: auto; padding: clamp(42px, 5vw, 69px) var(--gutter) 64px; }
.heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 16px; margin-bottom: 18px; }
.heading h2 { font-size: clamp(2.05rem, 5vw, 3.8rem); letter-spacing: -.06em; }
.heading span { color: var(--muted); font-size: .875rem; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.filters .button[data-theme]:not([aria-pressed='true']) { background: var(--strong); }
.filters .button[data-theme='']:not([aria-pressed='true']) { background: var(--white); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(15px, 2vw, 24px); }
[data-theme='Thiên nhiên'] { --theme: #f1f8d8; --strong: #c5eab0; --theme-ink: #263e1c; }
[data-theme='Văn hóa'] { --theme: #f3edfd; --strong: #ddd1fa; --theme-ink: #4b2777; }
[data-theme='Ẩm thực'] { --theme: #fff4cb; --strong: #ffdf76; --theme-ink: #6f3a00; }
.card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--ink); border-radius: 19px; overflow: hidden; background: var(--theme); box-shadow: 0 4px 0 var(--strong); }
.photo-wrap, .card-photo, .detail-photo { position: relative; }
.card-photo, .detail-photo { isolation: isolate; display: grid; place-items: center; overflow: hidden; background: var(--strong); color: var(--theme-ink); }
.card-photo { height: clamp(165px, 17vw, 225px); border-bottom: 1px solid var(--ink); }
.motif { font: 750 clamp(4rem, 10vw, 8rem)/1 var(--display); opacity: .5; }
.card-photo img, .detail-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge, .save-icon { position: absolute; top: 12px; border: 1px solid var(--ink); color: var(--ink); }
.badge { left: 12px; border-radius: 999px; background: var(--strong); font-size: .81rem; font-weight: 800; padding: 5px 10px; }
.save-icon { right: 12px; width: 42px; height: 42px; background: var(--white); border-radius: 50%; font-weight: 750; font-size: 1.22rem; }
[data-save][aria-pressed='true'] { color: var(--plum); background: #ffd5e6; }
.card-copy { display: flex; flex: 1; flex-direction: column; padding: clamp(15px, 2vw, 22px); }
.where { color: var(--theme-ink); font-size: .84rem; font-weight: 700; margin: 0 0 7px; }
.card h3 { font-size: clamp(1.55rem, 2.65vw, 2.23rem); font-weight: 750; letter-spacing: -.045em; }
.card h3 a { text-decoration: none; }
.description { flex: 1; margin: 10px 0 16px; color: #46344e; font-size: .94rem; }
.empty { grid-column: 1/-1; border: 1px dashed #917689; text-align: center; padding: 25px; border-radius: 13px; }
.detail { padding-top: 23px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 17px; font-size: .875rem; color: var(--muted); }
.breadcrumb a { font-weight: 700; color: var(--ink); }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); min-height: 365px; overflow: hidden; border: 1px solid var(--ink); border-radius: 24px; background: var(--strong); box-shadow: 0 5px 0 var(--theme); }
.detail-copy { padding: clamp(24px, 4vw, 53px); align-self: center; }
.detail-copy h1 { margin-top: 12px; font-size: clamp(2.7rem, 5.25vw, 5.5rem); line-height: .99; font-weight: 850; letter-spacing: -.069em; }
.detail-copy p { max-width: 45ch; }
.detail-copy .alias { font-weight: 700; color: var(--theme-ink); }
.detail-photo { min-height: 230px; background: var(--theme); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(280px, 1fr); align-items: start; gap: clamp(24px, 5vw, 64px); margin: 38px 0; }
.guide { display: grid; gap: 24px; }
.guide p { margin: 7px 0 0; color: #4d3e50; max-width: 68ch; }
.guide h2, .facts h2, .nearby h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); letter-spacing: -.05em; }
.guide h3 { margin-top: 16px; font-size: 1.35rem; }
.tip, .facts { padding: clamp(17px, 2vw, 25px); border: 1px solid var(--ink); border-radius: 15px; }
.tip { background: #fff0bc; }
.tip h2 { font-size: 1.65rem; }
.facts { background: var(--theme); box-shadow: 0 4px var(--strong); }
.facts dl { margin: 13px 0 0; }
.facts dl div { border-top: 1px solid #34213d30; padding: 10px 0; }
.facts dt { font-size: .875rem; font-weight: 700; color: var(--theme-ink); }
.facts dd { margin: 3px 0 0; font-weight: 700; }
.facts small { display: block; color: var(--muted); margin-top: 5px; font-weight: 400; }
.nearby { border-top: 1px solid var(--line); padding-top: 23px; }
.nearby-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.nearby-links a { border-radius: 14px; padding: 16px; background: var(--theme); border: 1px solid var(--ink); text-decoration: none; }
.nearby-links a:hover strong { text-decoration: underline; }
.nearby-links strong { display: block; font: 750 1.42rem/1.15 var(--display); }
.nearby-links span { color: var(--theme-ink); font-size: .875rem; }
@media (max-width: 970px) {
  .hero-art { min-height: 370px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-photo { height: clamp(170px, 25vw, 235px); }
}
@media (max-width: 720px) {
  .hero, .detail-hero, .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-art { min-height: clamp(210px, 56vw, 350px); }
  .hero h1 { font-size: clamp(3.35rem, 11vw, 5.6rem); }
  .hero p { margin: 15px 0 19px; }
  .detail-photo { grid-row: 1; min-height: clamp(200px, 53vw, 350px); }
  .facts { grid-row: 1; }
}
@media (max-width: 470px) {
  .site-header nav { min-height: 62px; }
  .nav-link { display: none; }
  .grid, .nearby-links { grid-template-columns: minmax(0, 1fr); }
  .card-photo { height: clamp(190px, 56vw, 260px); }
}

[data-theme='Lưu trú'] { --theme: #e8f3fa; --strong: #badbed; --theme-ink: #244c62; }
.catalog-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 25px; }
.full-catalog { list-style: none; margin: 0; padding: 0; }
.full-catalog li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.full-catalog a { display: block; color: var(--ink); font-weight: 700; }
.full-catalog span, .map-credit { color: var(--muted); font-size: .875rem; }
.map-credit { max-width: 1360px; margin: auto; padding: 0 var(--gutter) 30px; }

.featured-spot { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); overflow: hidden; margin: 0 0 clamp(32px, 6vw, 62px); border: 1px solid var(--ink); border-radius: 24px; background: #ffe0ee; box-shadow: 0 5px #f3bfd6; }
.featured-photo { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 215px; overflow: hidden; background: radial-gradient(circle at 35% 40%, #ae4572, #502748 72%); color: #ffe0aa; }
.featured-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-copy { align-self: center; padding: clamp(21px, 4vw, 45px); }
.featured-copy .label { margin: 0 0 7px; color: var(--plum); }
.featured-copy h2 { font-size: clamp(1.9rem, 4.5vw, 3.5rem); letter-spacing: -.045em; }
.featured-copy p:not(.label) { max-width: 44ch; margin: 9px 0 17px; }
#places { scroll-margin-top: 16px; }
.sense-note { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 26px; margin-top: clamp(36px, 5vw, 62px); padding: clamp(16px, 3vw, 25px); border: 1px solid var(--line); border-left: 4px solid #d987ac; border-radius: 14px; background: #fff2f7; }
.sense-note h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.sense-note p { max-width: 63ch; margin: 6px 0 0; color: var(--muted); font-size: .875rem; }
.sense-link { color: var(--plum); font-size: .875rem; font-weight: 800; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .featured-spot { grid-template-columns: minmax(0, 1fr); }
  .featured-photo { min-height: clamp(160px, 46vw, 240px); }
}
