/* Hotels Search Styles */

/* Date Row */
.date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.date-field {
    flex: 1;
}

.date-field input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Nunito', sans-serif;
    color: #1E1E2E;
    background: white;
    -webkit-appearance: none;
}

.date-field input[type="date"]:focus {
    border-color: #FF8E53;
    outline: none;
}

/* Nights Display */
.nights-display {
    text-align: center;
    margin-top: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #FFF5F0, #FFF0E6);
    border-radius: 8px;
}

.nights-display span {
    font-size: 14px;
    font-weight: 700;
    color: #FF8E53;
}

/* Guests Row */
.guests-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.guest-field {
    flex: 1;
}

/* Price Range Row */
.price-range-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-field {
    flex: 1;
    position: relative;
}

.price-prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6C757D;
    font-weight: 600;
}

.price-input {
    padding-left: 28px !important;
}

.price-separator {
    color: #6C757D;
    font-weight: 600;
}

/* Rating Pills */
.rating-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rating-pill {
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    background: #FFFFFF;
    color: #1E1E2E;
    border: 2px solid #E9ECEF;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-pill:hover {
    border-color: #D1D5DB;
}

.rating-pill:active {
    transform: scale(0.95);
}

.rating-pill.active {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    border-color: transparent;
}

/* Amenities Pills */
.amenities-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.amenities-scroll::-webkit-scrollbar {
    display: none;
}

.amenity-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    background: #FFFFFF;
    color: #1E1E2E;
    border: 2px solid #E9ECEF;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.amenity-pill:hover {
    border-color: #D1D5DB;
}

.amenity-pill:active {
    transform: scale(0.95);
}

.amenity-pill.active {
    background: #667eea;
    color: white;
    border-color: transparent;
}

.amenity-icon {
    font-size: 14px;
}

/* Hotel Card */
.hotel-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hotel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.hotel-card-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    overflow: hidden;
}

.hotel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotel-card-image .placeholder-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    opacity: 0.5;
}

/* Hotel Badges */
.hotel-price-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(0,0,0,0.75);
    color: white;
    backdrop-filter: blur(4px);
}

.hotel-price-badge .price {
    font-size: 18px;
    font-weight: 800;
}

.hotel-price-badge .per-night {
    font-size: 11px;
    opacity: 0.9;
}

.hotel-rating-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255,255,255,0.95);
    color: #1E1E2E;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hotel-rating-badge .star {
    color: #F59E0B;
}

.hotel-save-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

.hotel-save-btn:hover {
    transform: scale(1.1);
}

.hotel-save-btn.saved {
    background: #FEE2E2;
    color: #DC2626;
}

/* Hotel Card Content */
.hotel-card-content {
    padding: 16px;
}

.hotel-name {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #1E1E2E;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hotel-location {
    font-size: 13px;
    color: #6C757D;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hotel-location .icon {
    font-size: 12px;
}

/* Hotel Amenities */
.hotel-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.hotel-amenity-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: #F3F4F6;
    color: #4B5563;
}

.hotel-amenity-tag .icon {
    font-size: 10px;
}

/* Hotel Total Price */
.hotel-total {
    font-size: 13px;
    color: #6C757D;
    padding-top: 10px;
    border-top: 1px solid #F0F0F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hotel-total .total-label {
    font-weight: 600;
}

.hotel-total .total-price {
    font-size: 15px;
    font-weight: 800;
    color: #059669;
}

/* Hotel Actions */
.hotel-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #F0F0F0;
    margin-top: 12px;
}

.hotel-actions .btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hotel-actions .btn-save {
    background: #FEF2F2;
    color: #DC2626;
    border: none;
}

.hotel-actions .btn-trip {
    background: #F0F3FF;
    color: #667eea;
    border: none;
}

.hotel-actions .btn-book {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border: none;
}

/* Results Header */
.results-header {
    margin-bottom: 16px;
}

.results-count {
    font-size: 14px;
    font-weight: 700;
    color: #6C757D;
}

.results-subtitle {
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 4px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 800;
    color: #1E1E2E;
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 14px;
    color: #6C757D;
    margin-bottom: 20px;
}

/* Source Badge */
.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #6B7280;
    margin-top: 4px;
}

.source-badge.amadeus {
    color: #3B82F6;
}

.source-badge.google {
    color: #10B981;
}

/* Modal Styles (for trip selector) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.modal-overlay.show {
    display: flex !important;
}

.modal {
    background: white;
    border-radius: 20px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #1E1E2E;
    margin-bottom: 16px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-actions .btn {
    flex: 1;
}

.trip-select-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid #E9ECEF;
    margin-bottom: 8px;
}

.trip-select-item:hover {
    border-color: #D1D5DB;
}

.trip-select-item.selected {
    border-color: #FF8E53 !important;
    background: #FFF5F0 !important;
}

.trip-select-radio {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: 2px solid #D1D5DB;
    flex-shrink: 0;
    position: relative;
    background: white;
}

.trip-select-item.selected .trip-select-radio {
    border-color: #FF8E53 !important;
    background: #FF8E53 !important;
}

.trip-select-item.selected .trip-select-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.trip-select-info { flex: 1; }

.trip-select-name {
    font-size: 15px;
    font-weight: 700;
    color: #1E1E2E;
}

.trip-select-meta {
    font-size: 12px;
    color: #6C757D;
    margin-top: 2px;
}

.trip-select-new {
    justify-content: center;
    color: #FF8E53;
    font-weight: 700;
    border-style: dashed;
}

.btn-outline {
    background: white;
    border: 2px solid #E9ECEF;
    color: #1E1E2E;
}

/* Responsive Adjustments */
@media (max-width: 360px) {
    .date-row,
    .guests-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .price-range-row {
        flex-direction: column;
    }

    .price-separator {
        display: none;
    }
}
