/**
 * Google Places Autocomplete - Beurdie Huisstijl
 * Donkerpaars (#3A1242) met witte tekst
 */

/* Autocomplete container - Donkerpaars zoals jullie buttons */
.pac-container {
    background: #3A1242;
    border: 1px solid #614168;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(58, 18, 66, 0.3);
    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 */
.pac-container:after {
    display: none !important;
}

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

/* Individual autocomplete items - Subtiele paarse items */
.pac-item {
    background-color: rgba(68, 30, 76, 0.3);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1.5;
    padding: 12px 14px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

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

.pac-item:hover {
    background: #441E4C;
    transform: translateX(3px);
}

/* Active/selected item - Lichtere paarse variant */
.pac-item-selected,
.pac-item-selected:hover {
    background: #614168;
    transform: translateX(3px);
}

.pac-item-selected .pac-item-query,
.pac-item-selected:hover .pac-item-query {
    color: #fff;
}

.pac-item-selected .pac-matched,
.pac-item-selected:hover .pac-matched {
    color: #fff;
    font-weight: 600;
}

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

/* Matched text within query (bold) - Blijft wit maar dikker */
.pac-matched {
    color: #ffffff;
    font-weight: 700;
}

/* Secondary text (city, country, etc.) - Lichtgrijs/wit */
.pac-item .pac-item-query + span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 400;
}

/* Icon - Witte location pin */
.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='%23ffffff' 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 */
.pac-logo:after {
    display: none !important;
}

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

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

/* Input focus state improvements - Jullie paars */
.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 hero section */
.hero-inputs {
    position: relative;
    z-index: 10;
}

.hero-inputs .textbox-container {
    position: relative;
    z-index: 11;
}

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

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

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

.pac-container::-webkit-scrollbar-track {
    background: #2D0934;
    border-radius: 8px;
}

.pac-container::-webkit-scrollbar-thumb {
    background: #614168;
    border-radius: 8px;
}

.pac-container::-webkit-scrollbar-thumb:hover {
    background: #441E4C;
}
