/**
 * St-Home Theme — MotoPress Hotel Booking Integration Styles
 * Styles the plugin to match our Mediterranean coastal aesthetic
 */

/* ============================================================
   SEARCH AVAILABILITY FORM
   ============================================================ */
.mphb_sc_search-form,
.mphb-search-form,
.mphb_sc_availability-form {
    background: var(--white);
    padding: 2.5rem;
    box-shadow: var(--shadow-medium);
    border-radius: 0;
    margin: 2rem 0;
}

.mphb_sc_search-form label,
.mphb-search-form label {
    font-size: 0.7rem !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase;
    color: var(--ink-soft) !important;
    margin-bottom: 0.5rem !important;
    font-weight: 500 !important;
    font-family: 'Outfit', sans-serif !important;
}

.mphb_sc_search-form input[type="text"],
.mphb_sc_search-form input[type="number"],
.mphb_sc_search-form input[type="date"],
.mphb_sc_search-form select,
.mphb-search-form input,
.mphb-search-form select,
.mphb-checkout-form input,
.mphb-checkout-form select,
.mphb-checkout-form textarea {
    padding: 0.875rem 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--sand-deep) !important;
    background: transparent !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 1rem !important;
    color: var(--ink) !important;
    font-weight: 300 !important;
    transition: border-color 0.3s !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
}

.mphb_sc_search-form input:focus,
.mphb_sc_search-form select:focus,
.mphb-search-form input:focus,
.mphb-checkout-form input:focus,
.mphb-checkout-form select:focus,
.mphb-checkout-form textarea:focus {
    outline: none !important;
    border-bottom-color: var(--sun) !important;
}

/* Search button + booking buttons */
.mphb_sc_search-form button,
.mphb_sc_search-form input[type="submit"],
.mphb-search-form button,
.mphb-search-form input[type="submit"],
.mphb-button,
button.mphb-button,
.mphb-rooms-list .mphb_book_btn,
.mphb-checkout-form button[type="submit"] {
    width: 100% !important;
    padding: 1.125rem 2rem !important;
    background: var(--ink) !important;
    color: var(--white) !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.4s var(--transition) !important;
    border-radius: 0 !important;
    margin-top: 1rem !important;
    font-weight: 500 !important;
}

.mphb_sc_search-form button:hover,
.mphb-button:hover,
.mphb-rooms-list .mphb_book_btn:hover {
    background: var(--sea-deep) !important;
    letter-spacing: 0.25em !important;
    color: var(--white) !important;
}

/* ============================================================
   SEARCH RESULTS (Accommodation listings)
   ============================================================ */
.mphb-rooms-list,
.mphb-search-results {
    margin: 3rem 0;
}

.mphb-room,
.mphb-search-result-room,
article.mphb-rooms-list-item {
    background: var(--white) !important;
    box-shadow: var(--shadow-soft) !important;
    margin-bottom: 2.5rem !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: hidden;
    transition: all 0.5s var(--transition);
}

.mphb-room:hover,
article.mphb-rooms-list-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium) !important;
}

.mphb-room-thumbnail,
.mphb-room img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
}

.mphb-room-title,
.mphb-room h3,
.mphb-room h2,
.mphb-room-name {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 1.75rem !important;
    font-weight: 400 !important;
    color: var(--ink) !important;
    margin: 0 0 0.75rem 0 !important;
    letter-spacing: -0.02em !important;
}

.mphb-room-price,
.mphb-price,
.mphb-tag-price {
    font-family: 'Cormorant Garamond', serif !important;
    color: var(--sea-deep) !important;
    font-size: 1.5rem !important;
    font-weight: 500 !important;
}

.mphb-room-price .mphb-currency {
    color: var(--sun) !important;
}

.mphb-room-attribute,
.mphb-room-meta {
    color: var(--ink-soft) !important;
    font-size: 0.9rem !important;
    margin: 0.25rem 0 !important;
}

