:root {
  color-scheme: light;
  --ink: #183e37;
  --muted: #70796f;
  --green: #183e37;
  --green-dark: #102d27;
  --bronze: #a77851;
  --cream: #f7f5f0;
  --line: #e4e4db;
  --red: #a34d43;
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'Manrope', Arial, sans-serif;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--bronze); outline-offset: 4px; }
[hidden] { display: none !important; }
.site-header { min-height: 98px; padding: 0 max(32px, calc((100vw - 1280px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 24px; background: var(--cream); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--green); font-family: var(--display); font-size: 29px; letter-spacing: -.9px; white-space: nowrap; }
.brand svg { color: var(--bronze); width: 38px; height: 42px; }
.brand small { display: block; margin-top: 6px; font: 9px var(--body); letter-spacing: 2.2px; color: var(--muted); }
.site-header nav { display: flex; align-items: center; gap: 27px; }
.site-link { font-size: 12px; font-weight: 500; }
.site-link span { color: var(--bronze); margin-left: 10px; font-size: 18px; }
.button { border: 0; border-radius: 5px; min-height: 49px; padding: 14px 21px; font-size: 13px; font-weight: 600; display: inline-flex; justify-content: center; align-items: center; gap: 18px; transition: background .18s, transform .18s, box-shadow .18s; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button-primary { background: var(--green); color: white; }
.button-primary:hover:not(:disabled) { background: var(--green-dark); box-shadow: 0 4px 15px #183e371a; }
.button-secondary { background: #ecefe7; color: var(--green); }
.button-secondary:hover:not(:disabled) { background: #e1e7db; }
.button-quiet { background: transparent; border: 1px solid #d9ddd4; min-height: 41px; font-size: 12px; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 2px; line-height: 1.5; color: #93683f; display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; }
h1 { font-size: 49px; line-height: 1.1; margin: 15px 0; letter-spacing: -1.5px; }
h2 { font-size: 29px; line-height: 1.2; margin: 10px 0 12px; letter-spacing: -.65px; }
p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 29px; }
.login-shell { max-width: 1080px; margin: 65px auto 74px; display: grid; grid-template-columns: 1.17fr 1fr; align-items: stretch; min-height: 510px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 14px 40px #263d2910; }
.login-intro { position: relative; isolation: isolate; overflow: hidden; background: var(--green); color: #fff; min-height: 510px; display: flex; flex-direction: column; justify-content: flex-end; padding: 46px; }
.login-intro::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #122e2b10 4%, #102e2991 43%, #102e29ee 100%); z-index: -1; }
.login-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% center; z-index: -2; }
.login-intro .eyebrow { color: #e7ceb5; font-size: 9px; letter-spacing: 2.8px; }
.login-intro h1 { font-size: 51px; line-height: 1.08; margin: 20px 0 20px; letter-spacing: -1.6px; }
.login-intro h1 em { font-weight: 400; color: #f3e7d5; }
.login-intro p { color: #e1e7dd; font-size: 13px; line-height: 1.75; margin: 0 0 35px; }
.login-location { display: block; font-size: 8px; font-weight: 500; letter-spacing: 1.7px; color: #d4dacd; }
.login-location span { padding: 0 9px; }
.login-card { padding: 50px; border: 0; border-radius: 0; display: flex; flex-direction: column; justify-content: center; background: #fff; }
.section-icon { width: 48px; height: 48px; color: var(--bronze); display: grid; place-items: center; border: 1px solid #e4ddce; border-radius: 50%; margin-bottom: 28px; }
.login-card h2 { font-size: 36px; margin: 11px 0 14px; }
.login-card p { font-size: 13px; margin-bottom: 19px; }
.login-card .button-primary { width: 100%; margin-top: 24px; }
.password-wrap { display: flex; border: 1px solid #d6dbd0; border-radius: 5px; overflow: hidden; background: #fdfdfb; }
.password-wrap:focus-within { outline: 2px solid var(--bronze); outline-offset: 2px; }
.password-wrap input { border: 0; min-width: 0; outline: none !important; box-shadow: none; }
.password-wrap button { border: 0; background: transparent; color: var(--green); font-size: 12px; padding: 0 15px; }
.dashboard { max-width: 1280px; margin: 0 auto; padding: 48px 32px 72px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-heading p { margin-bottom: 0; font-size: 13px; }
.session-badge { font-size: 10px; border: 1px solid #dbe1d4; padding: 10px 13px; border-radius: 20px; display: flex; align-items: center; gap: 7px; color: #53735c; }
.session-badge span { width: 5px; height: 5px; border-radius: 50%; background: #698867; }
.villa-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 29px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.villa-tabs button { position: relative; padding: 14px 31px; border: 1px solid #dde1d7; border-radius: 5px; background: transparent; color: #637062; font-family: var(--display); font-size: 21px; min-height: 53px; transition: background .18s, color .18s; }
.villa-tabs button:hover:not(:disabled) { background: #eceee6; }
.villa-tabs button[aria-selected=true] { background: var(--green); border-color: var(--green); color: #fff; }
.management-grid { display: grid; grid-template-columns: minmax(0, 1.43fr) minmax(350px, 1fr); align-items: start; gap: 27px; outline: none; }
.calendar-card { padding: 30px; }
.card-heading { display: flex; justify-content: space-between; align-items: center; }
.card-heading h2 { margin-bottom: 15px; }
.month-nav { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 25px; }
.month-nav h3 { font-size: 15px; margin: 0; font-weight: 600; text-transform: capitalize; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; font-family: var(--display); font-size: 26px; border: 1px solid var(--line); background: #fff; border-radius: 50%; color: var(--ink); line-height: 1; }
.icon-button:hover:not(:disabled) { background: var(--cream); }
.weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.weekdays { font-size: 10px; font-weight: 500; color: #747d71; text-align: center; margin-bottom: 11px; }
.weekdays span { padding: 7px 0; }
.calendar-grid { min-height: 330px; }
.day { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 9px; min-height: 64px; position: relative; border-radius: 5px; border: 1px solid #e8ecdf; background: #f4f6ef; color: #385842; padding: 7px 2px; font-size: 14px; font-variant-numeric: tabular-nums; transition: box-shadow .15s, background .15s; }
.day .day-price { font-size: 9px; font-weight: 400; white-space: nowrap; color: #65795c; }
.day.booked { background: #f8eeeb; border-color: #f1dfd8; color: #995e51; }
.day.booked .day-price { color: #a37265; }
.day.booked::after { content: ''; position: absolute; right: 6px; top: 6px; width: 4px; height: 4px; border-radius: 50%; background: #ba7f6d; }
.day.unavailable { background: #f1eee7; border-color: #e3d9c8; color: #74664e; }
.day.unknown { background: #f1f2f2; border-color: #e1e3e3; color: #6b7475; }
.day.unavailable .day-price, .day.unknown .day-price { color: inherit; }
.day.option { background: #fff4d8; border-color: #ebd29b; color: #806027; }
.day.option .day-price { color: #806027; }
.day.boundary-checkin, .day.boundary-checkout, .day.boundary-turnover { gap: 5px; }
.day.boundary-option { --boundary-busy: #fff4d8; }
.day.boundary-checkin.partial-boundary:not(.selected) { background: linear-gradient(135deg, #f4f6ef 49%, var(--boundary-busy, #f8eeeb) 51%); }
.day.boundary-checkout.partial-boundary:not(.selected) { background: linear-gradient(135deg, var(--boundary-busy, #f8eeeb) 49%, #f4f6ef 51%); }
.day .day-boundary { font-size: 8px; line-height: 1.15; white-space: nowrap; }
.day.today .day-number { text-decoration: underline; text-underline-offset: 5px; }
.day.selected { background: #e2eadd; border-color: #b7c7aa; color: var(--green); }
.day.selected .day-price { color: #507348; }
.day.range-edge { background: var(--green); border-color: var(--green); color: #fff; }
.day.range-edge .day-price { color: #d1dfc5; }
.day:hover:not(:disabled) { box-shadow: inset 0 0 0 1px #849e72; }
.day.empty { background: transparent; border: 0; min-height: 0; }
.calendar-loading { margin: 17px 0 0; color: var(--green); font-size: 12px; }
.calendar-legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 24px; margin-top: 25px; }
.calendar-legend span { display: flex; align-items: center; gap: 7px; }
.legend-dot { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.legend-dot.available { background: #d9e4d0; border: 1px solid #bdcdaF; }
.legend-dot.booked { background: #eed4c9; border: 1px solid #dbb2a0; }
.legend-dot.unavailable { background: #e9e0d0; border: 1px solid #d7cbb7; }
.legend-dot.unknown { background: #e4e8e8; border: 1px solid #cbd2d2; }
.legend-dot.option { background: #f5dc9f; border: 1px solid #d8b563; }
.legend-dot.selected { background: var(--green); }
.calendar-hint { font-size: 11px; margin: 18px 0 0; }
.settings-column { display: grid; gap: 23px; }
.base-price-card { background: #f0f1e9; border-color: #dfe3d6; }
.base-price-card h2, .edit-card h2 { font-size: 28px; margin-top: 10px; }
.base-price-card p { font-size: 12px; margin-bottom: 22px; color: #667460; }
label { display: block; font-size: 12px; font-weight: 500; margin: 20px 0 9px; }
input, select { width: 100%; border: 1px solid #d9dfd2; border-radius: 5px; min-height: 48px; padding: 12px 13px; background: #fdfdfb; color: var(--ink); font-size: 14px; }
select { padding-right: 29px; }
input:focus, select:focus { border-color: #7e9670; }
input[type=date] { min-width: 0; max-width: 100%; padding: 12px 9px; font-size: 13px; }
.base-price-controls { display: flex; align-items: center; gap: 10px; }
.base-price-controls input { min-width: 0; flex: 1; font-size: 19px; font-family: var(--display); }
.base-price-controls .button { padding-left: 17px; padding-right: 17px; background: var(--green); color: white; }
.base-price-controls .button:hover:not(:disabled) { background: var(--green-dark); }
.date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.date-fields label { margin-top: 12px; }
.selection-description { margin: 10px 0 23px; font-size: 11px; color: #75815f; }
.edit-card .button-primary { width: 100%; margin-top: 27px; }
.form-footnote { font-size: 11px; margin: 15px 0 0; line-height: 1.75; }
.form-error { font-size: 12px !important; color: #983d2e !important; background: #fcf0eb; border: 1px solid #f0d9ce; border-radius: 5px; padding: 12px; margin: 14px 0 0; line-height: 1.6; }
.notice { position: fixed; z-index: 30; right: 28px; top: 110px; background: #f1f5eb; color: #3d6237; border: 1px solid #c7d7b9; border-radius: 7px; box-shadow: 0 7px 24px #183e3715; padding: 15px 21px; max-width: min(440px, calc(100vw - 48px)); font-size: 13px; line-height: 1.6; }
.notice.error { color: #963f30; background: #fdf1eb; border-color: #e8c4b4; }
.initial-loading { text-align: center; padding: 110px 24px; color: var(--muted); font-size: 14px; }
.admin-footer { border-top: 1px solid var(--line); max-width: 1216px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0 30px; color: #7d8477; font-size: 10px; }
.footer-brand { font-family: var(--display); color: #4d6655; font-size: 21px; letter-spacing: -.5px; }
@media (min-width: 1200px) {
  .calendar-grid { min-height: 395px; }
  .day { min-height: 74px; }
  .day .day-price { font-size: 10px; }
  .calendar-card { padding: 32px; }
  .calendar-legend { padding-top: 26px; margin-top: 29px; }
}
@media (max-width: 1100px) {
  .login-shell { margin: 45px 32px 60px; }
  .login-intro { padding: 37px; }
  .login-intro h1 { font-size: 44px; }
  .login-card { padding: 37px; }
  .management-grid { gap: 20px; grid-template-columns: minmax(0, 1.3fr) minmax(315px, 1fr); }
  .card, .calendar-card { padding: 25px; }
  .admin-footer { margin: 0 32px; }
}
@media (max-width: 850px) {
  .management-grid { grid-template-columns: 1fr; }
  .settings-column { grid-template-columns: 1fr 1fr; align-items: start; }
  .dashboard { max-width: 770px; }
  .calendar-grid { min-height: 330px; }
  .day { min-height: 66px; }
  .login-shell { grid-template-columns: 1fr 1fr; min-height: 470px; }
  .login-intro { min-height: 470px; padding: 28px; }
  .login-intro h1 { font-size: 38px; }
  .login-card { padding: 28px; }
  .login-card h2 { font-size: 31px; }
  .site-header { min-height: 88px; }
  .notice { top: 100px; }
  .base-price-controls { flex-wrap: wrap; }
  .base-price-controls input { flex-basis: 100%; }
  .base-price-controls .button { width: 100%; }
  .date-fields { gap: 9px; grid-template-columns: 1fr; }
  .date-fields label { margin-top: 12px; }
}
@media (max-width: 600px) {
  .site-header { min-height: 81px; padding: 16px 20px; gap: 15px; flex-wrap: wrap; }
  .brand { font-size: 26px; gap: 10px; }
  .brand svg { width: 31px; height: 37px; }
  .brand small { font-size: 7px; letter-spacing: 1.8px; }
  .site-header nav { gap: 13px; margin-left: auto; width: 100%; padding-top: 12px; border-top: 1px solid var(--line); justify-content: space-between; }
  .site-link { font-size: 11px; }
  .site-link span { margin-left: 5px; }
  .button-quiet { padding: 8px 11px; font-size: 11px; min-height: 35px; }
  .login-shell { display: block; margin: 24px 20px 38px; min-height: 0; border-radius: 9px; }
  .login-intro { min-height: 250px; padding: 28px; }
  .login-photo { object-position: center 53%; }
  .login-intro h1 { font-size: 39px; margin: 14px 0; }
  .login-intro p { font-size: 12px; margin-bottom: 20px; }
  .login-intro p br { display: none; }
  .login-intro .eyebrow { font-size: 8px; }
  .login-location { font-size: 7px; }
  .login-card { padding: 29px; }
  .section-icon { display: none; }
  .login-card h2 { font-size: 34px; }
  .login-card p { font-size: 13px; }
  .dashboard { padding: 34px 18px 40px; }
  .page-heading { align-items: start; gap: 9px; }
  .page-heading h1 { font-size: 38px; margin: 13px 0 13px; letter-spacing: -1.25px; }
  .page-heading p { font-size: 12px; max-width: 250px; }
  .page-heading .eyebrow { font-size: 9px; letter-spacing: 1.7px; }
  .session-badge { font-size: 0; padding: 9px; gap: 0; margin-top: 5px; }
  .session-badge span { width: 6px; height: 6px; }
  .villa-tabs { margin: 26px 0 22px; padding-bottom: 20px; gap: 11px; }
  .villa-tabs button { flex: 1; padding: 13px 15px; min-height: 50px; font-size: 21px; }
  .management-grid { gap: 19px; }
  .card, .calendar-card { padding: 24px 19px; border-radius: 8px; }
  .card-heading h2 { font-size: 28px; }
  .month-nav { margin-top: 14px; margin-bottom: 18px; }
  .month-nav h3 { font-size: 14px; }
  .weekdays, .calendar-grid { gap: 4px; }
  .calendar-grid { min-height: 290px; }
  .day { min-height: 55px; gap: 8px; font-size: 13px; border-radius: 4px; padding: 5px 0; }
  .day .day-price { font-size: 8px; letter-spacing: -.3px; }
  .day.booked::after { top: 4px; right: 4px; width: 3px; height: 3px; }
  .calendar-legend { gap: 15px; font-size: 10px; margin-top: 21px; padding-top: 20px; }
  .calendar-hint { font-size: 11px; margin-top: 17px; }
  .settings-column { grid-template-columns: 1fr; gap: 19px; }
  .base-price-controls { flex-wrap: nowrap; }
  .base-price-controls input { flex-basis: auto; }
  .base-price-controls .button { width: auto; }
  .date-fields { grid-template-columns: 1fr 1fr; gap: 12px; }
  input, select, input[type=date] { font-size: 16px; min-height: 50px; }
  input[type=date] { padding-left: 8px; padding-right: 8px; }
  .notice { top: auto; bottom: 20px; right: 16px; max-width: calc(100vw - 32px); }
  .admin-footer { font-size: 9px; margin: 0 20px; padding: 22px 0 27px; }
  .footer-brand { font-size: 20px; }
}
@media (max-width: 370px) {
  .site-header nav { width: 100%; padding-top: 12px; border-top: 1px solid var(--line); justify-content: space-between; }
  .login-card, .login-intro { padding: 25px; }
  .login-intro h1 { font-size: 35px; }
  .day .day-price { font-size: 7px; }
  .calendar-legend { gap: 10px; }
  .date-fields { gap: 8px; }
}

/* Keep mobile form focus from zooming the page, including native date fields. */
button,a,input,select{touch-action:manipulation}
@media(max-width:850px),(pointer:coarse){
  input,select,input[type=date]{font-size:16px;min-height:50px}
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
