:root {
  --green-900: #0b3a2c;
  --green-700: #0f4d3a;
  --green-500: #1f7a5a;
  --green-100: #e4f0ea;
  --green-50: #f3f8f5;
  --gold: #c9a14a;
  --gold-dark: #8a6a1f;
  --gold-100: #f7efd9;
  --ink: #14241d;
  --muted: #5a6b63;
  --line: #d9e3de;
  --white: #ffffff;
  --danger: #a32d2d;
  --radius: 10px;
  --font-head: 'Amiri', 'Noto Naskh Arabic', Georgia, serif;
  --font-body: 'Tajawal', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.7; font-size: 17px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; color: var(--green-900); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
a { color: var(--green-500); }
a:hover { color: var(--green-900); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(520px, 100% - 2rem); margin-inline: auto; }
.narrow-lg { width: min(760px, 100% - 2rem); margin-inline: auto; }
.center { text-align: center; }
.page-pad { padding-block: 2.5rem 4rem; }
.section { padding-block: 3rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.skip { position: absolute; inset-inline-start: -999px; background: var(--gold); color: var(--ink); padding: .5rem 1rem; z-index: 100; }
.skip:focus { inset-inline-start: 1rem; top: 1rem; }

/* Header */
.site-header { background: var(--white); border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; gap: 1.25rem; padding-block: .7rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--green-900); }
.nav { display: flex; gap: 1.1rem; flex: 1; }
.nav a { text-decoration: none; color: var(--ink); padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--gold); color: var(--green-700); }
.actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.lang { text-decoration: none; font-weight: 700; color: var(--gold-dark); padding: .3rem .6rem; border: 1px solid var(--gold); border-radius: 999px; }
.inline { display: inline; margin: 0; }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent; border-radius: 8px; padding: .55rem 1.1rem; line-height: 1.3; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1.05rem; }
.btn-sm { padding: .25rem .7rem; font-size: .9rem; }
.btn-green { background: var(--green-700); color: var(--white); }
.btn-green:hover { background: var(--green-900); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d8b45c; color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--green-900); }
.btn-ghost:hover { border-color: var(--green-500); color: var(--green-900); }
.btn-danger { background: transparent; border-color: #e6b8b8; color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: var(--white); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--green-500); cursor: pointer; text-decoration: underline; }
.link.danger { color: var(--danger); }
summary.btn, summary.link { list-style: none; }
summary::-webkit-details-marker { display: none; }

/* Hero: gold eight-point star lattice on deep green */
.hero { color: var(--white); background-color: var(--green-700);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23c9a14a' stroke-opacity='.28' stroke-width='1'%3E%3Cpath d='M36 6l8.5 8.5L56 14l-.5 11.5L66 36l-10.5 10.5L56 58l-11.5-.5L36 66l-8.5-8.5L16 58l.5-11.5L6 36l10.5-10.5L16 14l11.5.5z'/%3E%3C/g%3E%3C/svg%3E");
  padding-block: 4.5rem; }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lead { font-size: 1.2rem; max-width: 52ch; color: #e1efe8; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; }
.hero-card { background: var(--white); color: var(--ink); border-radius: 14px; padding: 1.5rem; border-top: 5px solid var(--gold); }
.hero-card-title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--green-900); margin: 0 0 .8rem; }
.route { list-style: none; margin: 0; padding: 0; position: relative; }
.route li { position: relative; padding-inline-start: 2rem; padding-block: .45rem; }
.route li::before { content: ''; position: absolute; inset-inline-start: .45rem; top: 1.05rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-100); }
.route li::after { content: ''; position: absolute; inset-inline-start: .8rem; top: 1.9rem; bottom: -.45rem; width: 2px; background: var(--line); }
.route li:last-child::after { display: none; }
.cta-row { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-block: 1rem; }

