/* Marina Sunrise — web đặt phòng. Màu & font theo nhận diện thương hiệu. */
:root {
  --navy: #22355E;
  --navy-2: #354F86;
  --peach: #FFDBA5;
  --peach-deep: #F0B36A;
  --cream: #FFECCF;
  --bg: #FFF8EE;
  --ink: #1E2A44;
  --muted: #5E6A85;
  --line: #EEDFC6;
  --ok: #1F6E4B;
  --err: #A63A33;
  --r: 14px;
  --num: 'Montserrat', 'Lexend', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Lexend', system-ui, sans-serif; font-weight: 300; color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 500; line-height: 1.2; margin: 0; color: var(--navy); }
h2 { font-size: clamp(24px, 3vw, 32px); }
p { margin: 0; }
a { color: var(--navy-2); }
b, strong { font-weight: 500; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--peach-deep); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--peach); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.top { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; gap: 24px; padding: 18px clamp(16px, 4vw, 56px); color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 500; letter-spacing: .02em; font-size: 17px; }
.brand img { width: 46px; height: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: #E8ECF6; text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--peach); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 5px 12px; font: 500 13px 'Lexend', sans-serif; cursor: pointer; }
.lang:hover { border-color: var(--peach); color: var(--peach); }
.call { display: inline-flex; align-items: center; gap: 8px; background: var(--peach); color: var(--navy); text-decoration: none; border-radius: 999px; padding: 8px 16px; font: 600 14px var(--num); }
.call svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

/* ---------- Hero: bình minh trên đường chân trời ---------- */
.hero { position: relative; overflow: hidden; color: #fff; text-align: center; isolation: isolate;
  background: linear-gradient(180deg, #1A2A4D 0%, #22355E 38%, #3F5A92 72%, #8C8FB0 92%, #E9B98A 100%);
  padding: 128px 20px 300px; }
.hero-text { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.hero h1 { color: #fff; font-weight: 400; font-size: clamp(30px, 5.2vw, 56px); letter-spacing: -.01em; }
.hero p { margin: 18px auto 0; max-width: 560px; color: #DCE3F2; font-size: clamp(15px, 1.6vw, 18px); }
.sun { position: absolute; left: 50%; bottom: 52px; width: min(460px, 110vw); transform: translateX(-50%); z-index: 1; opacity: .95; }
.sun .rays { opacity: .8; }
.horizon { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: 3; }
@media (prefers-reduced-motion: no-preference) {
  .sun { animation: rise 1.6s cubic-bezier(.2,.7,.2,1) both; }
  .sun .rays { animation: glow 1.6s .5s ease-out both; }
  @keyframes rise { from { transform: translate(-50%, 70px); opacity: 0; } to { transform: translate(-50%, 0); opacity: .95; } }
  @keyframes glow { from { opacity: 0; } to { opacity: .8; } }
}

/* ---------- Booking ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(14px, 3vw, 24px); }
.booking { position: relative; z-index: 4; margin-top: -44px; background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 18px 50px -24px rgba(34,53,94,.45); border: 1px solid var(--line); }
.demo-note, .closed-note { background: var(--cream); color: #7A4A0C; border-radius: 10px; padding: 8px 14px; font-size: 14px; margin-bottom: 14px; }
.closed-note { background: #FBE6E4; color: var(--err); }
.search { display: grid; grid-template-columns: 1fr 1fr 110px auto; gap: 14px; align-items: start; }
.search .btn, .search .nights-box { margin-top: 27px; }
.f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.f > span { font-weight: 400; }
.f em { font-style: normal; color: #98A1B6; font-size: 13px; }
.f small { min-height: 0; font-size: 12.5px; color: var(--muted); }
input, select, textarea { font: 400 16px 'Lexend', sans-serif; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; min-height: 48px; }
textarea { resize: vertical; min-height: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-2); background: #fff; box-shadow: 0 0 0 3px rgba(53,79,134,.15); }
input[aria-invalid="true"] { border-color: var(--err); }
.nights-box { align-items: center; justify-content: center; background: var(--cream); border-radius: 10px; min-height: 48px; padding: 4px 8px; gap: 0; }
.nights-box span { font-size: 12px; }
.nights-box b { font: 600 20px var(--num); color: var(--navy); line-height: 1.1; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font: 500 15px 'Lexend', sans-serif; border: 0; border-radius: 10px; padding: 12px 20px; min-height: 48px; cursor: pointer; white-space: nowrap; }
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.navy { background: var(--navy-2); color: #fff; }
.btn.ghost { background: transparent; color: var(--navy-2); border: 1px solid var(--line); }
.btn.peach { background: var(--peach); color: var(--navy); }
.btn[disabled] { opacity: .6; cursor: progress; }
.form-error { color: var(--err); font-size: 14px; margin-top: 10px; min-height: 0; }
.form-error:empty { display: none; }

/* Kết quả phòng trống */
.results:empty { display: none; }
.results { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.results h3 { font-size: 17px; margin-bottom: 12px; }
.prop-name { font-size: 14px; color: var(--muted); margin: 14px 0 8px; }
.type-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.type-row:last-child { border-bottom: 0; }
.thumb { width: 92px; height: 70px; border-radius: 10px; object-fit: cover; background: var(--cream); }
.thumb.ph { display: grid; place-items: end center; overflow: hidden; }
.thumb.ph svg { width: 70px; }
.type-row h4 { margin: 0; font-weight: 500; font-size: 17px; color: var(--navy); }
.type-row .desc { font-size: 14px; color: var(--muted); }
.avail { display: inline-block; font-size: 13px; margin-top: 4px; color: var(--ok); }
.avail.low { color: #A05A1C; }
.avail.none { color: var(--err); }
.price { text-align: right; }
.price .per { font-size: 13px; color: var(--muted); }
.price .amt { font: 600 20px var(--num); color: var(--navy); display: block; }
.price .btn { margin-top: 8px; padding: 9px 16px; min-height: 40px; }
.type-row.sold { opacity: .55; }
.skeleton { height: 70px; border-radius: 10px; background: linear-gradient(90deg, var(--bg), var(--cream), var(--bg)); background-size: 200% 100%; margin: 10px 0; }
@media (prefers-reduced-motion: no-preference) { .skeleton { animation: sh 1.2s linear infinite; } @keyframes sh { to { background-position: -200% 0; } } }

/* Bước thông tin khách */
.guest-step { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.pick-summary { background: var(--cream); border-radius: 12px; padding: 12px 16px; color: var(--navy); margin-bottom: 16px; font-size: 15px; }
.pick-summary b { font-weight: 500; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.grid2.tight { margin: 0; gap: 10px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.total-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.total-row span { display: block; font-size: 13px; color: var(--muted); }
.total-row b { font: 600 26px var(--num); color: var(--navy); display: block; line-height: 1.2; }
.total-row small { font-size: 13px; color: var(--muted); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fine { font-size: 12.5px; color: #8A93A8; margin-top: 12px; }

/* Hoàn tất */
.done-step { text-align: center; padding: 18px 6px 6px; outline: none; }
.done-step .mark { width: 120px; margin: 0 auto 6px; }
.done-step h3 { font-size: 24px; }
.done-step .code { display: inline-block; margin: 14px 0 6px; font: 600 30px var(--num); letter-spacing: .06em; color: var(--navy); background: var(--cream); border: 2px dashed var(--peach-deep); border-radius: 12px; padding: 8px 22px; }
.done-step p { max-width: 520px; margin: 8px auto 0; color: var(--muted); }
.done-step dl { display: grid; grid-template-columns: auto auto; gap: 6px 18px; justify-content: center; text-align: left; margin: 18px auto 0; font-size: 15px; }
.done-step dt { color: var(--muted); }
.done-step dd { margin: 0; color: var(--ink); font-weight: 400; }
.done-step .actions { justify-content: center; margin-top: 20px; }

/* ---------- Các bước ---------- */
.steps { padding: 72px 0 24px; }
.steps ol { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { counter-increment: s; position: relative; padding-top: 52px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--peach); color: var(--navy); font: 600 17px var(--num); display: grid; place-items: center; }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 19px; left: 50px; right: -14px; border-top: 2px dotted var(--peach-deep); }
.steps b { font-size: 18px; color: var(--navy); display: block; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; max-width: 32ch; }

/* ---------- Catalog ---------- */
.rooms { padding: 56px 0 24px; }
.rooms > .muted { margin-top: 8px; }
.catalog { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.cat-item .img { aspect-ratio: 4 / 3; border-radius: var(--r); background: var(--cream); overflow: hidden; display: grid; place-items: end center; }
.cat-item .img img { width: 100%; height: 100%; object-fit: cover; }
.cat-item .img svg { width: 55%; }
.cat-item h3 { font-size: 18px; margin-top: 12px; }
.cat-item .meta { font-size: 14px; color: var(--muted); }
.cat-item .from { font: 600 17px var(--num); color: var(--navy); }

/* ---------- Lookup ---------- */
.lookup { margin: 56px 0 80px; background: var(--cream); border-radius: 22px; padding: 28px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: end; }
.lookup .muted { margin-top: 8px; font-size: 15px; }
.lookup-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.lookup-form input { background: #fff; }
.lookup-result { grid-column: 1 / -1; }
.lookup-result:empty { display: none; }
.lk-card { background: #fff; border-radius: 14px; padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.lk-card dl { display: contents; }
.lk-card div { font-size: 14px; color: var(--muted); }
.lk-card div b { display: block; color: var(--ink); font-size: 15px; }
.badge { display: inline-block; border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 500; }
.badge.pending { background: var(--cream); color: #8A5410; box-shadow: inset 0 0 0 1px var(--peach-deep); }
.badge.booked { background: #E8EDF7; color: var(--navy-2); }
.badge.in { background: #E3F4EC; color: var(--ok); }
.badge.out { background: #EEF0F4; color: #566079; }
.badge.cancel { background: #FBE6E4; color: var(--err); }

/* ---------- Footer ---------- */
.foot { background: var(--navy); color: #DCE3F2; padding: 48px clamp(16px, 5vw, 64px); display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; font-size: 15px; }
.foot h3 { color: var(--peach); font-size: 14px; font-weight: 500; margin: 0 0 6px; }
.foot h3:not(:first-child) { margin-top: 16px; }
.foot a { color: #fff; }
.foot-brand img { width: 110px; margin-bottom: 10px; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .top-actions { margin-left: auto; }
  .search { grid-template-columns: 1fr 1fr; }
  .nights-box { display: none; }
  .search .btn { grid-column: 1 / -1; margin-top: 0; }
  .steps ol { grid-template-columns: 1fr; gap: 22px; }
  .steps li { padding: 0 0 0 54px; }
  .steps li::after { display: none; }
  .lookup { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .call span { display: none; }
  .call { padding: 10px; }
  .brand span { font-size: 15px; }
  .hero { padding: 100px 18px 215px; }
  .sun { width: 320px; bottom: 22px; }
  .horizon { height: 34px; }
  .booking { padding: 16px; border-radius: 18px; margin-top: -34px; }
  .grid2 { grid-template-columns: 1fr; }
  .grid2.tight { grid-template-columns: 1fr 1fr; }
  .type-row { grid-template-columns: 64px 1fr; gap: 12px; }
  .thumb { width: 64px; height: 56px; }
  .price { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; text-align: left; gap: 10px; }
  .price .btn { margin: 0; }
  .total-row .actions { width: 100%; }
  .total-row .actions .btn { flex: 1; }
  .lookup { padding: 20px; }
  .lookup-form { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
}

/* ---------- v10: nội dung quản lý từ trang quản trị ---------- */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); margin-top: 4px; cursor: pointer; }
.consent input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.consent a { color: var(--navy-2); }
.intro { padding: 56px 0 0; }
.intro p { max-width: 68ch; font-size: 17px; color: var(--ink); white-space: pre-line; }
.gallery { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gallery:empty { display: none; }
.g-item { padding: 0; border: 0; background: var(--cream); border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.cat-item button.img { border: 0; padding: 0; width: 100%; cursor: zoom-in; position: relative; }
.cat-item .pc { position: absolute; right: 10px; bottom: 10px; background: rgba(34,53,94,.85); color: #fff; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; }
.cat-item .desc { font-size: 14px; color: var(--ink); margin-top: 4px; }
.cat-item .per { font: 300 14px 'Lexend', sans-serif; color: var(--muted); }
.amen { list-style: none; padding: 0; margin: 8px 0 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.amen li { font-size: 12.5px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--muted); }
.form-error { display: block; }
.form-error:empty { display: none; }
.foot-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 18px; font-size: 13.5px; line-height: 1.7; color: #C9D2E6; }
.foot-legal b { color: #fff; font-weight: 500; }
.foot-links { display: flex; flex-direction: column; gap: 4px; }
.ecom img { width: 130px; height: auto; background: #fff; border-radius: 6px; }
.social a { margin-right: 4px; }
.photo-dialog { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.photo-dialog::backdrop { background: rgba(16,24,44,.86); }
.photo-dialog img { max-width: 100%; max-height: 80vh; border-radius: 12px; margin: 0 auto; }
.pd-close { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; padding: 6px; }
.pd-nav { display: flex; justify-content: center; align-items: center; gap: 18px; color: #fff; margin-top: 12px; font-size: 14px; }
.pd-nav button { background: rgba(255,255,255,.15); border: 0; color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 22px; cursor: pointer; }

/* Trang chính sách */
.top.solid { position: static; background: var(--navy); }
.policy { max-width: 760px; padding-top: 32px; padding-bottom: 72px; }
.policy .back { display: inline-block; margin-bottom: 18px; text-decoration: none; font-size: 14px; }
.policy h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 500; }
.policy #p-updated { margin-top: 8px; font-size: 14px; }
.policy .en-note { background: var(--cream); border-radius: 10px; padding: 10px 14px; margin-top: 16px; font-size: 14px; }
.policy article { margin-top: 24px; }
.policy article h2 { font-size: 19px; margin: 28px 0 10px; }
.policy article p { margin: 0 0 12px; max-width: 70ch; }
.policy article ul { margin: 0 0 12px; padding-left: 22px; }
.policy article li { margin-bottom: 6px; }
.nav a[aria-current="page"] { color: var(--peach); }
.policy { min-height: calc(100vh - 420px); }
