:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --text: #1f1d1a;
  --muted: #6b665e;
  --line: #e6e1d8;
  --accent: #1f6f5f;
  --accent-dark: #17564a;
  --danger: #b4443c;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 2rem; }
h2 { font-size: 1.25rem; margin-top: 1.75rem; }
p { margin: 0 0 1rem; }
code { background: var(--line); padding: .1em .35em; border-radius: 4px; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Header / footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; font-size: 1.2rem; color: var(--accent); }
.site-header nav a { margin-left: 1.25rem; color: var(--muted); font-weight: 500; }
.site-header nav a:hover { color: var(--text); }
.site-footer { margin-top: 4rem; border-top: 1px solid var(--line); padding: 1.5rem 0; color: var(--muted); font-size: .9rem; }
.site-footer .container { display: flex; justify-content: space-between; }

/* Flashes */
.flashes { margin: 1.25rem 0 0; }
.flash { padding: .75rem 1rem; border-radius: 8px; margin-bottom: .5rem; font-size: .95rem; }
.flash-error { background: #fbe9e7; color: var(--danger); }
.flash-success { background: #e4f3ee; color: var(--accent-dark); }

/* Home */
.hero { padding: 3.5rem 0 2rem; max-width: 640px; }
.hero h1 { font-size: 2.5rem; }
.hero p { color: var(--muted); font-size: 1.1rem; }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s; }
.card:hover { transform: translateY(-2px); }
.card img, .img-placeholder { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; background: var(--line); }
.card-body { padding: 1rem 1.25rem 1.25rem; }
.card-body h2 { margin: .15rem 0 .25rem; font-size: 1.2rem; }
.card-body p { color: var(--muted); margin-bottom: .5rem; }
.card-meta { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card-facts { font-size: .9rem; color: var(--muted); }
.price { margin-top: .5rem; }
.price strong { font-size: 1.1rem; }

/* Waitlist */
.waitlist { margin-top: 4rem; display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.waitlist-intro h2 { font-size: 1.8rem; margin-top: 0; }
.waitlist-intro p { color: var(--muted); font-size: 1.1rem; }
.radio-group { border: none; padding: 0; margin: 0 0 .75rem; }
.radio-group legend { font-size: .85rem; font-weight: 600; margin-bottom: .4rem; padding: 0; }
.radio { display: inline-flex; align-items: center; gap: .35rem; margin: 0 1.25rem 0 0; font-weight: 400; }
.radio input { width: auto; margin: 0; }
@media (max-width: 800px) { .waitlist { grid-template-columns: 1fr; gap: 1rem; } }

/* Rooms */
.open-count { color: var(--accent-dark); font-weight: 600; }
.room-list { display: grid; gap: .6rem; margin-bottom: 1.5rem; }
.room-option { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; background: var(--surface); border: 2px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 400; margin: 0; }
.room-option:hover { border-color: #c9c0b1; }
.room-option.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,111,95,.12); }
.room-option.taken { opacity: .7; }
.room-option input { width: auto; margin: 0; accent-color: var(--accent); }
.room-main { flex: 1; display: flex; flex-direction: column; }
.room-photo { position: relative; flex: none; width: 96px; height: 72px; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.room-photo img { width: 100%; height: 100%; object-fit: cover; }
.room-photo-count { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; padding: .1rem .4rem; border-radius: 999px; }
.linkish { background: none; border: none; padding: 0; color: var(--accent-dark); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; text-align: left; margin-top: .2rem; }
.room-thumbs { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .3rem; }
.room-thumb { position: relative; width: 56px; height: 42px; margin: 0; }
.room-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.room-thumb input { position: absolute; top: 2px; left: 2px; width: auto; margin: 0; }
.room-photos-cell { min-width: 200px; }
.rooms-table input[type=file] { font-size: .75rem; padding: .2rem; }
.room-side { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.room-rate { font-weight: 700; }
.room-side .badge { text-transform: none; }
.badge-shared { background: #e8eefb; color: #2f4f9e; }
.shift-box { border-top: 1px solid var(--line); padding-top: .75rem; margin-bottom: .25rem; }
.cal-day.shared { background: repeating-linear-gradient(135deg, transparent 0 3px, #e8eefb 3px 5px); color: #2f4f9e; }
.cal-legend { display: flex; gap: 1rem; font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.cal-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .3rem; vertical-align: -2px; }
.cal-legend .lg-taken::before { background: repeating-linear-gradient(135deg, transparent 0 3px, #f0ece5 3px 5px); border: 1px solid #ddd; }
.cal-legend .lg-shared::before { background: repeating-linear-gradient(135deg, transparent 0 3px, #e8eefb 3px 5px); border: 1px solid #c9d4f2; }
.cal-legend .lg-you::before { background: #e4f3ee; border: 1px solid #b9dccd; }
.cal-legend .lg-clash::before { background: #f3c6c2; border: 1px solid #e0a29c; }

.room-schedule { margin: 0 0 1.5rem; }
.room-schedule .timeline { width: 100%; }
.month-block { margin-bottom: .9rem; }
.month-title { font-weight: 700; margin: 0 0 .3rem; }
.month-table .daynums th { font-size: .62rem; line-height: 1.1; padding: .2rem 0 .15rem; }
.month-table .daynums th .dow { display: block; color: #b5aea3; font-size: .55rem; }
.month-table .weekend { background: #faf8f4; }
.month-table .cell.weekend:not(.on):not(.off):not(.you):not(.clash):not(.block):not(.pending) { background: #f6f3ee; }
.btn:disabled { opacity: .45; cursor: default; }
.room-schedule .timeline .lane-label { width: 120px; min-width: 120px; }
.room-schedule .timeline .cell, .room-schedule .timeline .daynums th:not(.lane-label) { width: auto; min-width: 7px; }
.room-schedule .timeline .month-label { font-size: .7rem; padding: .15rem .3rem; }
.room-schedule .timeline th, .room-schedule .timeline td { height: 20px; }
.room-schedule .sched-head { flex-wrap: wrap; gap: .5rem; }
.room-schedule .legend { margin: .5rem 0; }
.sw-you, .cell.you { background: #2f4f9e; }
.cell.clash { background: var(--danger); }
.you-row .lane-label { background: #eef2fb; font-weight: 600; }
.you-row .cell.on { background: #2f4f9e; }
.confirmation .room-schedule { margin: .5rem 0 1.5rem; }
.you-row .cell.off { background: #dfe6f7; }


/* Fully rented */
.card-rented { position: relative; }
.card-rented { pointer-events: none; }  /* not clickable while fully rented */
.card-rented img, .card-rented .img-placeholder { filter: grayscale(1) blur(2px); opacity: .55; }
.card-rented .card-body { opacity: .5; }
.card-rented .card-body h2, .card-rented .card-meta { filter: blur(6px); user-select: none; }  /* address unreadable */
.card-rented .card-body p, .card-rented .card-facts, .card-rented .price { filter: blur(2px); }
.card-rented:hover { transform: none; }
.rented-ribbon {
  position: absolute; top: 12px; left: 12px;
  background: var(--danger); color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem .8rem; border-radius: 999px; box-shadow: var(--shadow); z-index: 2; white-space: nowrap;
}
.property-rented .gallery img { filter: grayscale(1) blur(2px); opacity: .6; }
.property-rented .property-head h1, .property-rented .property-head .card-meta { filter: blur(7px); user-select: none; }
.property-rented .calendar { display: none; }
.rented-notice { background: #fbe9e7; border-radius: 8px; padding: 1rem; margin-top: .5rem; }
.rented-notice strong { color: var(--danger); font-size: 1.1rem; }
.rented-notice p { margin: .4rem 0 .8rem; }

/* Gallery + lightbox */
.gallery { position: relative; }
.gallery-img { cursor: zoom-in; }
.gallery-all { position: absolute; right: 1rem; bottom: 1rem; background: rgba(255,255,255,.92); border-color: transparent; box-shadow: var(--shadow); }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(15,14,12,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem 4rem 5.5rem; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 11rem); object-fit: contain; border-radius: 6px; }
.lb-count { color: #ddd; font-size: .9rem; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: none; border-radius: 999px; cursor: pointer; font-size: 2rem; line-height: 1; width: 48px; height: 48px; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 1rem; right: 1rem; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 1rem; } .lb-next { right: 1rem; }
.lb-thumbs { position: absolute; left: 0; right: 0; bottom: .75rem; display: flex; gap: .4rem; overflow-x: auto; padding: .25rem 1rem; scrollbar-width: none; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumbs img { height: 56px; width: 80px; object-fit: cover; border-radius: 4px; opacity: .5; cursor: pointer; flex: none; border: 2px solid transparent; }
.lb-thumbs img.active { opacity: 1; border-color: #fff; }
@media (max-width: 700px) { .lightbox { padding: 3rem .5rem 5rem; } .lb-nav { width: 40px; height: 40px; font-size: 1.6rem; } }

/* Property page */
.property { padding-top: 2rem; }
.tagline { color: var(--muted); font-size: 1.1rem; }
.gallery { display: grid; gap: .5rem; border-radius: var(--radius); overflow: hidden; margin: 1rem 0 2rem; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; }
.gallery-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery-3 img:first-child { grid-row: span 2; aspect-ratio: auto; }
.gallery-2 { grid-template-columns: 1fr 1fr; }
.property-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 3rem; align-items: start; }
.property-info { min-width: 0; }
@media (max-width: 900px) { .property-body { grid-template-columns: 1fr; gap: 1.5rem; } .booking-box { position: static; } }
.facts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--muted); padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.description { white-space: pre-line; }
.rules { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.rules li { padding: .5rem 0 .5rem 1.6rem; position: relative; border-bottom: 1px solid var(--line); }
.rules li:last-child { border-bottom: none; }
.rules li::before { content: "•"; position: absolute; left: .4rem; color: var(--accent); font-weight: 700; }
.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .4rem; }
.amenities li::before { content: "✓"; color: var(--accent); margin-right: .5rem; }

.booking-box { position: sticky; top: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.price-line { font-size: 1.1rem; margin-bottom: 1rem; }
.price-line strong { font-size: 1.4rem; }
.min-stay-note { display: inline-block; margin-top: .4rem; padding: .2rem .6rem; border-radius: 999px; background: #e4f3ee; color: var(--accent-dark); font-size: .8rem; font-weight: 600; }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .75rem; }
input, textarea, select {
  display: block; width: 100%; margin-top: .3rem; padding: .6rem .7rem; font: inherit; font-weight: 400;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.btn { display: inline-block; padding: .7rem 1.2rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-weight: 600; cursor: pointer; }
.btn-primary { width: 100%; background: var(--accent); color: #fff; border-color: var(--accent); margin-top: .5rem; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-sm { padding: .35rem .7rem; font-size: .85rem; }

.quote { margin: .5rem 0 1rem; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .95rem; }
.quote > div { display: flex; justify-content: space-between; padding: .2rem 0; }
.quote .deposit-note { display: block; margin: .5rem 0 0; line-height: 1.4; }
.quote .included { color: var(--accent-dark); font-weight: 600; }
.quote .total { font-weight: 700; border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .5rem; }

/* Calendar */
.calendar { max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.cal-nav { background: none; border: 1px solid var(--line); border-radius: 6px; width: 32px; height: 32px; cursor: pointer; font-size: 1.1rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { text-align: center; font-size: .75rem; color: var(--muted); padding: .25rem 0; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: none; background: none; border-radius: 6px; cursor: default; font: inherit; font-size: .9rem; }
.cal-day.past { color: #c9c4bb; cursor: default; }
.cal-day.taken { color: #c9c4bb; text-decoration: line-through; background: repeating-linear-gradient(135deg, transparent 0 3px, #f0ece5 3px 5px); }
.cal-day.in-range { background: #e4f3ee; border-radius: 0; }
.cal-day.my-off { background: transparent; border-radius: 0; color: #9a948a; }
.cal-day.my-off.shared, .cal-day.in-range.shared { background: repeating-linear-gradient(135deg, #e4f3ee 0 3px, #c9d4f2 3px 5px); color: #2f4f9e; }
.cal-day.in-range.clash, .cal-day.start.clash, .cal-day.end.clash { background: #f3c6c2 !important; color: var(--danger) !important; font-weight: 700; }
.cal-day.start, .cal-day.end, .cal-day.start:hover, .cal-day.end:hover { background: var(--accent); color: #fff; }
.cal-msg { margin-top: .5rem; }
.date-display { max-width: 300px; cursor: default; background: #faf8f4; }
.calendar-inline { max-width: 300px; padding: .6rem; margin: .6rem 0 .25rem; }
.calendar-inline .cal-day { font-size: .85rem; }
.calendar-inline .cal-head { margin-bottom: .25rem; }
.calendar-inline .cal-head strong { font-size: .9rem; }
.calendar-inline .cal-nav { width: 26px; height: 26px; font-size: .95rem; }

/* Confirmation */
.confirmation { max-width: 620px; padding-top: 2.5rem; }
.admin.confirmation { max-width: 1000px; }
.summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; }
.summary-card h2 { margin-top: 0; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; margin: 1rem 0; }
dt { color: var(--muted); }
dd { margin: 0; }

.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; text-transform: capitalize; white-space: nowrap; }
.badge-pending { background: #fff3d6; color: #8a5a00; }
.badge-confirmed { background: #e4f3ee; color: var(--accent-dark); }
.badge-declined, .badge-cancelled { background: #eee; color: var(--muted); }

.rooms-table input { margin: 0; padding: .4rem .5rem; }
.rooms-table td { vertical-align: middle; }

/* Schedule */
.sched-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.sched-nav { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.legend { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin: 1rem 0; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: .3rem; border: 1px solid rgba(0,0,0,.08); }
.sw-on, .cell.on { background: var(--accent); }
.sw-off, .cell.off { background: #dcebe5; }
.sw-pending, .cell.pending.on { background: repeating-linear-gradient(135deg, var(--accent) 0 4px, #fff 4px 6px); }
.cell.pending.off { background: repeating-linear-gradient(135deg, #dcebe5 0 4px, #fff 4px 6px); }
.sw-block, .cell.block { background: #b8b2a7; }
.sw-conflict, .cell.conflict { background: var(--danger) !important; }
.sched-house h2 { margin-top: 2rem; }
.sched-room { margin-bottom: 1rem; padding: 1rem; }
.sched-room-head { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .5rem; }
.timeline-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.timeline { border-collapse: collapse; table-layout: fixed; font-size: .75rem; }
.timeline th, .timeline td { padding: 0; height: 22px; }
.timeline .lane-label { width: 150px; min-width: 150px; text-align: left; padding: .2rem .5rem; position: sticky; left: 0; background: var(--surface); border-right: 1px solid var(--line); z-index: 1; font-size: .8rem; }
.timeline .cell, .timeline .daynums th:not(.lane-label) { width: 14px; min-width: 14px; border-left: 1px solid #f2efe9; }
.timeline .month-label { text-align: left; padding: .2rem .4rem; font-size: .75rem; color: var(--muted); border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.timeline .daynums th { color: var(--muted); font-weight: 500; font-size: .65rem; }
.timeline .week-start { border-left: 1px solid #d9d3c8 !important; }
.timeline .today { box-shadow: inset 2px 0 0 #2f4f9e; }
.timeline .daynums th.today { color: #2f4f9e; font-weight: 700; }
.timeline .cell.on.move-in { border-radius: 4px 0 0 4px; }
.timeline .cell.on.move-out, .timeline .cell.off.move-out { border-radius: 0 4px 4px 0; }
.tenants { margin-top: .75rem; font-size: .85rem; }
.sched-summary { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: .6rem; color: var(--muted); }

/* Waitlist cards */
.wl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 1.25rem; }
.wl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .9rem; }
.wl-card.contacted { opacity: .6; }
.wl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.wl-name { font-size: 1.15rem; }
.wl-contact { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; font-size: .95rem; }
.wl-contact a { color: var(--accent-dark); font-weight: 500; }
.wl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .6rem 1rem; padding: .75rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wl-k { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.wl-v { display: block; font-weight: 600; }
.wl-socials { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-block; padding: .25rem .7rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: .85rem; color: var(--text); }
.chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.wl-actions { display: flex; gap: .5rem; }

/* Drop-zone uploader */
.dropzone { border: 2px dashed #cfc8bb; border-radius: 10px; padding: 1rem; background: var(--surface); cursor: pointer; margin-bottom: .75rem; }
.dropzone.over { border-color: var(--accent); background: #eef6f3; }
.dz-inner { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.dz-inner .btn { margin: 0; }
.dz-list { display: flex; flex-direction: column; gap: .35rem; margin-top: .5rem; }
.dz-list:empty { display: none; }
.dz-row { display: flex; align-items: center; gap: .6rem; font-size: .85rem; }
.dz-thumb { width: 44px; height: 33px; border-radius: 4px; background: var(--line); overflow: hidden; flex: none; }
.dz-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dz-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-status { color: var(--muted); }
.dz-status.ok { color: var(--accent-dark); font-weight: 600; }
.dz-status.bad { color: var(--danger); font-weight: 600; }
.dropzone-sm { padding: .4rem .5rem; margin: 0; }
.dropzone-sm .dz-thumb { width: 32px; height: 24px; }

/* Admin photo tiles */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; margin: .5rem 0 .75rem; }
.photo-tile { display: block; font-weight: 400; margin: 0; }
.photo-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.photo-tile input { width: auto; display: inline; margin: .3rem .25rem 0 0; }
details summary { cursor: pointer; margin: .5rem 0; }

/* Admin */
.admin h1 { margin-bottom: 1.5rem; padding-top: 2rem; }
.admin section { margin-bottom: 2.5rem; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .95rem; }
.table th, .table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #f5f2ec; }
.table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.panel h2 { margin-top: 0; }
.inline-form { display: inline; }
.login-box { max-width: 380px; margin: 4rem auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.checkbox { display: flex; align-items: center; gap: .5rem; }
.checkbox input { width: auto; margin: 0; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }

@media (max-width: 800px) {
  .property-body, .admin-grid, .form-grid { grid-template-columns: 1fr; }
  .booking-box { position: static; }
  .gallery-3 { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-3 img:first-child { grid-row: auto; aspect-ratio: 3/2; }
  .hero h1 { font-size: 2rem; }
}
