@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Manrope:wght@400;500;600;700&display=swap');

:root { --pine: #142b22; --deep: #0f211a; --ivory: #f8f7f2; --paper: #fff; --brass: #b99a67; --ink: #213229; --muted: #718078; --line: #e0e4dd; --sans: 'Manrope', 'Segoe UI', sans-serif; --serif: 'Cormorant Garamond', Georgia, serif; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f0f1ed; font-family: var(--sans); font-size: 13px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.admin-primary, .admin-secondary { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--pine); padding: 0 16px; color: white; background: var(--pine); font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; transition: background .18s ease; }
.admin-primary:hover { background: #254839; }
.admin-secondary { border-color: var(--line); color: var(--pine); background: white; }
.admin-secondary:hover { border-color: #aab8ad; background: #f7f8f5; }
.link-button { white-space: nowrap; }
.admin-alert { margin: 0 0 18px; border-left: 3px solid #518363; padding: 11px 14px; color: #31583c; background: #e7f1e8; font-size: 12px; }
.admin-alert.error { border-color: #bf6652; color: #823e32; background: #f8ebe7; }

.login-page { display: grid; min-height: 100vh; place-items: center; padding: 28px; background: var(--pine); }
.login-card { width: min(100%, 560px); border-radius: 28px; padding: 52px 50px 48px; background: var(--ivory); box-shadow: 0 24px 70px rgba(0,0,0,.17); text-align: center; animation: card-enter .55s ease both; }
.login-lock { display: grid; width: 70px; height: 70px; margin: 0 auto 16px; place-items: center; border-radius: 19px; color: #d6c39b; background: var(--pine); font-size: 38px; line-height: 1; box-shadow: 0 8px 16px rgba(13,31,25,.14); }
.login-eyebrow { margin: 0; color: #9d855b; font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; }
.login-card h1 { margin: 5px 0 3px; color: var(--pine); font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1.15; }
.login-intro { max-width: 390px; margin: 7px auto 35px; color: #778078; font-size: 13px; }
.login-form { display: grid; gap: 21px; text-align: left; }
.login-form > label { display: flex; flex-direction: column; gap: 7px; color: #26372e; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.login-form input { width: 100%; height: 52px; border: 1px solid #dcdfd8; border-radius: 14px; padding: 0 16px; color: var(--ink); background: #fff; font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.login-form input::placeholder { color: #adb3ad; }
.login-form input:focus { border-color: var(--brass); outline: 3px solid rgba(185,154,103,.15); }
.password-control { position: relative; display: block; }
.password-control input { padding-right: 52px; }
.show-password { position: absolute; top: 0; right: 2px; width: 48px; height: 52px; border: 0; color: #79867e; background: transparent; font-size: 17px; }
.login-submit { min-height: 55px; border-radius: 13px; margin-top: 2px; font-size: 11px; letter-spacing: 1.4px; box-shadow: 0 4px 9px rgba(13,31,25,.13); }
.login-card .admin-alert { text-align: left; }

.admin-layout { min-height: 100vh; }
.admin-sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; display: flex; width: 254px; flex-direction: column; padding: 24px 15px 16px; color: #e9ede7; background: var(--deep); }
.admin-brand { padding: 4px 11px 18px; }
.admin-brand > a { display: flex; align-items: center; gap: 10px; color: #fff; }
.admin-brand > a span { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: 2px; }
.admin-brand > a small { border: 1px solid rgba(203,181,142,.4); padding: 2px 5px; color: #d1bd95; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.admin-brand p { margin: 5px 0 0; color: #97a79c; font-size: 10px; letter-spacing: .3px; }
.live-link { display: flex; min-height: 41px; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.13); padding: 0 11px; color: #e2c99d; font-size: 12px; }
.live-link span { color: #dbe2dc; }
.nav-heading { margin: 24px 10px 8px; color: #87998d; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.admin-nav { display: grid; gap: 3px; overflow-y: auto; }
.admin-nav a { display: flex; min-height: 41px; align-items: center; gap: 10px; border-left: 2px solid transparent; padding: 0 8px; color: #bdc9c0; font-size: 10px; font-weight: 600; transition: background .15s ease, color .15s ease; }
.admin-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.admin-nav a.selected { border-left-color: #c5a873; color: #fff; background: rgba(255,255,255,.09); }
.admin-nav a > span:nth-child(2) { flex: 1; }
.nav-symbol { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; color: #d2bc94; font-size: 15px; }
.admin-nav a small { min-width: 22px; border-radius: 10px; padding: 2px 6px; color: #d8e3d8; background: rgba(255,255,255,.1); font-size: 9px; text-align: center; }
.admin-nav a small.new-count { color: #142b22; background: #d5bf96; }
.sidebar-user { display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); margin-top: auto; padding: 15px 8px 11px; }
.user-avatar { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: #173127; background: #d6c49f; font-size: 9px; font-weight: 700; }
.sidebar-user div:last-child { display: flex; flex-direction: column; }
.sidebar-user strong { color: #f2f4ef; font-size: 10px; }
.sidebar-user span { color: #99a89e; font-size: 9px; }
.logout-form button { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; padding: 7px 10px; color: #bac7bd; background: transparent; font-size: 10px; text-align: left; }
.logout-form button:hover { color: #fff; }
.admin-main { min-height: 100vh; margin-left: 254px; }
.admin-topbar { position: sticky; z-index: 5; top: 0; display: flex; min-height: 79px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 12px 34px; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); }
.topbar-overline { color: #9a835b; font-size: 8px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.admin-topbar h1 { margin: 1px 0 0; font-family: var(--serif); font-size: 31px; font-weight: 500; line-height: 1.15; }
.topbar-actions { display: flex; align-items: center; gap: 22px; }
.status-indicator { color: #718078; font-size: 9px; }
.status-indicator i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #58a56b; }
.status-indicator.unavailable i { background: #bf6652; }
.preview-link { color: var(--pine); font-size: 10px; font-weight: 700; }
.sidebar-toggle { display: none; border: 0; color: var(--pine); background: transparent; font-size: 20px; }
.admin-content { width: min(100%, 1400px); margin: 0 auto; padding: 29px 34px 60px; }
.welcome-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 3px 0 23px; }
.welcome-row h2 { margin: 2px 0 4px; font-family: var(--serif); font-size: 36px; font-weight: 500; line-height: 1.1; }
.welcome-row p:not(.panel-kicker) { margin: 0; color: var(--muted); font-size: 11px; }
.panel-kicker { margin: 0 0 5px; color: #9c8052; font-size: 8px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin-bottom: 18px; }
.stat-card { display: flex; min-height: 132px; flex-direction: column; border: 1px solid var(--line); padding: 17px; background: #fff; transition: border-color .2s ease, transform .2s ease; }
.stat-card:hover { transform: translateY(-2px); border-color: #b7c4b8; }
.stat-card span { color: #758078; font-size: 10px; }
.stat-card strong { margin: 6px 0 1px; color: var(--pine); font-family: var(--serif); font-size: 37px; font-weight: 500; line-height: 1; }
.stat-card small { margin-top: auto; color: #919a93; font-size: 9px; }
.admin-panel { border: 1px solid var(--line); margin-bottom: 18px; background: #fff; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding: 19px 21px; }
.panel-heading h2 { margin: 0; font-family: var(--serif); font-size: 29px; font-weight: 500; line-height: 1.15; }
.panel-heading p:not(.panel-kicker) { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.subtle-link { color: #52685a; font-size: 10px; font-weight: 700; }
.count-chip { border: 1px solid var(--line); padding: 5px 9px; color: #66746b; font-size: 9px; }
.empty-state { padding: 46px 20px; color: var(--muted); text-align: center; }
.empty-state > span { display: grid; width: 46px; height: 46px; place-items: center; margin: 0 auto 10px; border-radius: 50%; color: #9e8557; background: #f1eee6; font-size: 20px; }
.empty-state h3 { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 24px; font-weight: 500; }
.empty-state p { margin: 4px 0 0; font-size: 10px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { border-bottom: 1px solid var(--line); padding: 11px 20px; color: #859087; font-size: 8px; letter-spacing: 1px; text-transform: uppercase; }
td { border-bottom: 1px solid #edf0eb; padding: 13px 20px; color: #536158; font-size: 10px; }
tbody tr:last-child td { border-bottom: 0; }
td strong, td small { display: block; }
td strong { color: var(--ink); font-size: 10px; }
td small { color: #849087; font-size: 9px; }
.status-pill { display: inline-flex; border-radius: 20px; padding: 4px 8px; color: #56645a; background: #eff1ed; font-size: 8px; font-weight: 700; letter-spacing: .5px; }
.status-pill.new { color: #856b3e; background: #f6f0e2; }
.status-pill.contacted { color: #456e78; background: #e6f0f2; }
.status-pill.confirmed { color: #477052; background: #e7f2e8; }
.status-pill.declined { color: #823e32; background: #f8ebe7; }
.content-stack { display: grid; gap: 17px; }
.edit-form { padding-bottom: 18px; }
.edit-form > .panel-heading { margin-bottom: 17px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 16px; padding: 0 21px; }
.field-grid label, .password-form > label { display: flex; min-width: 0; flex-direction: column; gap: 5px; color: #536158; font-size: 9px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.field-grid input, .field-grid textarea, .password-form input { width: 100%; min-height: 39px; border: 1px solid #dfe4dd; border-radius: 2px; padding: 9px 10px; color: var(--ink); background: #fff; font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.field-grid textarea { resize: vertical; }
.field-grid input:focus, .field-grid textarea:focus, .password-form input:focus { border-color: #9d855b; outline: 2px solid rgba(185,154,103,.16); }
.field-grid label small, .password-form small { color: #89938b; font-size: 8px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.wide-field { grid-column: 1 / -1; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 18px; padding: 14px 21px 0; }
.form-footer > span { color: #89938b; font-size: 9px; }
.room-admin-list, .collection-list { display: grid; gap: 13px; padding: 0 21px; }
.room-admin-card, .collection-item { border: 1px solid var(--line); padding: 16px 0; }
.room-admin-head, .collection-item-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 15px 13px; }
.room-index, .collection-item-heading > span { color: #a08455; font-size: 8px; font-weight: 700; letter-spacing: 1.3px; }
.room-admin-card .field-grid, .collection-item .field-grid { padding: 0 15px; }
.delete-action { border: 0; padding: 4px 0; color: #9c594b; background: transparent; font-size: 9px; font-weight: 700; }
.delete-action:hover { color: #682d24; text-decoration: underline; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle-control { display: inline-flex; align-items: center; gap: 7px; color: #607067; font-size: 9px; }
.toggle-control input { accent-color: var(--pine); }
.image-preview { display: flex; align-items: center; gap: 12px; margin: 12px 15px 0; color: #89938b; font-size: 9px; }
.image-preview img { width: 68px; height: 48px; object-fit: cover; background: #e8ebe5; }
.transparency-note { margin: 20px 21px 0; color: #818b84; font-size: 10px; }
.account-panel { max-width: 720px; }
.security-badge { color: #56805f; font-size: 9px; font-weight: 700; }
.password-form { display: grid; max-width: 500px; gap: 14px; padding: 20px 21px 23px; }
.password-form .admin-primary { justify-self: start; margin-top: 4px; }
.enquiry-list { display: grid; }
.enquiry-card { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid #edf0eb; padding: 18px 21px; }
.enquiry-card:last-child { border-bottom: 0; }
.enquiry-main { min-width: 0; flex: 1; }
.enquiry-title { display: flex; align-items: center; gap: 10px; }
.enquiry-title h3 { margin: 0; color: var(--ink); font-size: 12px; }
.enquiry-title time { margin-left: auto; color: #87928a; font-size: 9px; }
.enquiry-details { display: flex; flex-wrap: wrap; gap: 7px 17px; margin-top: 11px; color: #66746b; font-size: 9px; }
.enquiry-details a:hover { color: #9a8054; }
.guest-message { margin: 10px 0 0; color: #536158; font-size: 10px; }
.enquiry-actions { display: flex; flex: 0 1 260px; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 10px; }
.enquiry-actions select { height: 31px; border: 1px solid var(--line); padding: 0 7px; color: var(--ink); background: #fff; font-size: 9px; }
.small-action { color: #52745c; font-size: 9px; font-weight: 700; white-space: nowrap; }
.decision-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.booking-confirm, .booking-decline { min-height: 32px; border: 1px solid #52745c; padding: 0 10px; color: #31583c; background: #edf4ed; font-size: 9px; font-weight: 700; }
.booking-decline { border-color: #c98e80; color: #823e32; background: #fbefec; }
.message-composer { flex-basis: 100%; color: #536158; font-size: 10px; }
.message-composer summary { width: fit-content; color: #52745c; font-weight: 700; cursor: pointer; }
.message-composer form { display: grid; width: min(100%, 420px); gap: 7px; margin-top: 8px; }
.message-composer textarea { width: 100%; border: 1px solid var(--line); padding: 9px; color: var(--ink); background: #fff; font: inherit; font-size: 10px; resize: vertical; }
.message-composer .admin-secondary { justify-self: start; }

@keyframes card-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1080px) {
    .admin-sidebar { width: 220px; }
    .admin-main { margin-left: 220px; }
    .admin-content { padding-right: 22px; padding-left: 22px; }
    .admin-topbar { padding-right: 22px; padding-left: 22px; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .topbar-actions { gap: 12px; }
}
@media (max-width: 760px) {
    .admin-sidebar { width: 255px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 12px 0 28px rgba(0,0,0,.14); }
    .admin-sidebar.is-open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .admin-topbar { min-height: 68px; justify-content: flex-start; gap: 11px; padding: 10px 15px; }
    .sidebar-toggle { display: block; }
    .admin-topbar h1 { font-size: 25px; }
    .topbar-overline { font-size: 7px; }
    .topbar-actions { gap: 0; margin-left: auto; }
    .status-indicator { display: none; }
    .preview-link { font-size: 8px; }
    .admin-content { padding: 20px 14px 45px; }
    .welcome-row { align-items: flex-start; flex-direction: column; }
    .welcome-row h2 { font-size: 31px; }
    .stat-grid { gap: 9px; }
    .stat-card { min-height: 112px; padding: 13px; }
    .stat-card strong { font-size: 32px; }
    .panel-heading { align-items: flex-start; padding: 15px; }
    .panel-heading h2 { font-size: 25px; }
    .field-grid { grid-template-columns: 1fr; gap: 12px; padding: 0 15px; }
    .wide-field { grid-column: auto; }
    .edit-form > .panel-heading { flex-wrap: wrap; }
    .panel-heading > form { margin-left: auto; }
    .form-footer { align-items: flex-start; flex-direction: column; padding-right: 15px; padding-left: 15px; }
    .room-admin-list, .collection-list { padding: 0 12px; }
    .room-admin-card .field-grid, .collection-item .field-grid { padding: 0 11px; }
    .collection-item-heading { margin-right: 11px; margin-left: 11px; }
    .heading-actions { justify-content: flex-end; }
    .heading-actions .admin-primary, .heading-actions .admin-secondary { min-height: 35px; padding: 0 10px; font-size: 8px; }
    .enquiry-card { flex-direction: column; gap: 12px; padding: 15px; }
    .enquiry-actions { flex-wrap: wrap; }
    .enquiry-title { flex-wrap: wrap; }
    .enquiry-title time { margin-left: 0; }
    .login-card { border-radius: 22px; padding: 38px 25px 30px; }
}
@media (max-width: 420px) {
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .stat-card span { font-size: 9px; }
    .panel-heading { gap: 10px; }
    .panel-heading .admin-primary { min-height: 35px; padding: 0 10px; font-size: 8px; }
    .heading-actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }