#unitravel-search-form {
    position: relative;
}
#prebook-conditions-content {
    max-height: 150px; /* Zobrazíme jen kousek */
    overflow: hidden;  /* Zbytek skryjeme */
    transition: max-height 0.3s ease-out; /* Plynulá animace rozbalení */
}
/* Hlavní kontejner vyhledávací lišty */
.unitravel-search-bar {
    display: flex !important; /* Vynutíme řádek */
    flex-wrap: nowrap;        /* Zákaz zalamování na desktopu */
    align-items: center;
    background: #fff;
    border-radius: 50px;      /* Kulaté rohy */
    padding: 10px 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* Stín */
    gap: 15px;                /* Mezery mezi sekcemi */
}

/* Jednotlivé sekce v liště */
.search-bar-item {
    flex: 1;
    padding: 5px 20px;
    border-right: 1px solid #eee; /* Oddělovací čára */
    min-width: 150px;
    position: relative;
}

.search-bar-item:last-of-type {
    border-right: none;
}

/* Nadpisy (Label) */
.search-bar-label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 2px;
}

/* Inputy uvnitř lišty - odstraníme rámečky */
.search-bar-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: #666;
    padding: 0;
    outline: none;
}

.search-bar-input::placeholder {
    color: #aaa;
}

/* Kulaté tlačítko s lupou */
.btn-search-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #0d6efd; /* Bootstrap Primary Blue */
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.3s;
    flex-shrink: 0; /* Aby se nezmenšilo */
}

.btn-search-circle:hover {
    background-color: #0b5ed7;
}

.search-advanced-options.show {
    display: block;
}

/* Stylování inputů uvnitř advanced sekce (aby vypadaly jako Bootstrap) */
.form-control-sm-custom {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 8px;
    width: 100%;
}

#unitravel-search-table-wrapper .unitravel-results-grid {
    margin-top: 30px;
    display: grid !important; /* Vynutíme Grid */
    gap: 30px !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    
    /* DEFAULT (Mobily) - 1 sloupec */
    grid-template-columns: 1fr !important;
}

/* Samotná karta hotelu */
.hotel-card {
    border: none;
    border-radius: 15px; /* Zaoblené rohy */
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Jemný stín */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Aby obrázek nepřetékal rohy */
    height: 100%; /* Stejná výška pro všechny karty v řadě */
    display: flex;
    flex-direction: column;
}

.hotel-card:hover {
    transform: translateY(-5px); /* Efekt zvednutí při najetí */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Oblast pro obrázek */
.hotel-card-img-wrapper {
    height: 200px;
    background-color: #f0f2f5; /* Šedé pozadí před načtením */
    position: relative;
    overflow: hidden;
}

.hotel-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Obrázek vyplní plochu a nedeformuje se */
    opacity: 0; /* Skryté, dokud se nenačte */
    transition: opacity 0.5s ease;
}

/* Tělo karty */
.hotel-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hotel-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #0f294d;
}

.hotel-card-address {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    flex-grow: 1;
}

.hotel-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    /* DŮLEŽITÉ: Pokud je karta úzká, tlačítko skočí pod cenu, místo aby se uřízlo */
    flex-wrap: wrap; 
    gap: 10px;
    
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
}

.hotel-price-tag {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0d6efd;
}

/* Styl pro potvrzovací obrazovku */
.booking-success-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background: #fff;
    overflow: hidden;
    text-align: center;
    padding: 40px 20px;
}

.success-icon-circle {
    width: 80px;
    height: 80px;
    background: #d4edda;
    color: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px auto;
}

.booking-ref-box {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 20px auto;
    max-width: 400px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #6c757d;
    font-weight: 500;
}

.detail-value {
    color: #212529;
    font-weight: 700;
    text-align: right;
}
.search-divider {
    width: 1px;
    height: 35px;
    background-color: #e0e0e0;
    flex-shrink: 0;
}

/* Jednotlivé sekce */
.search-item {
    flex: 1; /* Roztáhnou se rovnoměrně */
    min-width: 0; /* Zabrání přetečení */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Nadpisy (Label) - malé šedé nahoře */
.search-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 2px;
    white-space: nowrap;
}

/* Inputy - bez rámečků, tučné */
.search-input-clean {
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.95rem;
    color: #000;
    width: 100%;
    padding: 0;
    outline: none;
    text-overflow: ellipsis; /* Tečky, když je text dlouhý */
}

.search-input-clean:focus {
    box-shadow: none;
}

/* Tlačítko */
.search-btn-wrapper {
    flex-shrink: 0; /* Nezmenšovat */
}

