/* Screenshot-Style Hotel Tables */
.hotels-table-container {
    margin: 30px 0;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hotels-table-wrapper {
    overflow-x: auto;
}

.hotels-display-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Cairo', sans-serif;
}

/* Table Header - Purple */
.hotels-display-table thead {
    background: linear-gradient(135deg, #6B5B95, #8A7BA8);
}

.hotels-display-table thead th {
    padding: 18px 15px;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.hotels-display-table thead th:first-child {
    border-right: none;
}

.hotels-display-table thead th:last-child {
    border-right: none;
}

/* Hotel Name Cell - Merged cells with location */
.hotel-name-cell {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-top: none;
    vertical-align: middle;
    min-width: 250px;
}

.hotel-info-wrapper {
    padding: 15px;
    text-align: center;
}

.hotel-name-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 8px;
    line-height: 1.4;
}

.hotel-stars-display {
    margin: 8px 0;
}

.hotel-stars-display .fa-star {
    color: #FFD700;
    font-size: 0.9rem;
    margin: 0 2px;
}

.hotel-location-badge {
    display: inline-block;
    background: linear-gradient(135deg, #F4A460, #E8956E);
    color: #FFFFFF;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(244, 164, 96, 0.3);
}

/* Data Cells */
.hotels-display-table tbody td {
    padding: 12px 10px;
    text-align: center;
    border: 1px solid #E0E0E0;
    border-top: none;
    font-size: 1rem;
    font-weight: 600;
    color: #2C3E50;
    background: #FFFFFF;
}

.hotels-display-table tbody tr:hover td {
    background: #FFF8E1;
}

/* Price Cells */
.price-data-cell {
    font-weight: 700;
    color: #2C5F9F;
    font-size: 1.05rem;
}

/* Days/Nights Cell */
.days-cell {
    font-weight: 700;
    color: #2C3E50;
    font-size: 1.05rem;
}

/* Child Price Cell */
.child-price-cell {
    font-weight: 700;
    color: #2C3E50;
}

/* Location Labels - Special styling */
.location-label-cell {
    background: linear-gradient(135deg, #F4A460, #E8956E);
    color: #FFFFFF;
    font-weight: 700;
    padding: 12px 15px;
    text-align: center;
    border: none;
    font-size: 0.95rem;
}

/* Book Now Button in Table */
.table-book-button {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #28a745, #34ce57);
    color: #FFFFFF;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(40, 167, 69, 0.3);
    margin: 5px 0;
}

.table-book-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #239d3f, #2ebd4f);
}

.table-book-button i {
    margin-left: 8px;
    font-size: 1.1rem;
}

[dir="ltr"] .table-book-button i {
    margin-left: 0;
    margin-right: 8px;
}

/* Action Cell */
.action-cell {
    text-align: center;
    vertical-align: middle;
    background: #FAFAFA;
    border: 1px solid #E0E0E0;
    border-top: none;
}

/* Note at top of table */
.table-top-note {
    background: #FFF3CD;
    border: 2px solid #FFC107;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    color: #856404;
    font-weight: 600;
}

.table-top-note strong {
    color: #721c24;
}

/* Footer Notes Below Table */
.table-footer-notes {
    padding: 20px;
    background: #F8F9FA;
    border-top: 2px solid #E0E0E0;
}

.footer-notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.footer-note-section {
    background: #FFFFFF;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #6B5B95;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.footer-note-section h4 {
    color: #6B5B95;
    font-size: 1.05rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.footer-note-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-note-section li {
    padding: 5px 0;
    color: #2C3E50;
    font-size: 0.95rem;
}

.footer-note-section li:before {
    content: "• ";
    color: #F39C12;
    font-weight: bold;
    margin-right: 8px;
}

[dir="ltr"] .footer-note-section li:before {
    margin-right: 0;
    margin-left: 8px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hotels-display-table {
        font-size: 0.9rem;
    }
    
    .hotels-display-table thead th {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .hotels-display-table tbody td {
        padding: 10px 6px;
        font-size: 0.9rem;
    }
    
    .hotel-name-cell {
        min-width: 200px;
    }
    
    .hotel-name-text {
        font-size: 0.95rem;
    }
    
    .hotel-location-badge {
        font-size: 0.85rem;
        padding: 6px 15px;
    }
    
    .table-book-button {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .hotels-table-wrapper {
        overflow-x: scroll;
    }
    
    .hotels-display-table {
        min-width: 800px;
    }
    
    .footer-notes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hotels-display-table {
        min-width: 700px;
        font-size: 0.85rem;
    }
    
    .hotel-name-cell {
        min-width: 180px;
    }
    
    .table-top-note {
        font-size: 0.9rem;
        padding: 12px;
    }
}
