/* ===== OTA SEARCH BAR ===== */
.ota-search-bar {
    display: flex; align-items: flex-end;
    background: white; border-radius: 50px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    padding: 6px 6px 6px 12px;
    border: 1px solid #e0e0e0; gap: 0;
}
.search-field {
    display: flex; flex-direction: column;
    padding: 8px 14px; flex: 1;
    border-right: 1px solid #ebebeb; position: relative;
}
.search-field--destination { flex: 2; }
.search-field label { font-size: 11px; font-weight: 700; color: #1a1a1a;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.search-input { border: none; outline: none; font-size: 14px; background: transparent;
    color: #1a1a1a; min-height: 26px; width: 100%; }
.search-submit {
    background: #003580; color: white; border: none; border-radius: 40px;
    padding: 13px 22px; font-size: 14px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; gap: 8px; white-space: nowrap;
    min-height: 50px; transition: background 0.2s; flex-shrink: 0;
}
.search-submit:hover { background: #00224f; }

/* Autocomplete */
.autocomplete-list {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: white; border-radius: 12px; z-index: 1000;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15); border: 1px solid #e0e0e0;
    list-style: none; margin: 0; padding: 4px 0;
    max-height: 300px; overflow-y: auto;
}
.autocomplete-item {
    padding: 10px 16px; display: flex; align-items: center; gap: 10px;
    cursor: pointer; font-size: 13px; transition: background 0.1s;
}
.autocomplete-item:hover { background: #f5f7fa; }
.ac-count { font-size: 11px; color: #999; margin-left: auto; }

/* ===== PROPERTY CARDS GRID ===== */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px; padding: 24px 0;
}
.property-card {
    background: white; border-radius: 12px; overflow: hidden;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex; flex-direction: column;
}
.property-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); transform: translateY(-2px); }

.property-card__img-wrap {
    position: relative; aspect-ratio: 4/3; overflow: hidden; background: #f5f5f5;
}
.property-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.property-card:hover .property-card__img { transform: scale(1.04); }
.property-card__img--empty {
    width: 100%; height: 100%; display: flex; align-items: center;
    justify-content: center; color: #ccc; font-size: 13px;
}