.mphb-room-description,
.mphb-room-excerpt {
    color: var(--ink-soft) !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
}

/* ============================================================
   AVAILABILITY CALENDAR
   ============================================================ */
.mphb-calendar,
.mphb-availability-calendar,
.mphb_sc_availability-calendar {
    font-family: 'Outfit', sans-serif !important;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.mphb-calendar table,
.mphb-availability-calendar table {
    border-collapse: collapse;
    width: 100%;
}

.mphb-calendar th,
.mphb-availability-calendar th {
    background: var(--sand) !important;
    color: var(--ink) !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    padding: 0.75rem 0.5rem !important;
    border: none !important;
    font-weight: 500 !important;
}

.mphb-calendar td,
.mphb-availability-calendar td {
    padding: 0.75rem !important;
    text-align: center;
    border: 1px solid var(--sand-deep) !important;
    font-family: 'Outfit', sans-serif !important;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.95rem;
}

/* Available days */
.mphb-calendar .mphb-available,
.mphb-calendar td.available {
    background: var(--white) !important;
    color: var(--ink) !important;
}

.mphb-calendar .mphb-available:hover {
    background: var(--sand-light) !important;
}

/* Booked/unavailable days */
.mphb-calendar .mphb-booked,
.mphb-calendar .mphb-not-available,
.mphb-calendar td.unavailable,
.mphb-calendar td.booked {
    background: var(--sand-deep) !important;
    color: var(--ink-soft) !important;
    text-decoration: line-through;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Today */
.mphb-calendar .mphb-today,
.mphb-calendar td.today {
    background: var(--sun) !important;
    color: var(--white) !important;
    font-weight: 500;
}

/* Selected dates (check-in / check-out) */
.mphb-calendar .mphb-selected,
.mphb-calendar td.selected,
.mphb-calendar td.range-start,
.mphb-calendar td.range-end {
    background: var(--sea-deep) !important;
    color: var(--white) !important;
    font-weight: 500;
}

.mphb-calendar td.in-range {
    background: var(--sea-light) !important;
    color: var(--white) !important;
}

/* Calendar navigation */
.mphb-calendar-nav,
.mphb-availability-calendar-nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 1rem !important;
    padding: 0 0.5rem !important;
}

.mphb-calendar-nav button,
.mphb-availability-calendar-nav button {
    background: transparent !important;
    border: 1px solid var(--sand-deep) !important;
    color: var(--ink) !important;
    padding: 0.5rem 1rem !important;
    cursor: pointer;
    font-family: 'Outfit', sans-serif !important;
    transition: all 0.3s;
}

.mphb-calendar-nav button:hover {
    background: var(--ink) !important;
    color: var(--white) !important;
    border-color: var(--ink) !important;
}

.mphb-calendar-month-name,
.mphb-calendar-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    color: var(--ink) !important;
    text-transform: capitalize;
}

/* ============================================================
   CHECKOUT / BOOKING SUMMARY
   ============================================================ */
.mphb-checkout,
.mphb-booking-form,
.mphb-checkout-form {
    background: var(--white);
    padding: 3rem;
    box-shadow: var(--shadow-medium);
    margin: 2rem 0;
}

