:root, :root[data-theme="night"]{
  --bg:#0d0d0d; --bg2:#000; --card:#171717; --card2:#1f1f1f;
  --ink:#f5f5f5; --muted:#9a9a9a; --line:#2c2c2c;
  --input:#0f0f0f; --hover:#1c1c1c;
  --brand:#E8763A; --brand-dark:#cf6027; --brand-soft:#3a2517;
  --green:#5fb96a; --red:#ef5350;
  --shadow:0 8px 26px rgba(0,0,0,.55); --radius:14px;
}
:root[data-theme="day"]{
  --bg:#f6f4f1; --bg2:#ffffff; --card:#ffffff; --card2:#f1efe9;
  --ink:#1d1d1d; --muted:#6f6f6f; --line:#e6e2dc;
  --input:#ffffff; --hover:#f4f1ec;
  --brand:#E8763A; --brand-dark:#cf6027; --brand-soft:#fbe9dd;
  --green:#1d9d5b; --red:#d93b34;
  --shadow:0 6px 20px rgba(0,0,0,.10);
}
html{transition:background .25s,color .25s}
*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,"Segoe UI",Roboto,Inter,Arial,sans-serif;background:var(--bg);color:var(--ink);line-height:1.5}
a{color:var(--brand);text-decoration:none}
img{max-width:100%;display:block}

