/**
 * Book Page Search Form - Custom Modifications
 *
 * Styles for the /book page search form including:
 * - Container wrapper with card styling
 * - Guests dropdown field
 * - Benefits line below the form
 *
 * @package Shaped_Core
 * @since 2.0.0
 */

/* =================================================================
 * CONTAINER - WRAPS FORM AND BENEFITS (has the "card" styling)
 * ================================================================= */
.mphb-book-search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /*background: var(--color-surface-page);*/
    /*border: 1px solid var(--color-border-default);*/
    padding: 24px;
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    position: relative;
    width: 100%;
}

#search-hero {
  box-shadow: 0 0px 16px #ffffff80;

}

.mphb_sc_search-form {
  width: 800px;
}

/* =================================================================
 * FORM INSIDE CONTAINER - Reset card styling (moved to container)
 * ================================================================= */
.mphb-book-search-container .mphb_sc_search-form {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

/* =================================================================
 * GUESTS FIELD - CONTAINER
 * ================================================================= */
.mphb_sc_search-guests {
    flex: 1;
    max-width: 64px;
    margin: 0;
}

.mphb_sc_search-guests label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
    text-transform: none;
    width: fit-content;
    line-height: 1em;
    font-family: var(--font-body);
    margin-bottom: 8px;
}

.mphb_sc_search-guests br {
    display: none;
}

/* =================================================================
 * GUESTS FIELD - SELECT DROPDOWN
 * ================================================================= */
.mphb_sc_search-guests select {
    width: 100%;
    height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: var(--font-body);
    color: var(--color-text-primary);
    background: var(--color-surface-white);
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 16px;
}

.mphb_sc_search-guests select:focus {
    outline: none;
    border-width: 1.5px;
    border-color: var(--color-brand-primary-hover);
    background: white;
}

/* =================================================================
 * BENEFITS LINE - CONTAINER
 * ================================================================= */
.mphb-search-benefits-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    font-family: var(--font-body);
}

/* =================================================================
 * BENEFITS LINE - TEXT ITEMS
 * ================================================================= */
.mphb-search-benefits-inline .benefit-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    line-height: 1.5;
    white-space: nowrap;
}

/* =================================================================
 * BENEFITS LINE - SEPARATORS
 * ================================================================= */
.mphb-search-benefits-inline .benefit-separator {
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1;
}

/* =================================================================
 * TABLET RESPONSIVENESS
 * ================================================================= */
@media (max-width: 1024px) {
    .mphb-search-benefits-inline {
        margin-top: 14px;
    }

    .mphb_sc_search-form {
      width: 100%;
    }
}

/* =================================================================
 * MOBILE RESPONSIVENESS
 * ================================================================= */
@media (max-width: 767px) {
    .mphb-book-search-container {
        padding: 28px 24px;
    }

    .mphb-search-benefits-inline {
        margin-top: 12px;
        gap: 6px;
    }

    .mphb-search-benefits-inline .benefit-item {
        font-size: 13px;
    }

    .mphb-search-benefits-inline .benefit-separator {
        font-size: 11px;
    }

        .mphb_sc_search-form {
      width: 100%;
    }
}

@media (max-width: 479px) {
    .mphb-book-search-container {
        padding: 16px;
        border-radius: var(--radius-lg);
    }

    .mphb_sc_search-guests {
        width: 100%;
        max-width: 44px;
    }

    .mphb_sc_search-guests select {
        padding: 8px 8px 8px 12px;
        font-size: 1rem;
        border-radius: 8px;
        height: 44px;
        padding-right: 16px;
        background-size: 10px 10px;
        background-position: right 8px center;

    }

    .mphb_sc_search-guests label {
        height: auto;
        margin-bottom: 8px;
        margin-left: -2px;
    }
    
    .mphb_sc_search-form {
      width: 100% !important;
    }

    .mphb-search-benefits-inline {
        gap: 4px;
        margin-top: 8px;
    }

    .benefit-separator.nomobile {
      display: none;
    }

    .mphb-search-benefits-inline .benefit-item {
        font-size: 13px;
    }

    .mphb-search-benefits-inline .benefit-item:last-child {
        display: none;
    }
}
