* { box-sizing: border-box; }
body { margin: 0; font-family: Georgia, 'Times New Roman', serif; background: #f6f3ec; color: #243324; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.muted { color: #6b7567; }
.small { font-size: 0.85em; }
.error { color: #a33; min-height: 1em; }

.site-header { background: #2e4a2e; color: #f3efe4; padding: 18px 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-header h1 { margin: 0; font-size: 1.7rem; letter-spacing: 0.5px; }
.tagline { margin: 2px 0 0; opacity: 0.85; font-style: italic; }
.header-contact { margin-right: 12px; }

.btn { background: #2e4a2e; color: #fff; border: none; padding: 9px 16px; border-radius: 6px; cursor: pointer; font-size: 0.95rem; }
.btn:hover { background: #3a5c3a; }
.btn:disabled { background: #9aa79a; cursor: not-allowed; }
.btn-ghost { background: transparent; border: 1px solid #cfd4c8; color: inherit; }
.btn-small { padding: 6px 10px; font-size: 0.88rem; }
.btn-big { width: 100%; padding: 13px; font-size: 1.05rem; }
.btn-danger { background: #8c3b2e; }

.banner { background: #fdf3d8; border: 1px solid #d9c27a; border-radius: 8px; padding: 12px 14px; margin: 16px 0; }
.season-note { font-style: italic; }

.cabin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 20px 0 32px; }
.cabin-card { background: #fff; border: 1px solid #ddd6c4; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.cabin-card img.cover { width: 100%; height: 200px; object-fit: cover; background: #e4dfd0; }
.cabin-card .no-photo { height: 200px; display: flex; align-items: center; justify-content: center; background: #e4dfd0; color: #8a8f80; font-style: italic; }
.cabin-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cabin-body h3 { margin: 0; font-size: 1.25rem; }
.cabin-meta { color: #55624f; font-size: 0.92rem; }
.cabin-rate { font-weight: bold; }
.cabin-body .btn { margin-top: auto; }

.policies { background: #fff; border: 1px solid #ddd6c4; border-radius: 10px; padding: 16px 20px; margin-bottom: 32px; }
.avail-box { background: #fff; border: 1px solid #ddd6c4; border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; }
.avail-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.avail-head h2 { margin: 0; font-size: 1.25rem; }
.avail-inputs { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.avail-inputs label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; color: #55624f; }
.cal-nav { display: flex; align-items: center; gap: 12px; margin: 12px 0 8px; }
.cal-nav #cal-title { font-weight: bold; font-size: 1.05rem; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow span { text-align: center; font-size: 0.8rem; color: #6b7567; padding: 2px 0; }
.cal-cell { background: #f0f4ea; border: 1px solid #cdd8bf; border-radius: 6px; padding: 5px 2px; display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; font: inherit; color: inherit; }
.cal-cell .cal-d { font-weight: bold; font-size: 0.95rem; }
.cal-cell .cal-n { font-size: 0.72rem; color: #2e7d32; }
.cal-cell.cal-full { background: #f3efe2; border-color: #ddd6c4; }
.cal-cell.cal-full .cal-n { color: #a33; }
.cal-cell.cal-past { opacity: 0.45; cursor: default; }
.cal-cell.cal-empty { background: transparent; border: none; cursor: default; }
.cal-cell.cal-range { background: #cfe0bd; }
.cal-cell.cal-edge { background: #2e4a2e; color: #fff; }
.cal-cell.cal-edge .cal-n { color: #dce8d2; }
.cal-legend { margin: 8px 0 0; font-size: 0.85rem; }
.pos-layout { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; align-items: start; }
@media (max-width: 800px) { .pos-layout { grid-template-columns: 1fr; } }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; margin-bottom: 8px; }
.pos-item { background: #f0f4ea; border: 1px solid #cdd8bf; border-radius: 8px; padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.pos-item:hover { background: #e2ecd4; }
.pos-item-name { font-weight: bold; font-size: 0.95rem; }
.pos-item-price { color: #55624f; }
.pos-guest { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; color: #55624f; margin-top: 10px; }
.pos-pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.an-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 8px; }
.an-card { background: #f0f4ea; border: 1px solid #cdd8bf; border-radius: 8px; padding: 10px 12px; }
.an-card-label { font-size: 0.8rem; color: #55624f; text-transform: uppercase; letter-spacing: 0.04em; }
.an-card-val { font-size: 1.4rem; font-weight: bold; margin: 2px 0; }
.bar-row { display: flex; align-items: center; gap: 10px; margin: 4px 0; }
.bar-label { width: 64px; font-size: 0.9rem; color: #55624f; }
.bar-track { flex: 1; background: #eef1e8; border-radius: 4px; height: 14px; overflow: hidden; }
.bar-fill { background: #5b7a4a; height: 100%; }
.bar-val { font-size: 0.9rem; white-space: nowrap; }
#manual-booking-form { border: 1px solid #d8dfcf; border-radius: 8px; padding: 12px 14px; margin-bottom: 20px; }
#manual-booking-form h4 { margin: 10px 0 4px; }
.status.pending { color: #a06a00; }
.status.void, .status.refunded { color: #6b7567; }

.modal { position: fixed; inset: 0; background: rgba(20, 30, 20, 0.55); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 12px; z-index: 50; }
.modal-card { background: #fff; border-radius: 12px; max-width: 640px; width: 100%; padding: 22px; position: relative; }
.modal-close { position: absolute; top: 8px; right: 12px; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: #55624f; }
.modal-gallery { display: flex; gap: 8px; overflow-x: auto; margin: 10px 0; }
.modal-gallery img { height: 130px; border-radius: 8px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 12px 0; }
.form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 0.92rem; }
.form-grid label.check { flex-direction: row; align-items: center; gap: 8px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid fieldset { border: 1px solid #ddd6c4; border-radius: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 12px; }
.form-grid fieldset label { display: flex; flex-direction: column; gap: 4px; font-size: 0.92rem; }
.form-inline { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin: 10px 0 18px; }
.form-inline label { display: flex; flex-direction: column; gap: 4px; font-size: 0.92rem; }
input, select, textarea { padding: 8px; border: 1px solid #bfc6b8; border-radius: 6px; font: inherit; background: #fff; }

.boats-head { margin: 14px 0 4px; font-size: 1.05rem; }
.boat-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border: 1px solid #ddd6c4; border-radius: 8px; margin: 8px 0; background: #fff; cursor: pointer; }
.boat-row.taken { opacity: 0.65; cursor: not-allowed; background: #f3efe2; }
.boat-row input { margin-top: 3px; }
.boat-thumb { width: 84px; height: 56px; object-fit: cover; border-radius: 6px; }
.boat-info { flex: 1; font-size: 0.93rem; }
.boat-taken { color: #a33; font-size: 0.85rem; font-weight: bold; }

.price-box { background: #f0f4ea; border: 1px solid #cdd8bf; border-radius: 8px; padding: 12px 14px; margin: 12px 0; color: #243324; }
.price-box table { width: 100%; border-collapse: collapse; }
.price-box td { padding: 2px 0; }
.price-box td:last-child { text-align: right; }
.price-box .total td { font-weight: bold; border-top: 1px solid #b9c7a8; padding-top: 6px; }

.admin-head { display: flex; align-items: baseline; gap: 12px; }
.tabs { display: flex; gap: 6px; margin: 10px 0 16px; flex-wrap: wrap; }
.tab { background: #e7e2d2; border: 1px solid #cfc8ae; padding: 8px 14px; border-radius: 999px; cursor: pointer; font: inherit; }
.tab.active { background: #2e4a2e; color: #fff; border-color: #2e4a2e; }

table.list { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #ddd6c4; }
table.list th, table.list td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee7d3; font-size: 0.92rem; vertical-align: top; }
.status { font-weight: bold; text-transform: capitalize; }
.status.paid, .status.confirmed { color: #2e7d32; }
.status.pending_payment { color: #a06a00; }
.status.canceled { color: #a33; }

.photo-list { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.photo-item { width: 150px; }
.photo-item img { width: 150px; height: 100px; object-fit: cover; border-radius: 8px; }
.photo-item .photo-actions { display: flex; gap: 4px; margin-top: 4px; }
.photo-item button { font-size: 0.75rem; padding: 3px 6px; }
.file-btn { display: inline-block; }

.feed-row { display: flex; gap: 8px; align-items: center; margin: 6px 0; flex-wrap: wrap; }
.feed-row code { background: #efece0; padding: 4px 8px; border-radius: 6px; font-size: 0.82rem; word-break: break-all; }

.site-footer { padding: 22px 0 30px; text-align: center; }
