/* ─── SHH Booking System CSS ────────────────────────────────── */
/* Salento Holiday Houses · MarantoWeb */

:root {
    --shh-teal:    #2c5f5d;
    --shh-teal-l:  #3d8280;
    --shh-gold:    #c8a96e;
    --shh-sand:    #f5f0e8;
    --shh-white:   #ffffff;
    --shh-text:    #2d2d2d;
    --shh-muted:   #6b7280;
    --shh-border:  #e5e7eb;
    --shh-error:   #dc2626;
    --shh-success: #16a34a;
    --shh-radius:  12px;
    --shh-shadow:  0 4px 24px rgba(0,0,0,.10);
}

.shh-booking-wrapper {
    font-family: 'Georgia', serif;
    color: var(--shh-text);
    max-width: 1100px;
    margin: 0 auto;
}

/* ─── Search bar ─────────────────────────────────────────────── */
.shh-search-bar {
    background: var(--shh-teal);
    border-radius: var(--shh-radius);
    padding: 24px 28px;
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
    box-shadow: var(--shh-shadow);
}

.shh-search-field {
    flex: 1;
    min-width: 140px;
}

.shh-search-field label {
    display: block;
    color: rgba(255,255,255,.75);
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.shh-search-field input,
.shh-search-field select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 2px solid transparent;
    font-size: 15px;
    background: rgba(255,255,255,.15);
    color: #fff;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    box-sizing: border-box;
}

.shh-search-field input::placeholder { color: rgba(255,255,255,.6); }
.shh-search-field select option { color: var(--shh-text); background: #fff; }
.shh-search-field input:focus,
.shh-search-field select:focus {
    outline: none;
    border-color: var(--shh-gold);
    background: rgba(255,255,255,.2);
}

/* ─── Buttons ────────────────────────────────────────────────── */
.shh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}

.shh-btn--primary {
    background: var(--shh-gold);
    color: #fff;
}
.shh-btn--primary:hover { background: #b8955a; transform: translateY(-1px); }

.shh-btn--ghost {
    background: transparent;
    color: var(--shh-teal);
    border: 2px solid var(--shh-teal);
}
.shh-btn--ghost:hover { background: var(--shh-teal); color: #fff; }

.shh-btn--large { padding: 16px 32px; font-size: 16px; }
.shh-btn--full  { width: 100%; justify-content: center; }

.shh-btn--whatsapp {
    background: #25D366;
    color: #fff;
}
.shh-btn--whatsapp:hover { background: #1ebe5d; }

.shh-btn--phone {
    background: var(--shh-teal);
    color: #fff;
    margin-left: 8px;
}

/* ─── Results ────────────────────────────────────────────────── */
.shh-step--results,
.shh-step--form,
.shh-step--loading {
    background: #f5f0e8;
    margin: 0 -9999px;
    padding: 40px 9999px;
    position: relative;
}

.shh-results-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 auto 24px;
    max-width: 1100px;
    flex-wrap: wrap;
}
.shh-results-header p { margin: 0; color: var(--shh-muted); }

.shh-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ─── Card ───────────────────────────────────────────────────── */
.shh-card {
    background: var(--shh-white);
    border-radius: var(--shh-radius);
    overflow: hidden;
    box-shadow: var(--shh-shadow);
    transition: transform .2s, box-shadow .2s;
}
.shh-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.15); }

.shh-card-image { position: relative; }
.shh-card-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.shh-card-location {
    position: absolute;
    bottom: 10px; left: 12px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
}

.shh-card-body { padding: 20px; }
.shh-card-title { margin: 0 0 12px; font-size: 18px; color: var(--shh-teal); }

.shh-card-meta { display: flex; gap: 12px; font-size: 13px; color: var(--shh-muted); margin-bottom: 12px; flex-wrap: wrap; }

.shh-card-amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.shh-amenity {
    font-size: 12px;
    background: var(--shh-sand);
    padding: 3px 8px;
    border-radius: 20px;
    color: var(--shh-teal);
}

.shh-card-price { margin-bottom: 16px; }
.shh-price-total { font-size: 22px; color: var(--shh-teal); }
.shh-price-detail { font-size: 13px; color: var(--shh-muted); }

/* ─── No results ─────────────────────────────────────────────── */
.shh-no-results {
    text-align: center;
    padding: 48px;
    color: var(--shh-muted);
    background: var(--shh-sand);
    border-radius: var(--shh-radius);
}

/* ─── Booking layout (step 3) ────────────────────────────────── */
.shh-booking-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 32px;
    margin-top: 24px;
    align-items: start;
}

@media (max-width: 768px) {
    .shh-booking-layout { grid-template-columns: 1fr; }
}

/* ─── Summary card ───────────────────────────────────────────── */
.shh-summary-card {
    background: var(--shh-sand);
    border-radius: var(--shh-radius);
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.shh-summary-img { width: 100%; height: 180px; object-fit: cover; display: block; }

.shh-summary-card h3 {
    margin: 16px 16px 8px;
    color: var(--shh-teal);
    font-size: 17px;
}

.shh-summary-details { padding: 0 16px 8px; }
.shh-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--shh-border);
    font-size: 14px;
}
.shh-summary-row:last-child { border-bottom: none; }
.shh-summary-row--total { font-size: 16px; font-weight: 700; color: var(--shh-teal); }
.shh-summary-row--deposit { background: rgba(200,169,110,.15); margin: 0 -16px; padding: 10px 16px; font-weight: 700; color: var(--shh-gold); }
.shh-summary-row--balance { background: rgba(44,95,93,.08); margin: 0 -16px; padding: 10px 16px; font-size: 13px; color: var(--shh-teal); }

