/**
 * Google Places Autocomplete - Booking Header
 * Witte achtergrond met paarse tekst
 */

/* Autocomplete container - Wit met paarse border */
.booking-header .pac-container {
    background: #ffffff;
    border: 1px solid #3A1242;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(58, 18, 66, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-top: 4px !important;
    padding: 6px;
    z-index: 9999 !important;
    position: absolute !important;
}

/* Remove Google branding footer */
.booking-header .pac-container:after {
    display: none !important;
}

/* Make sure dropdown is positioned correctly relative to input */
.booking-header .textbox-container {
    position: relative;
}

/* Individual autocomplete items - Subtiele witte items */
.booking-header .pac-item {
    background-color: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1.5;
    padding: 12px 14px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.booking-header .pac-item:last-child {
    margin-bottom: 0;
}

.booking-header .pac-item:hover {
    background: rgba(58, 18, 66, 0.08);
    transform: translateX(3px);
}

/* Active/selected item - Lichte paarse achtergrond */
.booking-header .pac-item-selected,
.booking-header .pac-item-selected:hover {
    background: rgba(58, 18, 66, 0.12);
    transform: translateX(3px);
}

.booking-header .pac-item-selected .pac-item-query,
.booking-header .pac-item-selected:hover .pac-item-query {
    color: #3A1242;
}

.booking-header .pac-item-selected .pac-matched,
.booking-header .pac-item-selected:hover .pac-matched {
    color: #3A1242;
    font-weight: 700;
}

/* Query text (main address) - Paars */
.booking-header .pac-item-query {
    color: #3A1242;
    font-size: 14px;
    font-weight: 500;
    margin-right: 4px;
}

/* Matched text within query (bold) - Donkerder paars en dikker */
.booking-header .pac-matched {
    color: #2D0934;
    font-weight: 700;
}

/* Secondary text (city, country, etc.) - Grijsachtig paars */
.booking-header .pac-item .pac-item-query + span {
    color: rgba(58, 18, 66, 0.6);
    font-size: 13px;
    font-weight: 400;
}

/* Icon - Paarse location pin */
.booking-header .pac-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%233A1242' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E") !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
    height: 20px;
    margin-right: 12px;
    margin-top: 0;
    width: 20px;
    display: inline-block;
}

/* Hide powered by Google */
.booking-header .pac-logo:after {
    display: none !important;
}

/* Success state (when address is selected) - Paarse border */
.booking-header .textbox.success {
    border-color: #3A1242 !important;
    box-shadow: 0 0 0 3px rgba(58, 18, 66, 0.1) !important;
}

/* Error state */
.booking-header .textbox.error {
    border-color: #F13B3E !important;
    box-shadow: 0 0 0 3px rgba(241, 59, 62, 0.1) !important;
}

/* Input focus state improvements - Paarse border */
.booking-header .textbox:focus {
    outline: none;
    border-color: #3A1242 !important;
    box-shadow: 0 0 0 3px rgba(58, 18, 66, 0.12) !important;
}

/* Ensure proper z-index and positioning for booking header */
.booking-header .location-filters {
    position: relative;
    z-index: 10;
}

.booking-header .location-filters .textbox-container {
    position: relative;
    z-index: 11;
}

/* Smooth animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-header .pac-container {
    animation: slideIn 0.15s ease-out;
}

/* Scrollbar styling voor dropdown - Paars thema */
.booking-header .pac-container::-webkit-scrollbar {
    width: 6px;
}

.booking-header .pac-container::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 8px;
}

.booking-header .pac-container::-webkit-scrollbar-thumb {
    background: #3A1242;
    border-radius: 8px;
}

.booking-header .pac-container::-webkit-scrollbar-thumb:hover {
    background: #2D0934;
}