/* top nav */
.nav{position:sticky;top:0;z-index:50;background:var(--bg2);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:12px 22px}
.brand{display:flex;align-items:center;gap:12px}
.brand img{height:42px;width:auto}
.brand .txt{display:flex;flex-direction:column;line-height:1.05}
.brand .txt b{font-weight:800;font-size:18px;letter-spacing:1px;color:var(--ink)}
.brand .txt small{color:var(--brand);font-weight:700;font-size:9px;letter-spacing:2px}
.nav-links{display:flex;gap:8px}
.nav-links a{padding:8px 14px;border-radius:999px;color:var(--ink);font-weight:600;font-size:14px}
.nav-links a:hover{background:var(--card)}
.nav-links a.active{background:var(--brand);color:#fff}

.wrap{max-width:1100px;margin:0 auto;padding:24px 22px 60px}
.hero{overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:28px;display:flex;align-items:stretch;flex-wrap:wrap;background:linear-gradient(135deg,#1c1408,#0d0d0d 65%)}
.hero-text{flex:1 1 360px;padding:46px 38px;display:flex;flex-direction:column;justify-content:center}
.hero-logo{height:96px;width:auto;margin-bottom:14px;filter:drop-shadow(0 4px 18px rgba(0,0,0,.6))}
.hero h1{margin:0 0 12px;font-size:38px;color:#fff;line-height:1.12}
.hero h1 span{color:var(--brand)}
.hero p{margin:0;color:#eadfd6;max-width:540px}
.hero-photo{flex:1 1 380px;min-height:330px;object-fit:cover;display:block}
@media(max-width:760px){.hero-photo{width:100%;min-height:220px}.hero-text{padding:34px 24px}.hero h1{font-size:30px}}
/* photo strip */
.strip{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;border-radius:var(--radius);overflow:hidden;margin-bottom:30px}
.strip img{width:100%;height:130px;object-fit:cover}
@media(max-width:700px){.strip{grid-template-columns:repeat(2,1fr)}}

/* site footer */
.site-footer{text-align:center;padding:26px 20px;color:var(--muted);font-size:13px;border-top:1px solid var(--line);margin-top:10px}
.site-footer b{color:var(--ink)}
.site-footer .brandname{color:var(--brand);font-weight:700}

/* preview iframe */
.preview-frame{width:100%;height:620px;border:1px solid var(--line);border-radius:var(--radius);background:#000}

/* embedded mode (inside management dashboard) */
html.embed .nav, html.embed .site-footer{display:none}
html.embed body{background:var(--bg)}
html.embed .wrap{padding-top:14px}

/* management dashboard shell */
.dash-tabs{display:flex;gap:8px}
.dash-tabs button{padding:8px 16px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--ink);font-weight:700;font-size:14px;cursor:pointer}
.dash-tabs button.active{background:var(--brand);color:#fff;border-color:var(--brand)}
.dash-frame{width:100%;height:calc(100vh - 60px);border:0;display:block;background:var(--bg)}
.lock-card{max-width:360px;margin:12vh auto;text-align:center}
.lock-card img{height:120px;margin-bottom:16px}

h2.section{font-size:20px;margin:28px 0 14px}
#rooms,#book{scroll-margin-top:80px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}

.room{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column}
.room .ph{height:180px;background-size:cover;background-position:center;position:relative}
.room .ph{cursor:pointer}
.room .tag{position:absolute;top:12px;left:12px;background:rgba(0,0,0,.75);color:#fff;font-size:12px;font-weight:700;padding:5px 10px;border-radius:999px;border:1px solid var(--brand)}
.room .tag.photos{left:auto;right:12px;border-color:#fff}
.gal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.gal-grid img{width:100%;height:150px;object-fit:cover;border-radius:10px;border:1px solid var(--line)}
.room .body{padding:16px;flex:1;display:flex;flex-direction:column}
.room h3{margin:0 0 4px;font-size:17px}
.room .feat{color:var(--muted);font-size:13px;margin-bottom:10px}
.room .price{font-weight:800;font-size:18px;margin-top:auto;color:var(--ink)}
.room .price span{font-weight:500;color:var(--muted);font-size:13px}

.btn{display:inline-block;border:0;cursor:pointer;background:var(--brand);color:#fff;font-weight:700;padding:11px 18px;border-radius:10px;font-size:14px}
.btn:hover{background:var(--brand-dark)}
.btn.block{width:100%;text-align:center}
.btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--line)}
.btn.ghost:hover{background:var(--card2)}
.btn.sm{padding:6px 12px;font-size:13px;border-radius:8px}
.btn.danger{background:var(--red)}
.btn.gray{background:#3a3a3a;color:#9a9a9a}

.field{margin-bottom:14px}
.field label{display:block;font-size:13px;font-weight:600;margin-bottom:6px;color:#cfcfcf}
.field input,.field select,.field textarea{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:10px;font-size:14px;font-family:inherit;background:var(--input);color:var(--ink)}
.field input::placeholder{color:#6a6a6a}
.row{display:flex;gap:12px;flex-wrap:wrap}
.row .field{flex:1;min-width:140px}

.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px}

/* modal */
.modal-bg{position:fixed;inset:0;background:rgba(0,0,0,.7);display:none;align-items:center;justify-content:center;padding:20px;z-index:100}
.modal-bg.open{display:flex}
.modal{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);max-width:460px;width:100%;padding:24px;max-height:90vh;overflow:auto}
.modal h3{margin:0 0 4px}
.modal .close{float:right;cursor:pointer;color:var(--muted);font-size:22px;line-height:1}

table{width:100%;border-collapse:collapse;font-size:14px}
th,td{text-align:left;padding:11px 10px;border-bottom:1px solid var(--line)}
th{font-size:12px;text-transform:uppercase;letter-spacing:.4px;color:var(--muted)}
tr:hover td{background:var(--hover)}
tfoot td{font-weight:800;color:var(--ink);border-top:2px solid var(--brand)}

.pill{display:inline-block;font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px}
.pill.confirmed,.pill.paid{background:rgba(95,185,106,.16);color:var(--green)}
.pill.pending{background:rgba(232,118,58,.18);color:var(--brand)}
.pill.cancelled{background:rgba(239,83,80,.16);color:var(--red)}

.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-bottom:24px}
.stat{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.stat.accent{border-color:var(--brand);background:linear-gradient(160deg,#211608,#171717)}
.stat .label{color:var(--muted);font-size:13px;font-weight:600}
.stat .num{font-size:26px;font-weight:800;margin-top:4px;color:var(--ink)}
.stat .num.green{color:var(--green)}
.stat .num.red{color:var(--red)}
.stat .num.brand{color:var(--brand)}

.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:16px}
.toolbar select,.toolbar input{padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--input);color:var(--ink);font-size:14px}
.toolbar .spacer{flex:1}
.muted{color:var(--muted)}
.notice{background:var(--brand-soft);border:1px solid var(--brand);color:#f0c9ac;padding:10px 14px;border-radius:10px;font-size:13px;margin-bottom:18px}
.empty{text-align:center;color:var(--muted);padding:40px}
.subtle-head{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700;margin:0 0 12px;color:var(--ink)}
.subtle-head .dot{color:var(--brand)}
@media(max-width:600px){.nav{padding:10px 14px}.hero{padding:28px 20px}.hero img{height:90px}}