.shh-summary-badge {
    background: var(--shh-success);
    color: #fff;
    text-align: center;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
}

/* ─── Form ────────────────────────────────────────────────────── */
.shh-booking-form-container {
    background: var(--shh-white);
    border-radius: var(--shh-radius);
    padding: 28px;
    box-shadow: var(--shh-shadow);
}
.shh-booking-form-container h3 { margin: 0 0 20px; color: var(--shh-teal); }

.shh-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) { .shh-form-grid { grid-template-columns: 1fr; } }

.shh-form-field { display: flex; flex-direction: column; gap: 6px; }
.shh-form-field--full { grid-column: 1 / -1; }

.shh-form-field label { font-size: 13px; color: var(--shh-muted); font-weight: 600; }

.shh-form-field input,
.shh-form-field textarea {
    padding: 12px 14px;
    border: 2px solid var(--shh-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color .2s;
    color: var(--shh-text);
}
.shh-form-field input:focus,
.shh-form-field textarea:focus {
    outline: none;
    border-color: var(--shh-teal);
}

.shh-privacy-check {
    margin: 20px 0;
    font-size: 14px;
    color: var(--shh-muted);
}
.shh-privacy-check input { margin-right: 8px; }
.shh-privacy-check a { color: var(--shh-teal); }

.shh-form-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.shh-policy-note {
    font-size: 12px;
    color: var(--shh-muted);
    text-align: center;
    line-height: 1.6;
    border-top: 1px solid var(--shh-border);
    padding-top: 16px;
}

.shh-error {
    background: #fee2e2;
    color: var(--shh-error);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 12px;
}

/* ─── Loading ────────────────────────────────────────────────── */
.shh-loading-content {
    text-align: center;
    padding: 80px 40px;
    color: var(--shh-muted);
}
.shh-loading-spinner {
    width: 48px; height: 48px;
    border: 4px solid var(--shh-border);
    border-top-color: var(--shh-teal);
    border-radius: 50%;
    animation: shh-spin 0.8s linear infinite;
    margin: 0 auto 24px;
}
@keyframes shh-spin { to { transform: rotate(360deg); } }

/* ─── Datepicker modal ───────────────────────────────────────── */
.shh-date-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.shh-date-modal-inner {
    background: #fff;
    border-radius: var(--shh-radius);
    padding: 24px;
    max-width: 720px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.shh-date-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 17px;
    color: var(--shh-teal);
    margin-bottom: 4px;
}

.shh-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--shh-muted);
    line-height: 1;
}

.shh-date-modal-inner .shh-cal { flex: 1; }

@media (min-width: 600px) {
    .shh-date-modal-inner {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .shh-date-modal-header { flex: 0 0 100%; }
}

/* ─── Calendar ───────────────────────────────────────────────── */
.shh-cal { min-width: 260px; flex: 1; }

.shh-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--shh-teal);
}

.shh-cal-nav {
    background: none;
    border: 1px solid var(--shh-border);
    border-radius: 6px;
    width: 32px; height: 32px;
    cursor: pointer;
    font-size: 16px;
    color: var(--shh-teal);
    transition: background .2s;
}
.shh-cal-nav:hover { background: var(--shh-sand); }

.shh-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.shh-cal-dow {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--shh-muted);
    padding: 6px 0;
    text-transform: uppercase;
}

.shh-cal-day {
    text-align: center;
    padding: 8px 4px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background .15s, color .15s;
}
.shh-cal-day:hover:not([data-disabled]) { background: var(--shh-sand); }
.shh-cal-day--disabled { color: #ccc; cursor: not-allowed; text-decoration: line-through; }
.shh-cal-day--start,
.shh-cal-day--end { background: var(--shh-teal); color: #fff; font-weight: 700; }
.shh-cal-day--range { background: rgba(44,95,93,.12); }

/* ─── Confirmation page ──────────────────────────────────────── */
.shh-confirmation {
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: var(--shh-white);
    border-radius: var(--shh-radius);
    box-shadow: var(--shh-shadow);
}
.shh-confirmation-icon { font-size: 64px; margin-bottom: 16px; }
.shh-confirmation h2 { color: var(--shh-teal); margin-bottom: 12px; }

.shh-confirmation-card {
    background: var(--shh-sand);
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
    text-align: left;
}

.shh-confirmation-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--shh-border);
    font-size: 15px;
}
.shh-confirmation-row:last-child { border-bottom: none; }
.shh-confirmation-row--highlight { font-weight: 700; color: var(--shh-teal); font-size: 17px; }

.shh-confirmation-note { color: var(--shh-muted); font-size: 14px; }

/* ─── Success message ────────────────────────────────────────── */
.shh-success-msg {
    text-align: center;
    padding: 48px 32px;
}
.shh-success-msg h3 { color: var(--shh-teal); margin-bottom: 12px; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
    .shh-search-bar { padding: 16px; flex-direction: column; }
    .shh-search-field { min-width: 100%; }
    .shh-btn--primary { width: 100%; justify-content: center; }
    .shh-booking-layout { grid-template-columns: 1fr; }
}