.card-save-btn {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0,0,0,0.3); border: none; border-radius: 50%;
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.2s; backdrop-filter: blur(4px);
}
.card-save-btn:hover { background: rgba(255,255,255,0.9); }
.card-save-btn[data-saved="true"] svg { fill: #e74c3c; stroke: #e74c3c; }
.card-save-btn svg { stroke: white; }

.img-count {
    position: absolute; bottom: 8px; left: 8px;
    background: rgba(0,0,0,0.5); color: white; font-size: 11px;
    font-weight: 600; padding: 2px 7px; border-radius: 4px;
}

.property-card__body {
    padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1;
}
.card-meta { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #888; }
.card-type { background: #f0f0f0; padding: 2px 7px; border-radius: 4px;
    font-weight: 700; text-transform: uppercase; font-size: 10px; letter-spacing: 0.3px; }
.card-title { font-size: 15px; font-weight: 700; color: #1a1a1a;
    line-height: 1.35; margin: 0; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: #003580; }

/* Trust badges */
.trust-row { display: flex; flex-wrap: wrap; gap: 4px; }
.badge { display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.badge-verified { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.badge-fast { background: #fff8e1; color: #e65100; border: 1px solid #ffe082; }
.badge-cancel { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.badge-hot { background: #fce4ec; color: #c62828; border: 1px solid #ef9a9a;
    animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.7} }

/* Rating */
.card-rating { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.rating-chip {
    color: white; font-weight: 800; font-size: 13px;
    padding: 3px 8px; border-radius: 5px 5px 5px 0;
}
.chip-exceptional { background: #003580; }
.chip-excellent { background: #0071c2; }
.chip-good { background: #4caf50; }
.rating-word { font-weight: 700; color: #1a1a1a; }
.review-count { color: #888; }

/* Card footer */
.card-footer { display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; padding-top: 10px; border-top: 1px solid #f0f0f0; }
.price-main { font-size: 20px; font-weight: 800; color: #1a1a1a; }
.price-night { font-size: 12px; color: #888; margin-left: 2px; }
.card-cta {
    background: #0071c2; color: white; padding: 9px 15px; border-radius: 8px;
    font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap;
    min-height: 38px; display: flex; align-items: center; transition: background 0.2s;
}
.card-cta:hover { background: #003580; color: white; }
.free-cancel-note { font-size: 11px; color: #2e7d32; font-weight: 600; margin: 0; }

/* Mobile */
@media (max-width: 768px) {
    .ota-search-bar { flex-direction: column; border-radius: 16px; padding: 12px; gap: 4px; }
    .search-field { border-right: none; border-bottom: 1px solid #f0f0f0; }
    .search-submit { width: 100%; justify-content: center; margin-top: 4px; border-radius: 12px; }
    .property-grid { grid-template-columns: 1fr; gap: 16px; }
}

.no-results {
    text-align: center; padding: 60px 20px;
    color: #666; font-size: 16px;
}
.no-results p {
    margin-bottom: 20px;
}

/* ===== GUEST PICKER DROPDOWN ===== */
.guest-picker-container {
    position: relative;
    width: 100%;
}

.guest-picker-trigger {
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 42px;
    display: flex;
    align-items: center;
}
.guest-picker-trigger:hover {
    border-color: #0071c2;
    box-shadow: 0 0 0 3px rgba(0, 113, 194, 0.15);
}
.guest-picker-trigger:focus {
    outline: none;
    border-color: #0071c2;
    box-shadow: 0 0 0 3px rgba(0, 113, 194, 0.25);
}
.guest-picker-summary {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.guest-dropdown {
    display: none;
    position: fixed;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    border: 1px solid #e0e0e0;
    padding: 16px;
    z-index: 1000;
    min-width: 280px;
    max-width: 340px;
}
.guest-dropdown.active {
    display: block;
    animation: dropdownFadeIn 0.15s ease-out;
}
@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}
.guest-row:last-of-type {
    border-bottom: none;
}

.guest-info {
    display: flex;
    flex-direction: column;
}
.guest-title {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
}
.guest-subtitle {
    font-size: 12px;
    color: #717171;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-count {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #d0d0d0;
    background: #fff;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn-count:hover:not(:disabled) {
    background: #f5f7fa;
    border-color: #0071c2;
}
.btn-count:active:not(:disabled) {
    transform: scale(0.95);
}
.btn-count:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.btn-count:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 113, 194, 0.25);
}

.count-value {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    min-width: 40px;
    text-align: center;
}

.btn-done {
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    background: #003580;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-done:hover {
    background: #00224f;
}
.btn-done:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 53, 128, 0.25);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .guest-dropdown {
        left: 16px !important;
        right: 16px !important;
        min-width: auto;
        max-width: none;
        border-radius: 16px;
    }
    .guest-picker-trigger {
        min-height: 48px;
    }
    .btn-count {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
    .btn-done {
        padding: 16px;
        font-size: 16px;
    }
}

.guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.guest-row:last-of-type {
    border-bottom: none;
}

.guest-info {
    display: flex;
    flex-direction: column;
}
.guest-title {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
}
.guest-subtitle {
    font-size: 12px;
    color: #717171;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-count {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #d0d0d0;
    background: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn-count:hover:not(:disabled) {
    background: #f5f7fa;
    border-color: #0071c2;
}
.btn-count:active:not(:disabled) {
    transform: scale(0.95);
}
.btn-count:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.btn-count:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 113, 194, 0.25);
}

.count-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    min-width: 24px;
    text-align: center;
}

.btn-done {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: #003580;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-done:hover {
    background: #00224f;
}
.btn-done:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 53, 128, 0.25);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .guest-dropdown {
        left: -12px;
        right: -12px;
        min-width: auto;
        border-radius: 16px;
    }
    .guest-picker-trigger {
        min-height: 48px;
    }
    .btn-count {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .btn-done {
        padding: 14px;
        font-size: 16px;
    }
}