/* BKK Service — site theme. Black, white and deep magenta. */
:root {
  --white: #ffffff;
  --paper: #faf6f8;
  --ink: #0d0b0e;
  --ink-2: #17131a;
  --ink-soft: #4b434a;
  --muted: #7b6f76;
  --pink: #c4009b;
  --pink-bright: #e01bb4;
  --pink-soft: #f9e1f2;
  --pink-deep: #8f0068;
  --line: #ece0e7;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 8px 22px -14px rgba(13, 11, 14, 0.35);
  --shadow: 0 26px 54px -30px rgba(13, 11, 14, 0.55);
  --grad: linear-gradient(135deg, #d8009f 0%, #8f0068 100%);
  --serif: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
  --sans: 'Sarabun', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--pink); color: #fff; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.hint { font-size: 0.86rem; color: var(--muted); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }

/* Small label above headings, with a short line in front */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--pink); font-weight: 700; margin: 0 0 14px; }
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--paper); }
.section-head { text-align: center; margin: 0 auto 48px; max-width: 680px; }
.section-head .eyebrow { justify-content: center; }
.section-head p { color: var(--ink-soft); }

/* Inner page banner */
.page-head { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 96px 0 76px; text-align: center; }
.page-head::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 75% 0%, rgba(196, 0, 155, 0.45), transparent 55%), radial-gradient(ellipse at 10% 100%, rgba(143, 0, 104, 0.35), transparent 50%); }
.page-head::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 120px; height: 3px; transform: translateX(-50%); background: var(--grad); }
.page-head .container { position: relative; }
.page-head h1 { color: #fff; margin-bottom: 14px; }
.page-head p { color: #cfc6cc; max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.page-head .eyebrow { justify-content: center; color: var(--pink-bright); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--white); text-decoration: none; font: inherit; font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-1px); background: var(--pink-deep); border-color: var(--pink-deep); box-shadow: var(--shadow-sm); }
.btn-pink { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 14px 30px -14px rgba(196, 0, 155, 0.8); }
.btn-pink:hover { background: var(--grad); filter: brightness(1.12); border-color: transparent; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-block { width: 100%; }
.btn-small { padding: 9px 16px; font-size: 0.72rem; }
.danger { color: #a3122a; border-color: #e7b9c2; background: transparent; }

/* Top utility bar */
.topbar { background: var(--ink); color: #fff; border-bottom: 1px solid #241d27; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.logo { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; letter-spacing: 0.08em; text-decoration: none; color: #fff; text-transform: uppercase; }
.logo span { color: var(--pink-bright); }
.quick { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; flex-wrap: wrap; }
.quick a { color: #e9e3e7; text-decoration: none; padding: 6px 14px; border: 1px solid #2f2733; border-radius: 999px; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.quick a:hover { border-color: var(--pink); color: #fff; background: rgba(196, 0, 155, 0.15); }
.quick .phone { font-weight: 700; color: var(--pink-bright); border: 0; padding: 0 0 0 6px; letter-spacing: 0.04em; }
.quick .phone:hover { background: none; }
.lang { display: flex; gap: 4px; font-size: 0.78rem; border: 1px solid #2f2733; border-radius: 999px; padding: 3px; }
.lang a { text-decoration: none; padding: 3px 10px; border-radius: 999px; color: #b9b0b6; font-weight: 700; }
.lang a.on { background: var(--grad); color: #fff; }

/* Main navigation */
.mainnav { background: var(--ink-2); position: sticky; top: 0; z-index: 50; box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.8); }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 4px 28px; flex-wrap: wrap; }
.mainnav > .container { position: relative; }
.mainnav > .container > ul > li { position: relative; }
.mainnav a { display: block; padding: 17px 2px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: #a9a1a6; position: relative; white-space: nowrap; transition: color 0.2s; }
.mainnav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 9px; height: 2px; background: var(--grad); transform: scaleX(0); transition: transform 0.25s; }
.mainnav a:hover, .mainnav a.on { color: #fff; }
.mainnav a:hover::after, .mainnav a.on::after { transform: scaleX(1); }
.mainnav .chev { font-size: 0.7em; opacity: 0.6; }
.mainnav .sub { display: none; position: absolute; top: 100%; left: -16px; flex-direction: column; gap: 0; background: var(--ink-2); min-width: 220px; padding: 8px 0; border-top: 2px solid var(--pink); border-radius: 0 0 12px 12px; box-shadow: var(--shadow); z-index: 60; }
.mainnav .has-sub:hover > .sub { display: flex; }
.mainnav .sub a { padding: 11px 20px; font-size: 0.74rem; }
.mainnav .sub a:hover { background: rgba(196, 0, 155, 0.14); }
.mainnav .sub a::after { display: none; }
.menu-btn { display: none; }

/* Cards and grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-img { position: relative; aspect-ratio: 3 / 4; background: var(--ink); overflow: hidden; display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.card-img::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(13, 11, 14, 0.55)); pointer-events: none; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.5rem; }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.badge { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.badge-on { background: var(--pink-soft); color: var(--pink-deep); }
.badge-busy { background: var(--ink); color: #fff; }
.stars { color: var(--pink); letter-spacing: 2px; }
.meta { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.pill { background: var(--pink-soft); color: var(--pink-deep); padding: 6px 15px; border-radius: 999px; font-size: 0.84rem; font-weight: 600; border: 1px solid rgba(196, 0, 155, 0.15); }
.pill.dark { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Profile */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.tab-btn { background: none; border: 0; border-bottom: 2px solid transparent; padding: 16px 22px; font: inherit; font-weight: 700; letter-spacing: 0.12em; font-size: 0.8rem; text-transform: uppercase; cursor: pointer; color: var(--muted); margin-bottom: -1px; transition: color 0.2s, border-color 0.2s; }
.tab-btn:hover { color: var(--ink); }
.tab-btn.on { color: var(--pink-deep); border-bottom-color: var(--pink); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 30px 0; }
.metric { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; text-align: center; background: var(--white); box-shadow: var(--shadow-sm); overflow: hidden; }
.metric::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.metric small { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }
.metric strong { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 600; margin-top: 6px; color: var(--ink); }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; margin-top: 8px; }
.profile-main { min-width: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.gallery-main { position: relative; background: var(--ink); border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 12px 0; font-size: 0.88rem; }
.gallery-bar a { color: var(--pink-deep); font-weight: 700; text-decoration: none; }
.gallery-bar a:hover { text-decoration: underline; }
.gallery-nav { display: flex; gap: 6px; }
.gallery-nav button { border: 1px solid var(--line); background: var(--white); border-radius: 999px; width: 36px; height: 36px; cursor: pointer; font: inherit; font-size: 1.1rem; transition: background 0.2s, color 0.2s; }
.gallery-nav button:hover { background: var(--ink); color: #fff; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.thumbs button { border: 2px solid transparent; padding: 0; background: none; cursor: pointer; border-radius: 10px; overflow: hidden; aspect-ratio: 1; opacity: 0.7; transition: opacity 0.2s, border-color 0.2s; }
.thumbs button:hover, .thumbs button.on { opacity: 1; }
.thumbs button.on { border-color: var(--pink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.spec-table { width: 100%; border-collapse: collapse; margin: 6px 0 22px; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.spec-table th { width: 42%; color: var(--muted); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.rates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line); }
.rate-table { width: 100%; border-collapse: collapse; }
.rate-table td { padding: 14px 4px; border-bottom: 1px dashed var(--line); }
.rate-table td:last-child { text-align: right; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--pink-deep); white-space: nowrap; }
.review-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--shadow-sm); position: relative; }
.review-card::before { content: '“'; position: absolute; top: 4px; right: 18px; font-family: var(--serif); font-size: 4rem; line-height: 1; color: var(--pink-soft); }
.review-card p { margin: 8px 0 0; color: var(--ink-soft); }

/* Sticky booking widget */
.book-widget { position: sticky; top: 84px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); overflow: hidden; }
.book-widget::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0%, rgba(196, 0, 155, 0.45), transparent 60%); pointer-events: none; }
.book-widget > * { position: relative; }
.book-widget h3 { color: #fff; margin-bottom: 6px; font-size: 1.6rem; }
.book-widget .status { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; margin: 6px 0 22px; color: #d3cad0; }
.book-widget .dot { width: 9px; height: 9px; border-radius: 50%; background: #2ee59d; box-shadow: 0 0 0 4px rgba(46, 229, 157, 0.18); }
.book-widget .dot.busy { background: #777; box-shadow: none; }
.book-widget .btn { margin-bottom: 10px; }
.book-widget .btn-line { color: #fff; border-color: rgba(255, 255, 255, 0.35); background: transparent; }
.book-widget .btn-line:hover { border-color: #fff; color: var(--ink); background: #fff; }

/* Forms */
label { display: flex; flex-direction: column; gap: 7px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-soft); }
input, select, textarea { font: inherit; font-weight: 400; letter-spacing: 0; color: var(--ink); background: var(--white); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); width: 100%; transition: border-color 0.2s, box-shadow 0.2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(196, 0, 155, 0.12); }
textarea { min-height: 96px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--white); box-shadow: var(--shadow-sm); }
.panel h3 { margin-bottom: 14px; }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); margin-top: 14px; }
.notice.ok { background: var(--pink-soft); color: var(--pink-deep); }
.notice.err { background: #fdecef; color: #a3122a; }

/* Static pages */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.prose { max-width: 760px; margin: 0 auto; font-size: 1.05rem; color: var(--ink-soft); }
.prose h2 { margin-top: 1.4em; color: var(--ink); }

/* Rates page package table */
.rates-package { width: 100%; border-collapse: collapse; }
.rates-package th { background: var(--ink); color: #fff; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 16px 20px; text-align: left; }
.rates-package td { padding: 20px; border-bottom: 1px solid var(--line); font-size: 1rem; vertical-align: middle; }
.rates-package tbody tr { transition: background 0.2s; }
.rates-package tbody tr:hover { background: var(--pink-soft); }
.rates-package td:first-child strong { font-family: var(--serif); font-size: 1.35rem; color: var(--pink-deep); letter-spacing: 0.04em; }
.rates-package td:last-child { font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }

/* Call to action band */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: #fff; text-align: center; padding: 96px 0; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, rgba(196, 0, 155, 0.55), transparent 60%); }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfc6cc; margin-bottom: 28px; }

/* Footer */
.site-footer { background: var(--ink); color: #b9b0b6; padding: 72px 0 24px; font-size: 0.93rem; border-top: 3px solid var(--pink); }
.site-footer a { color: #d9d1d6; text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--pink-bright); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 0.8rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer .logo { font-size: 1.6rem; display: inline-block; margin-bottom: 14px; }
.foot-bottom { border-top: 1px solid #2a222d; margin-top: 48px; padding-top: 20px; font-size: 0.82rem; color: #8a8187; }
.fatal { background: #fdecef; color: #a3122a; padding: 12px; text-align: center; }
[data-multiline] { white-space: pre-line; }

/* Scroll reveal (added by script, so content stays visible without it) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .card-img img { transition: none; }
}

/* Inline editing (admin only) */
.edit-only { display: none !important; }
body.editing .edit-only { display: inline-flex !important; }
body.editing [data-key] { outline: 1px dashed rgba(196, 0, 155, 0.55); outline-offset: 3px; border-radius: 3px; cursor: text; }
body.editing [data-key]:hover { background: rgba(196, 0, 155, 0.08); }
body.editing [contenteditable="true"]:focus { outline: 2px solid var(--pink); background: var(--pink-soft); color: var(--ink); }
body.editing img[data-key] { cursor: pointer; }
body.editing .reveal { opacity: 1; transform: none; }
#edit-bar { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; gap: 10px; align-items: center; background: var(--ink); color: #fff; padding: 8px 10px 8px 16px; border-radius: 999px; box-shadow: var(--shadow); font-size: 0.85rem; }
#edit-bar button { font: inherit; border: 1px solid var(--pink); background: transparent; color: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
#edit-bar button.on { background: var(--grad); border-color: transparent; }
#edit-bar a { color: var(--pink-bright); }
.toast { position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 101; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.toast.show { opacity: 1; }
.toast.err { background: #a3122a; }

/* Admin */
.admin-body { background: var(--paper); }
.admin-top { background: var(--ink); color: #fff; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-top a { color: #e9e3e7; }
.admin-top .btn-line { color: #fff; border-color: #3a313d; }
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-tabs button { font: inherit; font-size: 0.8rem; font-weight: 600; border: 1px solid #3a313d; background: transparent; color: #d9d1d6; border-radius: 999px; padding: 7px 15px; cursor: pointer; }
.admin-tabs button.on { background: var(--grad); color: #fff; border-color: transparent; }
.admin-main { padding: 28px 20px 80px; max-width: 1280px; margin: 0 auto; }
.admin-main h2 { margin-bottom: 14px; }
.admin-login { max-width: 400px; margin: 12vh auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 0.9rem; }
.admin-table th { background: var(--paper); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.admin-table select, .admin-table input { padding: 7px 9px; width: auto; }
.admin-table textarea { min-height: 64px; }
.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.form-panel fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; margin-top: 14px; }
.form-panel legend { font-family: var(--serif); font-weight: 600; padding: 0 6px; }
.form-panel .check, .check { flex-direction: row; align-items: center; gap: 8px; }
.form-panel .check input, .check input { width: auto; }
.form-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar label { min-width: 200px; }
.img-field { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.img-field img { width: 48px; height: 60px; object-fit: cover; border-radius: 8px; }

/* Responsive */
@media (max-width: 1024px) {
  .profile-layout { grid-template-columns: 1fr; }
  .book-widget { position: static; }
  .rates-grid, .two-col { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .page-head { padding: 72px 0 56px; }
  .container { padding: 0 16px; }
  .menu-btn { display: block; margin: 8px auto; background: transparent; color: #fff; border: 1px solid #3a313d; border-radius: 999px; padding: 8px 18px; font: inherit; font-size: 0.8rem; letter-spacing: 0.12em; cursor: pointer; }
  .mainnav ul { display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 0 16px 10px; }
  .mainnav.open ul { display: flex; }
  .mainnav a { padding: 13px 4px; border-bottom: 1px solid #2a222d; }
  .mainnav a::after { display: none; }
  .mainnav .sub { position: static; display: none; box-shadow: none; border-top: 0; background: none; padding: 0 0 0 14px; min-width: 0; border-radius: 0; }
  .mainnav.open .sub { display: none; }
  .mainnav.open .has-sub.open > .sub { display: flex; }
  .mainnav .has-sub:hover > .sub { display: none; }
  .mainnav .has-sub.open:hover > .sub { display: flex; }
  .topbar-in { justify-content: center; }
  .quick { justify-content: center; gap: 6px; font-size: 0.76rem; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .thumbs { grid-template-columns: repeat(5, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .rates-package th, .rates-package td { padding: 14px 12px; }
  .rates-package td:last-child { white-space: normal; }
}

/* Visual editor (admin): what can be clicked, and the small edit box */
body.editing [data-key], body.editing [data-ph-key], body.editing select { outline: 1px dashed rgba(196, 0, 155, 0.6); outline-offset: 3px; cursor: pointer; }
body.editing [data-key]:hover, body.editing [data-ph-key]:hover, body.editing select:hover { outline: 2px solid var(--pink); background-color: rgba(196, 0, 155, 0.06); }
body.editing #hero-slider { outline: 2px dashed rgba(224, 27, 180, 0.7); outline-offset: -8px; cursor: pointer; }
.edit-selected { outline: 2px solid var(--pink) !important; outline-offset: 3px; }
.edit-pop { position: fixed; z-index: 200; background: #fff; color: var(--ink); border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 30px 70px -20px rgba(13, 11, 14, 0.6); max-height: calc(100vh - 24px); overflow: auto; font-family: var(--sans); text-align: left; letter-spacing: 0; text-transform: none; line-height: 1.5; }
.edit-pop-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.edit-pop-x { border: 0; background: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--muted); }
.edit-pop-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.edit-pop-body input, .edit-pop-body textarea { font-size: 0.95rem; }
.edit-pop-actions { display: flex; gap: 8px; padding: 0 16px 16px; }
.edit-stack { display: flex; flex-direction: column; gap: 10px; }
.edit-img { display: flex; gap: 12px; align-items: flex-start; }
.edit-img.busy { opacity: 0.5; pointer-events: none; }
.edit-img-preview { width: 72px; height: 90px; object-fit: cover; border-radius: 10px; background: var(--ink); flex: none; }
.edit-img-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex: 1; }
.edit-img-tools strong { width: 100%; font-size: 0.8rem; }
.edit-img-tools .edit-url { font-size: 0.8rem; padding: 8px 10px; }
.edit-upload { cursor: pointer; flex-direction: row; }
.edit-library { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.edit-library[hidden] { display: none; }
.edit-library button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; aspect-ratio: 1; cursor: pointer; background: var(--paper); }
.edit-library button:hover { border-color: var(--pink); }
.edit-library img { width: 100%; height: 100%; object-fit: cover; }

/* Admin: Visual editor tab */
.ve-bar { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 12px; }
.ve-bar label { min-width: 180px; }
.ve-devices { display: flex; gap: 6px; }
.ve-devices .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ve-frame-wrap { background: #e9e2e7; border-radius: var(--radius); padding: 12px; box-shadow: inset 0 0 0 1px var(--line); }
#ve-frame { display: block; width: 100%; height: calc(100vh - 240px); min-height: 560px; border: 0; border-radius: 12px; background: #fff; margin: 0 auto; box-shadow: var(--shadow-sm); transition: width 0.3s; }
#ve-frame.mobile { width: 390px; max-width: 100%; }

/* Visual editor: menu */
body.editing .mainnav a[data-menu] { outline: 1px dashed rgba(224, 27, 180, 0.7); outline-offset: -2px; cursor: pointer; }
body.editing .mainnav a[data-menu]:hover { outline: 2px solid var(--pink-bright); }
.edit-menu-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.edit-menu-row strong { grid-column: 1 / -1; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.edit-menu-row.sub { padding-left: 14px; border-left: 2px solid var(--pink-soft); }
.edit-menu-row input { font-size: 0.88rem; padding: 9px 10px; }
.edit-all-row { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
