/* ── Modal shell ─────────────────────────────────────── */
.hwl-book-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: none; align-items: center; justify-content: center;
    padding: 8px;
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
}
@media (min-width: 600px) { .hwl-book-modal { padding: 16px; } }
.hwl-book-modal.is-open { display: flex; }
.hwl-book-backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 23, 17, 0.75);
    backdrop-filter: blur(4px);
}
body.hwl-book-open { overflow: hidden; }

.hwl-book-dialog {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 980px;
    max-height: 95vh;
    border-radius: 16px;
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}
@media (min-width: 600px) { .hwl-book-dialog { border-radius: 24px; max-height: 92vh; } }
.hwl-book-close {
    position: absolute; top: 8px; right: 8px;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.9);
    border: 0;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    color: #1a1a1a;
    z-index: 10;
    line-height: 1;
}
.hwl-book-close:hover { background: #fff; transform: scale(1.05); }
.hwl-book-header {
    padding: 16px 20px 12px;
    background: linear-gradient(135deg, #2C5F3F, #1a3625);
    color: #fff;
}
@media (min-width: 600px) { .hwl-book-header { padding: 24px 28px 16px; } }
.hwl-book-header h2 {
    margin: 0 0 4px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 700;
    padding-right: 40px;
}
@media (min-width: 600px) { .hwl-book-header h2 { font-size: 28px; padding-right: 0; } }
.hwl-book-header p  { margin: 0; color: rgba(255,255,255,0.85); font-size: 12px; }
@media (min-width: 600px) { .hwl-book-header p { font-size: 14px; } }

.hwl-book-body {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 600px) { .hwl-book-body { padding: 20px 28px 28px; gap: 24px; } }
@media (min-width: 880px) {
    .hwl-book-body { grid-template-columns: 1.1fr 1fr; }
}

/* ── Calendar ───────────────────────────────────────── */
.hwl-book-cal-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.hwl-book-months-labels {
    display: flex; gap: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 14px;
    color: #1a1a1a;
}
@media (min-width: 600px) {
    .hwl-book-months-labels { gap: 24px; font-size: 18px; }
}
/* On mobile show only the first month label since only first month is shown */
@media (max-width: 599px) {
    .hwl-book-months-labels [data-month-label-2] { display: none; }
}
.hwl-book-months-labels span { flex: 1; text-align: center; }
.hwl-book-btn-arrow {
    background: #f4f1ec; border: 0; width: 36px; height: 36px;
    border-radius: 50%; font-size: 20px; cursor: pointer; color: #2C5F3F;
}
.hwl-book-btn-arrow:hover { background: #2C5F3F; color: #fff; }
.hwl-book-months {
    display: grid; gap: 16px;
}
@media (min-width: 600px) { .hwl-book-months { grid-template-columns: 1fr 1fr; } }
.hwl-book-month { border: 1px solid #e5e7eb; border-radius: 12px; padding: 6px; }
@media (min-width: 600px) { .hwl-book-month { padding: 8px; } }
/* On mobile, only show the first month — second one is hidden to save space */
@media (max-width: 599px) {
    .hwl-book-month[data-month="1"] { display: none; }
}

.hwl-book-cal-header {
    display: grid; grid-template-columns: repeat(7, 1fr);
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    color: #6b7280; text-align: center; padding: 4px 0;
}
.hwl-book-cal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.hwl-book-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 0;
    background: #fafafa;
    border-radius: 6px;
    cursor: pointer;
    padding: 4px 2px;
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    font-family: inherit;
    transition: all 0.12s ease;
}
.hwl-book-cell:hover:not(.is-past):not(.hwl-book-cell-empty) {
    background: #e8f5e9; transform: scale(1.04); z-index: 2;
}
.hwl-book-cell-empty { background: transparent; cursor: default; pointer-events: none; }
.hwl-book-cell.is-past {
    opacity: 0.35; cursor: not-allowed; pointer-events: none;
}
.hwl-book-cell.is-today { box-shadow: inset 0 0 0 1.5px #2C5F3F; }
.hwl-book-cell.is-from, .hwl-book-cell.is-to {
    background: #2C5F3F !important; color: #fff;
}
.hwl-book-cell.is-from .hwl-book-cell-num,
.hwl-book-cell.is-to   .hwl-book-cell-num { color: #fff; }
.hwl-book-cell.is-in-range { background: #c8e6c9 !important; }
.hwl-book-cell-num {
    font-size: 12px; font-weight: 600; color: #1a1a1a; line-height: 1;
}
@media (min-width: 600px) { .hwl-book-cell-num { font-size: 13px; } }
.hwl-book-cell-dots {
    display: flex; gap: 2px;
}
.hwl-book-cell-dots .hwl-book-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    color: #fff;
    font-size: 7px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
@media (min-width: 600px) {
    .hwl-book-cell-dots .hwl-book-dot { width: 12px; height: 12px; font-size: 8px; }
}
.hwl-book-cell.is-from .hwl-book-cell-dots .hwl-book-dot,
.hwl-book-cell.is-to   .hwl-book-cell-dots .hwl-book-dot {
    box-shadow: 0 0 0 1.5px #fff;
}

.hwl-book-legend {
    display: flex; gap: 12px; margin-top: 12px;
    font-size: 11px; color: #6b7280;
    flex-wrap: wrap;
}
.hwl-book-legend .hwl-book-dot {
    width: 12px; height: 12px; border-radius: 50%;
    display: inline-block; vertical-align: middle; margin-right: 4px;
}

/* ── Form ───────────────────────────────────────────── */
.hwl-book-form { display: flex; flex-direction: column; gap: 14px; }
.hwl-book-form label {
    font-size: 12px; font-weight: 600; color: #374151;
    display: flex; flex-direction: column; gap: 4px;
}
.hwl-book-form input[type=text],
.hwl-book-form input[type=email],
.hwl-book-form input[type=tel],
.hwl-book-form input[type=number],
.hwl-book-form textarea {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}
.hwl-book-form input:focus, .hwl-book-form textarea:focus {
    outline: none; border-color: #2C5F3F; box-shadow: 0 0 0 3px rgba(44,95,63,0.15);
}
.hwl-book-grid-2 {
    display: grid; gap: 10px;
    grid-template-columns: 1fr;
}
@media (min-width: 520px) { .hwl-book-grid-2 { grid-template-columns: 1fr 1fr; gap: 12px; } }
.hwl-book-range-display {
    display: grid; gap: 8px;
    grid-template-columns: 1fr 1fr 1fr;
    background: #f4f1ec; border-radius: 10px; padding: 10px 12px;
}
.hwl-book-range-display strong { font-size: 15px !important; }
@media (min-width: 600px) {
    .hwl-book-range-display { padding: 12px 14px; }
    .hwl-book-range-display strong { font-size: 18px !important; }
}
.hwl-book-range-display label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: #6b7280; }
.hwl-book-range-display strong { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 700; color: #1a1a1a; }

.hwl-book-cottages {
    border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 14px;
    display: flex; flex-direction: column; gap: 8px;
}
.hwl-book-cottages legend { padding: 0 6px; font-size: 12px; font-weight: 600; color: #6b7280; }
.hwl-book-check {
    flex-direction: row !important; align-items: center; gap: 8px !important;
    font-size: 14px !important; cursor: pointer;
}
.hwl-book-check input { width: 18px; height: 18px; }
.hwl-book-pet {
    background: #fffbeb; border: 1px solid #fde68a; padding: 10px 14px; border-radius: 10px;
}

.hwl-book-summary {
    background: linear-gradient(135deg, #2C5F3F, #1a3625);
    color: #fff;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
}
.hwl-book-summary hr { border: 0; border-top: 1px solid rgba(255,255,255,0.2); margin: 10px 0; }
.hwl-book-total {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px; font-weight: 700;
    color: #D4A574;
}
.hwl-book-errors:empty { display: none; }
.hwl-book-errors {
    background: #fef2f2; color: #b91c1c;
    padding: 10px 14px; border-radius: 8px;
    font-size: 13px;
    border: 1px solid #fecaca;
}
.hwl-book-errors ul { margin: 0; padding-left: 20px; }

.hwl-book-submit {
    background: #2C5F3F; color: #fff;
    border: 0;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}
.hwl-book-submit:hover:not(:disabled) { background: #1a3625; transform: scale(1.02); }
.hwl-book-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.hwl-book-success {
    text-align: center; padding: 20px;
}
.hwl-book-success-icon {
    width: 64px; height: 64px;
    background: #2C5F3F; color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
}
.hwl-book-success h3 { font-family: 'Cormorant Garamond', serif; font-size: 28px; margin: 0 0 8px; }
.hwl-book-success p { color: #4b5563; margin: 4px 0; }
.hwl-book-success .hwl-book-submit { margin-top: 16px; }
