:root{--bg:#f7f8fa;--surface:#fff;--text:#111827;--muted:#778195;--line:#e4e7ec;--blue:#0868f5;--green:#159b68;--red:#d9364c;--gold:#c9834c;--shadow:0 8px 28px rgba(20,32,55,.045)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:'DM Sans',Arial,sans-serif;font-size:14px}.page-shell{max-width:1500px;margin:0 auto;padding:36px 38px 22px}.page-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:var(--gold);margin-bottom:5px}.page-header h1{font-family:'Playfair Display',Georgia,serif;font-size:48px;line-height:1.08;margin:0 0 7px;font-weight:700;letter-spacing:-1px}.page-header p{margin:0;color:var(--muted);font-size:14px}.theme-toggle,.week-arrow,.this-week{background:var(--surface);border:1px solid var(--line);color:var(--text);border-radius:10px;cursor:pointer}.theme-toggle{width:44px;height:44px;font-size:21px}.type-tabs{display:inline-flex;background:#eef0f3;border-radius:11px;padding:4px;margin:0 0 22px;gap:3px}.type-tab{border:0;background:transparent;color:#596273;padding:10px 17px;border-radius:8px;font:600 14px 'DM Sans',sans-serif;cursor:pointer}.type-tab.active{background:var(--surface);color:var(--text);box-shadow:0 1px 4px #00000018}.calendar-card,.request-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.calendar-card{padding:25px 24px 17px}.calendar-topline{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}.availability-summary{display:flex;align-items:center;gap:14px}.summary-icon{width:45px;height:45px;border-radius:12px;background:#e7f9f0;color:var(--green);display:grid;place-items:center;font-size:22px}.availability-summary strong,.availability-summary span{display:block}.availability-summary strong{font-size:17px;font-weight:700;margin-bottom:3px}.availability-summary span{font-size:13px;color:var(--muted)}.week-controls{display:flex;align-items:center;gap:9px}.week-arrow{width:42px;height:42px;font-size:27px;line-height:1}.this-week{height:42px;padding:0 17px;font-weight:600}.week-title{text-align:center;font-size:20px;font-weight:700;margin:2px 0 18px}.table-wrap{overflow-x:auto}.availability-table{width:100%;border-collapse:separate;border-spacing:0;min-width:850px}.availability-table th,.availability-table td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);text-align:center}.availability-table tr>*:first-child{border-left:1px solid var(--line)}.availability-table thead tr:first-child>*{border-top:1px solid var(--line)}.availability-table thead th:first-child{border-top-left-radius:10px}.availability-table thead th:last-child{border-top-right-radius:10px}.availability-table tbody tr:last-child th:first-child{border-bottom-left-radius:10px}.availability-table tbody tr:last-child td:last-child{border-bottom-right-radius:10px}.room-heading,.room-cell{width:230px;text-align:left!important;padding:13px 16px;font-weight:700}.room-heading{font-size:17px}.date-heading{padding:10px 5px 11px;font-weight:500;color:var(--muted)}.date-heading span,.date-heading strong{display:block}.date-heading span{font-size:12px;margin-bottom:4px}.date-heading strong{font-size:15px;color:var(--text)}.date-heading.is-today strong{color:var(--blue)}.room-name{font-size:14px;color:var(--text)}.room-meta{font-size:11px;color:var(--muted);font-weight:400;margin-top:4px}.day-cell{height:62px;padding:6px}.day-button,.day-status{width:52px;height:43px;border-radius:10px;display:inline-grid;place-items:center;font-size:22px;font-weight:600}.day-button{border:1px solid #e0e5eb;background:#fff;color:var(--green);cursor:pointer;transition:.15s}.day-button:hover{border-color:var(--blue);background:#f1f6ff;transform:translateY(-1px)}.day-cell.unavailable{background:repeating-linear-gradient(135deg,#fff0f1,#fff0f1 7px,#ffe1e4 7px,#ffe1e4 14px)}.day-status{color:var(--red)}.day-cell.selected .day-button{background:var(--blue);border-color:var(--blue);color:#fff}.day-cell.today:not(.selected) .day-button{outline:2px solid var(--blue);outline-offset:2px}.legend{display:flex;gap:25px;align-items:center;flex-wrap:wrap;margin:17px 4px 7px;color:var(--muted);font-size:13px}.legend span{display:flex;align-items:center;gap:8px}.legend-box{width:24px;height:24px;border:1px solid var(--line);border-radius:7px;display:inline-grid;place-items:center;font-style:normal;font-weight:700}.available-mark{color:var(--green)}.unavailable-mark{color:var(--red);background:repeating-linear-gradient(135deg,#fff0f1,#fff0f1 5px,#ffe1e4 5px,#ffe1e4 10px)}.today-mark{border:2px solid var(--blue)}.selected-mark{background:var(--blue);color:#fff;border-color:var(--blue)}.calendar-note{margin:12px 4px 0;color:var(--muted);font-size:12px}.request-card{display:grid;grid-template-columns:1.25fr .75fr;gap:34px;margin-top:18px;padding:22px 25px;align-items:end}.selected-room-type{font-size:13px;color:var(--muted);margin-bottom:3px}.selected-nights{font-family:'Playfair Display',Georgia,serif;font-size:26px;font-weight:700;min-height:34px}.change-dates{border:0;background:transparent;color:var(--text);font:600 13px 'DM Sans',sans-serif;cursor:pointer;margin:0 0 12px 10px}.date-pair{display:flex;background:#f1f2f4;border-radius:12px;padding:13px 17px;margin-top:12px;max-width:560px}.date-pair>div{flex:1}.date-pair>div+div{border-left:1px solid #d9dde3;padding-left:22px}.date-pair span,.date-pair strong{display:block}.date-pair span{font-size:12px;color:var(--muted);margin-bottom:3px}.date-pair strong{font-size:13px}.agent-ref-label{display:block;margin:13px 0 5px;font-size:12px;color:var(--muted);font-weight:600}.request-details input{width:min(100%,560px);height:39px;border:1px solid var(--line);border-radius:9px;padding:0 12px;font:13px 'DM Sans',sans-serif;background:var(--surface);color:var(--text);outline:none}.request-details input:focus{border-color:var(--blue)}.request-action p{font-size:13px;color:var(--muted);line-height:1.5;margin:0 0 12px}.whatsapp-button{width:100%;height:51px;border:0;border-radius:11px;background:#087b53;color:#fff;font:700 14px 'DM Sans',sans-serif;cursor:pointer}.whatsapp-button:disabled{opacity:.45;cursor:not-allowed}.whatsapp-icon{font-size:18px;margin-right:7px}.request-feedback{min-height:18px;margin-top:8px;font-size:12px;color:var(--muted)}.request-feedback.success{color:var(--green)}.request-feedback.error{color:var(--red)}.request-feedback.info{color:var(--blue)}footer{text-align:center;color:var(--muted);font-size:12px;padding:20px 8px 0}.loading-cell{text-align:center!important;padding:35px!important;color:var(--muted)}.error-cell{color:var(--red)}
.dark-mode{--bg:#111827;--surface:#1d2737;--text:#f3f4f6;--muted:#aab4c4;--line:#344154;--shadow:none}.dark-mode .type-tabs{background:#273346}.dark-mode .type-tab{color:#cbd5e1}.dark-mode .type-tab.active{background:#334155;color:#fff}.dark-mode .day-button{background:#263448;border-color:#40516a;color:#58d6a0}.dark-mode .day-cell.unavailable{background:repeating-linear-gradient(135deg,#482a34,#482a34 7px,#59313d 7px,#59313d 14px)}.dark-mode .date-pair{background:#263346}.dark-mode .date-pair>div+div{border-color:#42516a}.dark-mode .summary-icon{background:#123e35}.dark-mode .theme-toggle,.dark-mode .week-arrow,.dark-mode .this-week{background:#263346;color:#fff}
@media(max-width:800px){.page-shell{padding:24px 14px}.page-header h1{font-size:40px}.calendar-card{padding:17px 12px}.calendar-topline{align-items:flex-start;flex-direction:column}.week-controls{align-self:flex-end}.request-card{grid-template-columns:1fr;gap:20px;padding:18px}.room-heading,.room-cell{width:185px}.day-cell{height:56px;padding:4px}.day-button,.day-status{width:42px;height:39px}.legend{gap:13px}.week-title{font-size:17px}}

/* Responsive calendar: convert each room into a compact seven-day grid on tablets/phones. */
@media (max-width: 900px) {
  .page-shell{max-width:760px;padding:24px 16px 20px}
  .page-header h1{font-size:42px}
  .calendar-topline{align-items:flex-start;flex-direction:column;gap:14px}
  .week-controls{align-self:flex-end}
  .table-wrap{overflow:visible;width:100%}
  .availability-table{display:block;width:100%;min-width:0;border:0;border-spacing:0}
  .availability-table thead{display:block;width:100%}
  .availability-table thead tr{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));width:100%}
  .availability-table thead th:first-child{display:none}
  .availability-table thead th{min-width:0;padding:9px 1px;border:0;border-bottom:1px solid var(--line);font-size:11px}
  .availability-table thead th:last-child{border-radius:0}
  .availability-table tbody{display:grid;gap:10px;width:100%;padding-top:10px}
  .availability-table tbody tr{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));width:100%;border:1px solid var(--line);border-radius:12px;padding:7px 6px 8px;background:var(--surface)}
  .availability-table tbody tr>*{min-width:0;border:0!important}
  .availability-table tbody .room-cell{grid-column:1/-1;width:auto;text-align:left!important;padding:5px 5px 9px;border-bottom:1px solid var(--line)!important;margin-bottom:3px;font-size:13px}
  .availability-table tbody .room-name{font-size:13px;line-height:1.35;overflow-wrap:anywhere}
  .availability-table tbody .room-meta{font-size:10px;margin-top:2px}
  .availability-table tbody .day-cell{height:auto;min-width:0;padding:7px 1px 2px;background:transparent}
  .availability-table tbody .day-cell.unavailable{background:transparent}
  .day-button,.day-status{width:min(100%,38px);height:36px;border-radius:9px;font-size:17px}
  .day-button{max-width:38px}
  .day-status{max-width:38px;background:repeating-linear-gradient(135deg,#fff0f1,#fff0f1 5px,#ffe1e4 5px,#ffe1e4 10px)}
  .dark-mode .availability-table tbody .day-status{background:repeating-linear-gradient(135deg,#482a34,#482a34 5px,#59313d 5px,#59313d 10px)}
  .legend{gap:10px 15px;margin:15px 2px 5px;font-size:12px}
  .legend-box{width:22px;height:22px}
  .request-card{grid-template-columns:1fr;gap:18px;padding:18px;margin-top:14px}
  .request-details input{width:100%}
  .date-pair{max-width:none;width:100%}
  .request-action p{margin-bottom:10px}
}

@media (max-width: 480px) {
  .page-shell{padding:18px 12px 16px}
  .page-header{gap:10px;margin-bottom:18px}
  .page-header h1{font-size:36px;letter-spacing:-.7px}
  .page-header p{font-size:12px;line-height:1.45;max-width:290px}
  .eyebrow{font-size:9px;letter-spacing:1.5px}
  .theme-toggle{width:38px;height:38px;flex:0 0 38px}
  .type-tabs{display:flex;width:100%;gap:2px;margin-bottom:14px;padding:3px}
  .type-tab{flex:1;min-width:0;padding:10px 3px;font-size:12px;white-space:nowrap}
  .calendar-card{padding:14px 10px 12px;border-radius:15px}
  .availability-summary{gap:10px;width:100%}
  .summary-icon{width:38px;height:38px;flex:0 0 38px;font-size:18px}
  .availability-summary strong{font-size:14px;line-height:1.35}
  .availability-summary span{font-size:11px;line-height:1.4}
  .week-controls{gap:6px}
  .week-arrow{width:36px;height:36px;font-size:23px}
  .this-week{height:36px;padding:0 12px;font-size:12px}
  .week-title{font-size:15px;margin:4px 0 8px}
  .availability-table thead th{font-size:10px;padding:8px 0}
  .availability-table tbody{gap:8px;padding-top:8px}
  .availability-table tbody tr{padding:6px 4px 7px;border-radius:10px}
  .availability-table tbody .room-cell{padding:4px 4px 7px;margin-bottom:2px}
  .availability-table tbody .room-name{font-size:12px}
  .availability-table tbody .room-meta{font-size:9px}
  .availability-table tbody .day-cell{padding:6px 0 1px}
  .day-button,.day-status{width:32px;height:33px;font-size:15px;border-radius:8px}
  .day-button{max-width:32px}
  .day-status{max-width:32px}
  .legend{gap:8px 11px;font-size:10px;margin:12px 1px 4px}
  .legend span{gap:5px}
  .legend-box{width:19px;height:19px;border-radius:6px}
  .calendar-note{font-size:10px;line-height:1.45;margin:10px 1px 0}
  .request-card{padding:15px 13px;border-radius:15px;gap:16px}
  .selected-nights{font-size:24px}
  .date-pair{padding:12px 11px;gap:8px}
  .date-pair>div+div{padding-left:12px}
  .date-pair span{font-size:11px}
  .date-pair strong{font-size:11px;line-height:1.35}
  .change-dates{font-size:12px}
  .request-action p{font-size:12px;line-height:1.45}
  .whatsapp-button{height:48px;font-size:13px}
  footer{font-size:10px;line-height:1.5;padding:16px 4px 0}
}


/* DATIM mobile date sizing and selection clarity */
.day-cell.selected{background:#eaf2ff}
.dark-mode .day-cell.selected{background:#102d58}
.day-button:disabled{cursor:not-allowed;opacity:.35}
.past-status{opacity:.28;text-decoration:line-through;background:transparent!important;border-color:transparent!important}
@media (max-width: 480px){
  .availability-table thead th{font-size:9px!important;line-height:1.15;padding:7px 0!important}
  .availability-table thead th strong{display:block;font-size:9px!important;font-weight:600;line-height:1.2;margin-top:2px}
  .availability-table thead th span{font-size:9px!important}
  .day-button,.day-status{font-size:12px!important;width:29px!important;height:30px!important;border-radius:7px!important}
  .day-button{max-width:29px!important}
  .day-status{max-width:29px!important}
  .availability-table tbody .day-cell{padding:5px 0 1px!important}
}
@media (min-width:481px) and (max-width:900px){
  .availability-table thead th strong{font-size:10px}
  .day-button,.day-status{font-size:14px}
}