.mphb-checkout-section,
.mphb-checkout-form-section {
    border-bottom: 1px solid var(--sand-deep);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.mphb-checkout-section:last-child {
    border-bottom: none;
}

.mphb-checkout h2,
.mphb-checkout h3,
.mphb-booking-form h2,
.mphb-booking-form h3 {
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 400 !important;
    color: var(--ink) !important;
    margin-bottom: 1.5rem !important;
}

.mphb-checkout h3 {
    font-size: 1.5rem !important;
}

/* Booking summary table */
.mphb-booking-summary,
.mphb-booking-details,
table.mphb-booking-table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.mphb-booking-summary th,
.mphb-booking-summary td,
table.mphb-booking-table th,
table.mphb-booking-table td {
    padding: 1rem 0.75rem !important;
    border-bottom: 1px solid var(--sand-deep) !important;
    font-family: 'Outfit', sans-serif !important;
    text-align: left !important;
}

.mphb-booking-summary th,
table.mphb-booking-table th {
    color: var(--ink-soft) !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
    background: var(--sand-light) !important;
}

.mphb-total-price,
.mphb-grand-total {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.75rem !important;
    color: var(--sea-deep) !important;
    font-weight: 500 !important;
}

/* ============================================================
   PAYMENT GATEWAYS
   ============================================================ */
.mphb-gateways,
.mphb-payment-gateways {
    margin: 1.5rem 0;
}

.mphb-gateway,
.mphb-payment-gateway {
    background: var(--sand-light) !important;
    padding: 1.5rem !important;
    margin-bottom: 1rem !important;
    border: 1px solid var(--sand-deep) !important;
    border-radius: 0 !important;
    transition: all 0.3s;
}

.mphb-gateway:hover {
    border-color: var(--sun) !important;
}

.mphb-gateway label {
    font-family: 'Outfit', sans-serif !important;
    color: var(--ink) !important;
    font-weight: 500 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.mphb-gateway input[type="radio"] {
    accent-color: var(--sea-deep);
    width: 18px;
    height: 18px;
}

/* ============================================================
   SUCCESS / ERROR MESSAGES
   ============================================================ */
.mphb-success,
.mphb-message-success,
.mphb-booking-confirmation {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
    padding: 1.5rem !important;
    border-left: 3px solid #2e7d32 !important;
    margin: 1.5rem 0 !important;
    font-family: 'Outfit', sans-serif !important;
}

.mphb-error,
.mphb-message-error,
.mphb-errors {
    background: #ffebee !important;
    color: #c62828 !important;
    padding: 1.5rem !important;
    border-left: 3px solid #c62828 !important;
    margin: 1.5rem 0 !important;
    font-family: 'Outfit', sans-serif !important;
}

/* ============================================================
   SHORTCODE WRAPPERS
   ============================================================ */
.mphb_sc_rooms,
.mphb_sc_search-form,
.mphb_sc_availability-search,
.mphb_sc_availability-calendar {
    margin: 2rem 0;
}

/* Single accommodation page */
.single-mphb_room_type,
.single-mphb_accommodation {
    background: var(--sand-light);
}

.single-mphb_room_type .mphb-room-thumbnail,
.single-mphb_accommodation .entry-content img {
    margin-bottom: 2rem;
    box-shadow: var(--shadow-medium);
}

/* Tabs in single accommodation */
.mphb-tabs,
.mphb-room-tabs {
    margin: 2rem 0;
}

.mphb-tabs ul,
.mphb-room-tabs ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid var(--sand-deep);
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.mphb-tabs li a,
.mphb-room-tabs li a {
    padding: 1rem 0 !important;
    color: var(--ink-soft) !important;
    text-decoration: none !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    position: relative;
    display: block;
}

.mphb-tabs li.active a,
.mphb-room-tabs li.active a {
    color: var(--ink) !important;
    border-bottom: 2px solid var(--sun) !important;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 768px) {
    .mphb_sc_search-form,
    .mphb-checkout,
    .mphb-booking-form {
        padding: 1.5rem !important;
    }

    .mphb-room-title,
    .mphb-room h2,
    .mphb-room h3 {
        font-size: 1.5rem !important;
    }

    .mphb-tabs ul,
    .mphb-room-tabs ul {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* ============================================================
   HIDE PLUGIN BRANDING (subtle)
   ============================================================ */
.mphb-powered-by,
.mphb-plugin-credits {
    text-align: center;
    font-size: 0.7rem;
    color: var(--ink-soft);
    opacity: 0.5;
    margin-top: 2rem;
}
