/* --- RESORTOS V2.2 WIDGET CORE STYLES --- */

/* Kelluva pääpalkki */
.booking-widget-fixed {
    position: fixed;
    bottom: 25px;
    left: 20px;
    right: 20px;
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border: 1px solid #eee;
    border-radius: 16px;
    z-index: 9999;
    padding: 12px 0;
    font-family: 'Inter', sans-serif;
}

.banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 30px;
}

/* Syöte-lohkot */
.input-block { 
    flex: 1; 
    position: relative; 
}

.input-block label {
    display: block; 
    font-size: 10px; 
    font-weight: 700; 
    color: #aaa;
    margin-bottom: 4px; 
    letter-spacing: 0.5px; 
    text-transform: uppercase;
}

/* Yhtenäistetty tyyli kaikille teksti- ja valintakentille */
.fake-input {
    border: none !important;
    background: transparent !important;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    width: 100%;
    outline: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-family: inherit;
    min-height: 20px;
    display: flex;
    align-items: center;
    /* Apple-varmistus: estetään tekstin valinta ja oletusulkoasu */
    -webkit-appearance: none;
    appearance: none;
}

/* Nuoli-ikoni valikoille (Kohde ja Majoittujat) */
.select-wrapper::after {
    content: '\e5cf'; 
    font-family: 'Material Icons';
    position: absolute; 
    right: 0; 
    bottom: 2px;
    color: #999; 
    font-size: 18px; 
    pointer-events: none;
}

/* --- CUSTOM DROPDOWN & POPOVER STYLES --- */

/* Jaettu pohja kaikille ylöspäin aukeaville valikoille */
.popover {
    display: none; 
    position: absolute; 
    bottom: 85px; 
    left: 0;
    background: white; 
    border: 1px solid #eee; 
    padding: 20px;
    width: 250px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
    border-radius: 12px;
    z-index: 10000;
}

/* Erityistyylit Kohde-valikolle (Dropdown) */
.dropdown-menu {
    max-height: 250px;
    overflow-y: auto;
    padding: 8px 0 !important;
    width: 100% !important;
    min-width: 220px;
}

.dropdown-item {
    padding: 12px 20px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f8f8f8;
    color: #000;
    padding-left: 25px; /* Pieni visuaalinen vaste */
}

/* Majoittujien popoverin rivit */
.pop-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 12px; 
}

.qty button { 
    width: 32px; 
    height: 32px; 
    border: 1px solid #ddd; 
    background: white; 
    border-radius: 6px; 
    cursor: pointer; 
    transition: 0.2s;
}

.qty button:hover { background: #f0f0f0; }
.qty span { margin: 0 15px; font-weight: 600; min-width: 15px; text-align: center; display: inline-block; }

/* --- CRM-LOMAKE JA AI-NUDGE --- */

.crm-form {
    display: none; 
    padding: 15px 30px; 
    border-bottom: 1px solid #f8f8f8;
    background: #fff; 
    gap: 15px; 
    justify-content: center;
}

.form-input { 
    padding: 10px 15px; 
    border: 1px solid #eee; 
    border-radius: 6px; 
    flex: 1; 
    font-size: 14px; 
    outline: none; 
    font-family: inherit;
}

.form-input:focus { border-color: #ccc; }

.ai-nudge-box {
    background: #f0fdf4; 
    padding: 10px; 
    font-size: 0.85rem; 
    color: #166534;
    border-top: 1px solid #dcfce7; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
    border-radius: 0 0 16px 16px;
}

/* --- PÄÄNAPPI --- */

.btn-search {
    background: #2c2c2c; 
    color: white; 
    border: none;
    padding: 16px 35px; 
    border-radius: 8px; 
    font-weight: 600;
    cursor: pointer; 
    transition: 0.3s;
    white-space: nowrap;
}

.btn-search:hover { 
    background: #000; 
    transform: translateY(-1px); 
}

.btn-search:active { transform: translateY(0); }