/* Cards & grids */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.card h2, .card h3 { margin-bottom: .35em; }
.card h2 a, .card h3 a { text-decoration: none; color: var(--green-900); }
.card h2 a:hover, .card h3 a:hover { color: var(--green-500); }
.place-card img { border-radius: 8px; margin: -.25rem 0 .8rem; aspect-ratio: 20/11; object-fit: cover; width: 100%; }
.tags { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 .5rem; }
.tag { font-size: .82rem; background: var(--green-100); color: var(--green-900); border-radius: 999px; padding: .1rem .7rem; }
.tag-gold { background: var(--gold-100); color: var(--gold-dark); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.empty { text-align: center; padding: 2.5rem 1rem; background: var(--green-50); }
.stars { color: var(--gold); letter-spacing: 1px; }
.rating.big { font-size: 1.15rem; }
.bigcode { font-family: var(--font-head); font-size: 5rem; color: var(--gold); margin: 0; line-height: 1; }
.stat { text-align: center; background: var(--green-50); }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.2rem; color: var(--green-700); }

/* Forms */
.form { display: grid; gap: 1rem; }
.form.card { padding: 1.5rem; }
label { display: grid; gap: .25rem; font-weight: 500; }
label.check { display: flex; gap: .6rem; align-items: center; font-weight: 400; }
input, select, textarea { font: inherit; width: 100%; padding: .6rem .75rem; border: 1px solid #b9c9c1; border-radius: 8px; background: var(--white); color: var(--ink); }
input[type=checkbox] { width: auto; accent-color: var(--green-700); }
input:focus, select:focus, textarea:focus { border-color: var(--green-500); outline: 3px solid var(--gold-100); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.err { color: var(--danger); font-style: normal; font-size: .9rem; }
.hint { color: var(--muted); font-weight: 400; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-block: 1rem; }
.filters input[type=search] { flex: 1 1 240px; width: auto; }
.filters select { width: auto; }
.flash { padding: .8rem 1rem; border-radius: 8px; margin: 1rem 0 0; border: 1px solid; }
.flash-ok { background: var(--green-100); border-color: #a9cfbd; color: var(--green-900); }
.flash-warn { background: var(--gold-100); border-color: #e2cf9c; color: #5d4710; }
.flash-warn a { word-break: break-all; }
.flash-error { background: #fbeaea; border-color: #e6b8b8; color: var(--danger); }

/* Trip page */
.crumb { margin: 0 0 1rem; }
.trip-head { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; border-top: 5px solid var(--gold); }
.head-side { text-align: end; }
.head-side .cta-row { justify-content: flex-end; }
.countdown strong { font-family: var(--font-head); font-size: 3rem; color: var(--green-700); line-height: 1; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin: 1rem 0 0; }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.notes { background: var(--green-50); border-radius: 8px; padding: .8rem 1rem; margin-top: 1rem; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; margin-block: 1.25rem; align-items: start; }
.block { margin-block: 0; }
#documents { margin-top: 1.25rem; }
.day { background: var(--gold-100); color: var(--gold-dark); padding: .25rem .8rem; border-radius: 6px; font-size: 1.05rem; margin-top: 1.2rem; }
.timeline { list-style: none; margin: .5rem 0 0; padding: 0; border-inline-start: 2px solid var(--gold); margin-inline-start: .5rem; }
.timeline li { padding: .4rem 1rem; display: flex; justify-content: space-between; gap: 1rem; position: relative; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: -7px; top: 1rem; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 3px solid var(--green-700); }
.timeline p { margin: 0; }
.tl-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; min-width: 5rem; }
.tl-actions details { text-align: end; }
.tl-actions details[open] { position: relative; width: min(340px, 80vw); }
.inline-form { text-align: start; background: var(--green-50); padding: 1rem; border-radius: 8px; margin-top: .5rem; }
details.add { margin-top: 1.2rem; }
details.add > summary { display: inline-block; cursor: pointer; }
details.add .inline-form { margin-top: .8rem; }
.checklist { list-style: none; margin: 0 0 .8rem; padding: 0; }
.checklist li { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; border-bottom: 1px dashed var(--line); }
.checklist li span { flex: 1; }
.checklist li.done span { text-decoration: line-through; color: var(--muted); }
.tick { width: 1.6rem; height: 1.6rem; border: 2px solid var(--green-500); border-radius: 6px; background: var(--white); color: var(--white); font-weight: 700; cursor: pointer; line-height: 1; padding: 0; }
.done .tick { background: var(--green-700); border-color: var(--green-700); }
.add-check { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.add-check select, .add-check input { width: auto; flex: 1 1 120px; }
.progress { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: .6rem; border: 0; border-radius: 999px; background: var(--green-100); overflow: hidden; margin: .6rem 0 .3rem; }
.progress::-webkit-progress-bar { background: var(--green-100); }
.progress::-webkit-progress-value { background: linear-gradient(90deg, var(--green-500), var(--gold)); border-radius: 999px; }
.progress::-moz-progress-bar { background: linear-gradient(90deg, var(--green-500), var(--gold)); border-radius: 999px; }
.hijri:empty { display: none; }
.hijri-day { font-family: var(--font-body); font-size: .9rem; font-weight: 500; margin-inline-start: .6rem; }
bdi { unicode-bidi: isolate; }
.table-wrap { overflow-x: auto; margin-block: 1rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .6rem .7rem; text-align: start; border-bottom: 1px solid var(--line); }
th { background: var(--green-50); font-weight: 700; }
.row-actions { white-space: nowrap; display: flex; gap: .4rem; }
.upload-form { grid-template-columns: 1fr 1fr auto; align-items: end; background: var(--green-50); padding: 1rem; border-radius: 8px; }

/* Places */
.place-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: start; }
.place-desc { font-size: 1.1rem; max-width: 60ch; }
.place-photo { border-radius: var(--radius); border-bottom: 5px solid var(--gold); width: 100%; max-height: 380px; aspect-ratio: 16 / 10; object-fit: cover; }
.place-page .block { margin-top: 2rem; }
.reviews { list-style: none; padding: 0; margin: 1rem 0; }
.reviews li { border-bottom: 1px solid var(--line); padding: .8rem 0; }
.reviews p { margin: 0 0 .3rem; }
.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; }
.pager a { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.pager a[aria-current] { background: var(--green-700); color: var(--white); border-color: var(--green-700); }

/* Footer */
.site-footer { background: var(--green-900); color: #d6e6de; padding-block: 2rem; margin-top: 3rem; border-top: 4px solid var(--gold); }
.site-footer p { margin: .2rem 0; }
.site-footer .muted { color: #a9c3b7; }

@media (max-width: 800px) {
  .hero-grid, .two-col, .place-grid, .trip-head { grid-template-columns: 1fr; }
  .head-side { text-align: start; } .head-side .cta-row { justify-content: flex-start; }
  .two, .upload-form { grid-template-columns: 1fr; }
  .nav { order: 3; flex-basis: 100%; }
  .hero { padding-block: 3rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .site-header, .site-footer, .btn, .cta-row, form { display: none !important; } }
.place-video { width: 100%; margin-top: 1rem; border-radius: var(--radius); background: #000; max-height: 420px; }

/* Hotels near Al-Haram */
.lead-dark { font-size: 1.1rem; max-width: 62ch; }
.range-tabs { display: inline-flex; border: 2px solid var(--green-700); border-radius: 999px; overflow: hidden; margin: .5rem 0; }
.range-tabs a { padding: .55rem 1.4rem; text-decoration: none; font-weight: 700; color: var(--green-700); background: var(--white); }
.range-tabs a span { font-weight: 400; }
.range-tabs a[aria-current] { background: var(--green-700); color: var(--white); }
.hotels-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: start; margin-top: 1rem; }
.hotel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.hotel-list li { display: flex; gap: 1rem; }
.hotel-list h2 { font-size: 1.35rem; margin-bottom: .2em; }
.hotel-list p { margin: .25rem 0; }
.hotel-list .num { flex: 0 0 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--green-700); color: var(--white); display: grid; place-items: center; font-weight: 700; }
.dist strong { color: var(--gold-dark); font-size: 1.1rem; }
.radar-wrap { margin: 0; position: sticky; top: 5.5rem; background: var(--green-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.radar { width: 100%; height: auto; display: block; }
.radar .ring { fill: none; stroke: var(--green-500); stroke-width: 1.5; stroke-dasharray: 5 5; }
.radar .axis { stroke: var(--line); stroke-width: 1; }
.radar .ring-label { fill: var(--muted); font-size: 12px; font-family: var(--font-body); }
.radar .haram { fill: var(--gold); stroke: var(--gold-dark); stroke-width: 1; }
.radar .haram-label { fill: var(--green-900); font-size: 13px; font-weight: 700; font-family: var(--font-body); }
.radar .dot { fill: var(--green-700); stroke: var(--white); stroke-width: 2; }
.radar .dot-num { fill: var(--white); font-size: 14px; font-weight: 700; text-anchor: middle; font-family: var(--font-body); }
@media (max-width: 800px) { .hotels-layout { grid-template-columns: 1fr; } .radar-wrap { position: static; order: -1; } }

/* Calendar switch + Hijri entry */
.cal-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: .88rem; }
.cal-switch a { padding: .25rem .7rem; text-decoration: none; color: var(--green-700); background: var(--white); }
.cal-switch a[aria-current] { background: var(--green-700); color: var(--white); font-weight: 700; }
.field { display: grid; gap: .25rem; font-weight: 500; }
.date-fields { display: grid; grid-template-columns: 4.6rem 1fr 5.6rem; gap: .5rem; }


/* Calendar choice inside the trip form */
.date-block .cal-choice { display: flex; gap: 1.2rem; margin: .4rem 0 .6rem; }
.date-block .cal-choice label { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.date-block[data-date-cal='greg'] .d-hijri { display: none; }
.date-block[data-date-cal='hijri'] .d-greg.hint { display: none; }
.date-block[data-date-cal='hijri'] input.d-greg { display: none; }


/* ---------- Dark (black) theme ---------- */
.theme-toggle { font: inherit; cursor: pointer; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--gold); background: transparent; color: var(--gold-dark); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.theme-toggle .i-sun { display: none; }
:root[data-theme='dark'] .theme-toggle { color: var(--gold); }
:root[data-theme='dark'] .theme-toggle .i-sun { display: block; }
:root[data-theme='dark'] .theme-toggle .i-moon { display: none; }

:root[data-theme='dark'] {
  color-scheme: dark;
  --ink: #eceeed; --muted: #b3b8b6; --line: #555b58;
  --green-50: #3a3f3d; --green-100: #454b48; --gold-100: #4a4430; --gold-dark: #dfbb68;
  --surface: #3b3f3d; --bg: #2c2f2e; --field: #2f3331; --danger: #ff9a9a;
}
[data-theme='dark'] body { background: var(--bg); color: var(--ink); }
[data-theme='dark'] h1, [data-theme='dark'] h2, [data-theme='dark'] h3,
[data-theme='dark'] .brand, [data-theme='dark'] .hero-card-title,
[data-theme='dark'] .card h2 a, [data-theme='dark'] .card h3 a { color: #f0e3b8; }
[data-theme='dark'] .hero h1 { color: #fff; }
[data-theme='dark'] a { color: #5fc29a; }
[data-theme='dark'] a:hover { color: #9be0c0; }
[data-theme='dark'] .site-header { background: var(--surface); }
[data-theme='dark'] .nav a { color: var(--ink); }
[data-theme='dark'] .nav a:hover, [data-theme='dark'] .nav a[aria-current] { color: var(--gold); }
[data-theme='dark'] .card, [data-theme='dark'] .hero-card { background: var(--surface); color: var(--ink); }
[data-theme='dark'] .stat strong, [data-theme='dark'] .countdown strong { color: #5fc29a; }
[data-theme='dark'] input, [data-theme='dark'] select, [data-theme='dark'] textarea { background: var(--field); color: var(--ink); border-color: #666d6a; }
[data-theme='dark'] input::placeholder, [data-theme='dark'] textarea::placeholder { color: #70827a; }
[data-theme='dark'] input:focus, [data-theme='dark'] select:focus, [data-theme='dark'] textarea:focus { outline-color: #3d3419; }
[data-theme='dark'] .btn-ghost { color: var(--ink); }
[data-theme='dark'] .btn-ghost:hover { color: #fff; }
[data-theme='dark'] .btn-green { background: var(--green-500); }
[data-theme='dark'] .btn-green:hover { background: #28946e; }
[data-theme='dark'] .btn-danger { border-color: #7a3a3a; }
[data-theme='dark'] .link { color: #5fc29a; }
[data-theme='dark'] .link.danger { color: var(--danger); }
[data-theme='dark'] .tag { color: #cfe6db; }
[data-theme='dark'] .tag-gold { color: var(--gold); }
[data-theme='dark'] .flash-ok { color: #cfe6db; border-color: #2f5a47; }
[data-theme='dark'] .flash-warn { color: #ecd9a0; border-color: #5a4a1d; }
[data-theme='dark'] .flash-error { background: #4a3535; border-color: #8a4a4a; color: #ffb0b0; }
[data-theme='dark'] .tick { background: var(--field); color: #fff; }
[data-theme='dark'] .timeline li::before { background: var(--surface); }
[data-theme='dark'] .range-tabs { border-color: var(--green-500); }
[data-theme='dark'] .range-tabs a { background: var(--surface); color: #5fc29a; }
[data-theme='dark'] .range-tabs a[aria-current] { background: var(--green-500); color: #fff; }
[data-theme='dark'] .pager a { color: var(--ink); }
[data-theme='dark'] .radar .haram-label { fill: #f0e3b8; }
[data-theme='dark'] .radar .dot { stroke: var(--surface); }
[data-theme='dark'] .site-footer { background: #232625; }
[data-theme='dark'] .skip { color: #14241d; }

/* Button text: the generic dark link colour must not override button colours */
[data-theme='dark'] a.btn-gold, [data-theme='dark'] a.btn-gold:hover, [data-theme='dark'] .btn-gold { color: #06231a; }
[data-theme='dark'] a.btn-green, [data-theme='dark'] a.btn-green:hover,
[data-theme='dark'] a.btn-outline-light, [data-theme='dark'] a.btn-outline-light:hover { color: #fff; }
[data-theme='dark'] a.btn-danger:hover { color: #fff; }

/* Gallery and Multiple Photos */
.place-gallery-grid { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; }
.gallery-thumb { width: 72px; height: 52px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: transform .15s, border-color .15s; display: block; padding: 0; background: none; }
.gallery-thumb:hover, .gallery-thumb:focus, .gallery-thumb.active { border-color: var(--gold); transform: scale(1.05); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.existing-photos-block { margin-block: .8rem 1rem; background: var(--green-50); padding: 1rem; border-radius: 8px; border: 1px solid var(--line); }
.photos-thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .8rem; }
.photo-thumb-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .4rem; text-align: center; }
.photo-thumb-card img { width: 100%; height: 75px; object-fit: cover; border-radius: 4px; margin-bottom: .4rem; }
.photo-thumb-card label { justify-content: center; font-size: .82rem; }


/* Lightbox Modal & Transitions (Matching Reference) */
.place-photo-wrapper { position: relative; display: inline-block; width: 100%; cursor: pointer; }
.clickable-photo { cursor: zoom-in; transition: transform .2s ease, box-shadow .2s ease; }
.clickable-photo:hover { transform: scale(1.01); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.photo-zoom-hint { position: absolute; bottom: 12px; inset-inline-end: 12px; background: rgba(0,0,0,0.65); color: #fff; padding: 4px 8px; border-radius: 6px; font-size: 14px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.place-photo-wrapper:hover .photo-zoom-hint { opacity: 1; }

.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
}
.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 85vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 82vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7);
  transition: opacity .18s ease, transform .2s ease;
  transform: scale(1);
}
.lightbox-modal.active .lightbox-img {
  animation: lightboxPopIn .25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.lightbox-img.fading {
  opacity: 0.15;
  transform: scale(0.97);
}

@keyframes lightboxPopIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
  z-index: 100000;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
  z-index: 100000;
  user-select: none;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-nav.prev { left: 28px; }
.lightbox-nav.next { right: 28px; }

.lightbox-counter {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
}


/* Drag and Drop Zone */
.dropzone-box {
  position: relative;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--green-50);
  padding: 1.8rem 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.dropzone-box:hover, .dropzone-box.drag-active {
  border-color: var(--gold);
  background-color: var(--gold-100);
  box-shadow: 0 0 12px rgba(201, 161, 74, 0.25);
}
.dropzone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.dropzone-content {
  pointer-events: none;
}
.dropzone-icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: .4rem;
}
.dropzone-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-900);
  margin: 0 0 .3rem;
}
[data-theme='dark'] .dropzone-text {
  color: #f0e3b8;
}

.dropzone-preview-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .8rem;
  margin-top: 1.2rem;
  position: relative;
  z-index: 3;
}
.dropzone-preview-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.dropzone-preview-card img {
  width: 100%;
  height: 85px;
  object-fit: cover;
  display: block;
}
.dropzone-file-name {
  display: block;
  font-size: .75rem;
  padding: .25rem .4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  color: var(--ink);
}
.dropzone-remove-btn {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(163, 45, 45, 0.9);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s, background .15s;
}
.dropzone-remove-btn:hover {
  background: #c72c2c;
  transform: scale(1.15);
}


/* Hotel Proximity Card */
.hotel-proximity-card {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .7rem 1rem;
  margin: .8rem 0 1.2rem;
  flex-wrap: wrap;
}
.hotel-proximity-card .prox-text {
  flex: 1;
  min-width: 200px;
}
.hotel-proximity-card strong {
  color: var(--gold-dark);
  font-size: 1.05rem;
}
[data-theme='dark'] .hotel-proximity-card {
  background: var(--surface);
  border-color: var(--line);
}
[data-theme='dark'] .hotel-proximity-card strong {
  color: var(--gold);
}


/* Guest Welcome Space on Home Page */
.guest-section {
  margin-top: -2.2rem;
  position: relative;
  z-index: 10;
  margin-bottom: 2rem;
}
.guest-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: 14px;
  padding: 1.8rem 2.2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
[data-theme='dark'] .guest-card {
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.guest-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.guest-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gold-100);
  color: var(--gold-dark);
  font-weight: 700;
  font-size: .9rem;
  padding: .35rem .95rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 161, 74, 0.35);
}
.guest-card-content h2 {
  font-size: 1.85rem;
  margin: 0 0 .8rem;
  color: var(--green-900);
}
[data-theme='dark'] .guest-card-content h2 {
  color: #f0e3b8;
}
.guest-message {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--ink);
  margin: 0 0 .8rem;
  max-width: 85ch;
}
.guest-author-row {
  display: flex;
  justify-content: flex-end;
  border-top: 1px dashed var(--line);
  padding-top: .7rem;
}
.guest-author-sign {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-dark);
}
[data-theme='dark'] .guest-author-sign {
  color: var(--gold);
}
.guest-edit-details {
  position: relative;
}
.guest-edit-drawer {
  margin-top: .8rem;
  padding: 1.25rem;
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 8px;
}
[data-theme='dark'] .guest-edit-drawer {
  background: var(--field);
}
@media (max-width: 800px) {
  .guest-section {
    margin-top: 1rem;
  }
  .guest-card {
    padding: 1.4rem 1.2rem;
  }
}

/* Classes replacing inline styles (CSP blocks style="" attributes) */
.icon-gold   { color: var(--gold); flex-shrink: 0; }
.icon-block  { display: block; }
.icon-upload { display: inline-block; vertical-align: middle; color: var(--gold); }
.text-sm     { font-size: 0.9rem; }
.hint-title  { font-weight: 700; display: block; margin-bottom: .5rem; }