/* --- 2. Vyskakovací okno (Dropdown) --- */
.search-advanced-options {
    position: absolute; /* "Plave" nad obsahem */
    top: calc(100% + 15px); /* 15px pod search barem */
    right: 0; /* Zarovnáno doprava (pod tlačítko Search/Guests) */
    width: 420px; /* Fixní šířka, aby se tam vešly sloupce */
    max-width: 95vw; /* Pojistka pro mobily */
    
    background: #ffffff;
    border-radius: 24px; /* Větší zaoblení */
    padding: 25px;
    
    /* Moderní hluboký stín */
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.04);
    
    z-index: 1050; /* Musí být nad vším ostatním */
    display: none;
    
    /* Animace */
    transform-origin: top right;
    animation: dropdownFadeIn 0.2s ease-out;
}

/* Třída pro zobrazení (přepíná JS) */
.search-advanced-options.show {
    display: block;
}

/* Animace otevření */
@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Malá šipka nahoře (trojúhelníček), která ukazuje na search bar */
.search-advanced-options::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 80px; /* Pozice šipky (cca pod Guests) */
    width: 0; 
    height: 0; 
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

/* --- 3. Styly pro Kartu Pokoje uvnitř --- */
.room-config-card {
    background: #f8f9fa; /* Jemně šedé pozadí pro oddělení pokojů */
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.room-config-card:hover {
    background: #fff;
    border-color: #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Hlavička pokoje (Room 1 - Remove) */
.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.room-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f294d;
}

.room-remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.room-remove-btn:hover { text-decoration: underline; }

/* --- 4. Inputy uvnitř advanced (Countery) --- */
.form-label.small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 4px;
}

.form-control-sm-custom {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-align: center; /* Čísla uprostřed */
    font-weight: 600;
    color: #333;
    padding: 6px;
}

.form-control-sm-custom:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* Tlačítko + Add Room */
#add-room-btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 10px 0;
    border: 2px dashed #0d6efd;
    background: transparent;
    color: #0d6efd;
    width: 100%;
    transition: all 0.2s;
}

#add-room-btn:hover {
    background: #f0f7ff;
    border-style: solid;
}
.api-html-content ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.api-html-content li {
    margin-bottom: 4px;
    list-style-type: disc; /* Vynutíme tečky */
}

.api-html-content p {
    margin-bottom: 8px;
}

/* Responsive: Na mobilech to zalomíme */
@media (max-width: 992px) {
    .unitravel-search-bar {
        flex-wrap: wrap;
        border-radius: 20px;
    }
    .search-divider { display: none; }
    .search-item { flex: 100%; border-bottom: 1px solid #eee; padding-bottom: 10px; }
    .search-btn-wrapper { width: 100%; margin-top: 10px; }
    .search-btn-wrapper button { width: 100%; border-radius: 10px !important; }
}

/* 1. Reset pro samotné tlačítko */
/* Používáme delší cestu (.unitravel-search-bar ...), abychom přebili obecné styly šablony */
.unitravel-search-bar .search-btn-wrapper button,
.unitravel-search-bar .search-btn-wrapper .btn-search-circle {
    background-color: #0d6efd !important; /* Vynutíme modrou */
    border-color: #0d6efd !important;
    color: #ffffff !important;            /* Vynutíme bílou pro text */
    border: none !important;              /* Odstraníme rámečky šablony */
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.3) !important; /* Modrý stín */
}

/* 2. Reset přímo pro IKONU uvnitř (Lupa) */
/* Toto vyřeší ten problém, že ikona zůstala vínová */
.unitravel-search-bar .search-btn-wrapper button i,
.unitravel-search-bar .search-btn-wrapper .btn-search-circle i {
    color: #ffffff !important; /* Ikona musí být bílá */
    fill: #ffffff !important;  /* Pro případ, že je to SVG */
}

/* 3. Hover efekt (Po najetí myší) */
.unitravel-search-bar .search-btn-wrapper button:hover,
.unitravel-search-bar .search-btn-wrapper .btn-search-circle:hover {
    background-color: #0b5ed7 !important; /* Tmavší modrá */
    border-color: #0a58ca !important;
    transform: scale(1.05); /* Jemné zvětšení */
}

@media (min-width: 768px) {
    #unitravel-search-table-wrapper .unitravel-results-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* DESKTOP (Displeje širší než 1100px) - 3 sloupce */
@media (min-width: 1100px) {
    #unitravel-search-table-wrapper .unitravel-results-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* VELKÉ MONITORY (širší než 1600px) - 4 sloupce */
@media (min-width: 1600px) {
    #unitravel-search-table-wrapper .unitravel-results-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}