/* Melati Villas: styles translated from the Claude Design draft */
:root {
  --bg: #F7F5EF; --ink: #1F2A2A; --ink-hover: #0B1F30; --accent: #17616B;
  --line: #CFCBBE; --line-2: #C4C0B2; --sand: #ECE9DF; --sage: #DFE5E1; --cream: #EAE3D2;
  --deep: #12494F; --gold: #F2C879; --mute: #3D4F4A; --olive: #5A6638; --clay: #9A4A2B;
  --serif: Marcellus, Georgia, serif; --sans: Figtree, 'Helvetica Neue', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); } a:hover { color: var(--ink-hover); }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.eyebrow.sm { font-size: 13px; letter-spacing: .16em; }
.display { font-family: var(--serif); font-size: clamp(44px, 6vw, 84px); line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; }
.h2 { font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); line-height: 1.1; text-wrap: balance; }
.h2.sm { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; }
.lead { font-size: 19px; text-wrap: pretty; }
.pretty { text-wrap: pretty; }
.btn { text-decoration: none; font-weight: 600; font-size: 16px; min-height: 52px; display: inline-flex; align-items: center; gap: 12px; padding: 0 32px; border-radius: 999px; background: var(--ink); color: #fff; border: 0; font-family: inherit; cursor: pointer; }
.btn:hover { background: var(--ink-hover); color: #fff; }
.btn.sm { min-height: 44px; font-size: 15px; letter-spacing: .04em; padding: 0 24px; }
.btn.gold { background: var(--gold); color: var(--ink); min-height: 56px; width: 100%; justify-content: center; }
.btn.gold:hover { background: #F6D79A; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); min-height: 44px; padding: 0 24px; font-size: 15px; }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.link { font-weight: 600; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; text-underline-offset: 6px; }
.photo { border-radius: 4px; background: var(--sage); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* header */
.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 28px; padding-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand span { font-family: var(--serif); font-size: 22px; letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 36px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; letter-spacing: .04em; min-height: 44px; display: flex; align-items: center; }
.nav a.btn { font-weight: 600; color: #fff; }

/* home: hero */
.hero { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 56px 72px; padding-top: 56px; padding-bottom: 104px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; padding-bottom: 32px; }
.hero-text .lead { max-width: 460px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; }
.actions .link { font-weight: 500; font-size: 16px; }
.hero-photo { flex: 1 1 100%; aspect-ratio: 2 / 1; }

.glance { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.glance .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 28px 48px; padding-top: 44px; padding-bottom: 44px; }
.stat { display: flex; align-items: baseline; gap: 16px; }
.stat b { font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1; }
.stat span { font-size: 16px; }

/* villa cards */
.section { padding-top: 112px; padding-bottom: 112px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.villas { display: flex; flex-direction: column; gap: 64px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 48px 32px; }
.card { display: flex; flex-direction: column; gap: 20px; }
.card .photo { aspect-ratio: 4 / 3; }
.card:nth-child(even) .photo { background: var(--cream); }
.card-body { display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.card h3 a { text-decoration: none; }
.card p { font-size: 16px; text-wrap: pretty; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; font-size: 15px; }

/* location */
.band { background: var(--sand); }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 80px; }
.split > * { flex: 1 1 400px; min-width: 0; }
.col { display: flex; flex-direction: column; gap: 24px; }
.col > p:not(.eyebrow) { max-width: 480px; text-wrap: pretty; }
.map-wrap { display: flex; flex-direction: column; gap: 12px; }
.map { position: relative; aspect-ratio: 1 / 1; border-radius: 4px; background: #D6DCD3; overflow: hidden; }
.map .road { position: absolute; background: var(--bg); }
.map .north { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.map .home { position: absolute; left: 44%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.map .home i { width: 56px; height: 56px; border-radius: 999px 999px 0 0; background: var(--gold); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.map .home span { padding: 2px 10px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pin { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; font-style: normal; }
.map .pin { position: absolute; }
.pin.padel { background: var(--olive); } .pin.food { background: var(--clay); }
.pin.laundry { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.pin.other { background: var(--accent); }
.note { font-size: 14px; color: var(--mute); }
.places { display: flex; flex-direction: column; gap: 18px; max-width: 480px; }
.places li { display: flex; align-items: flex-start; gap: 16px; }
.places li > span { display: flex; flex-direction: column; }
.places b { font-weight: 600; }
.places small { font-size: 16px; }
.facts { display: flex; flex-direction: column; max-width: 480px; }
.facts li { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts li b { font-weight: 600; text-align: right; }
.band .facts li { border-color: var(--line-2); }

/* long stays */
.arch { aspect-ratio: 5 / 4; border-radius: 999px 999px 0 0; background: var(--cream); }

/* enquiry */
.enquire { background: var(--deep); color: #fff; }
.enquire a { color: #fff; }
.enquire .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 80px; padding-top: 104px; padding-bottom: 104px; }
.enquire .col { flex: 1 1 360px; min-width: 0; gap: 20px; }
.enquire .col p { color: #E3E9EE; max-width: 420px; }
.form { flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; }
.form.stack { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; letter-spacing: .04em; }
.field input, .field select, .field textarea { min-height: 52px; padding: 0 16px; border: 1px solid #8FA3B5; border-radius: 4px; background: #fff; color: var(--ink); font: inherit; width: 100%; }
.field textarea { padding: 12px 16px; min-height: 96px; resize: vertical; }
.form .full { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { grid-column: 1 / -1; min-height: 1.6em; font-weight: 500; }
.form-msg.err { color: var(--gold); }

/* footer */
.site-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding-top: 48px; padding-bottom: 48px; font-size: 15px; }
.site-foot .brand-sm { font-family: var(--serif); font-size: 18px; letter-spacing: .14em; text-transform: uppercase; }
.foot-line { border-top: 1px solid var(--line); }

/* villa page */
.v-intro { display: flex; flex-direction: column; gap: 20px; padding-top: 32px; padding-bottom: 48px; }
.v-intro .display { font-size: clamp(44px, 6vw, 80px); }
.v-intro .lead { max-width: 560px; }
.back { align-self: flex-start; font-size: 15px; font-weight: 500; text-underline-offset: 5px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.gallery { display: flex; flex-direction: column; gap: 16px; }
.gallery > .btn { align-self: flex-start; }
.gallery-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.gallery-grid .main { flex: 2 1 480px; min-width: 0; aspect-ratio: 3 / 2; }
.gallery-grid .side { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.gallery-grid .side .photo { flex: 1 1 0; min-height: 180px; }
.gallery-grid .side .photo:nth-child(1) { background: var(--cream); }
.v-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 64px 80px; padding-top: 88px; padding-bottom: 104px; }
.v-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 72px; }
.v-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 24px 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.v-stats div { display: flex; flex-direction: column; gap: 4px; }
.v-stats b { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1; }
.v-stats span { font-size: 15px; }
.block { display: flex; flex-direction: column; gap: 20px; }
.block > p { max-width: 620px; text-wrap: pretty; white-space: pre-line; }
.rooms { display: flex; flex-direction: column; gap: 28px; }
.room { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.room .photo { flex: 0 1 240px; min-width: 0; aspect-ratio: 4 / 3; }
.room:nth-child(even) .photo { background: var(--cream); }
.room > div:last-child { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.room h3 { font-size: 20px; font-weight: 600; }
.room p { font-size: 16px; }
.incl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0 48px; }
.incl li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.incl li b { font-weight: 600; text-align: right; }
.book { flex: 1 1 320px; min-width: 0; max-width: 420px; padding: 32px; border-radius: 4px; background: var(--deep); color: #fff; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
.book a { color: #fff; font-weight: 600; text-underline-offset: 5px; }
.book .price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.book .price span { font-size: 15px; color: #E3ECEC; }
.book .price b { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; }
.book .field input { border-color: #8FB0B3; }
.book-more { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid #5C8A8E; padding-top: 20px; font-size: 16px; }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; padding-top: 56px; padding-bottom: 56px; }
.strip p { max-width: 720px; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; text-wrap: balance; }
.others { display: flex; flex-direction: column; gap: 48px; padding-top: 104px; padding-bottom: 104px; }
.others .cards { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px 32px; }
.mini { text-decoration: none; display: flex; flex-direction: column; gap: 16px; }
.mini .photo { aspect-ratio: 4 / 3; }
.mini > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.mini .name { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.mini .from { font-size: 15px; }

/* all photos dialog */
dialog.lightbox { width: min(1200px, 100vw); max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0 auto; padding: 0; border: 0; background: var(--bg); }
dialog.lightbox::backdrop { background: rgba(15, 25, 25, .7); }
.lb-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: var(--bg); border-bottom: 1px solid var(--line); z-index: 1; }
.lb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 16px; padding: 24px; }
.lb-grid img { width: 100%; height: auto; border-radius: 4px; }

@media (max-width: 640px) {
  .nav { gap: 0 20px; }
  .nav a.btn { display: none; }
  .hero { padding-top: 24px; padding-bottom: 64px; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .section, .others { padding-top: 72px; padding-bottom: 72px; }
  .enquire .wrap { padding-top: 72px; padding-bottom: 72px; }
  .book { position: static; padding: 24px; }
  .v-body { padding-top: 56px; }
}
