/**
 * Tour Packages Hotel List - Stylesheet
 * Version: 1.0.0
 * Styles for hotel listing page
 */

:root {
    --brand-blue: #004080;
    --brand-blue-dark: #003366;
    --text-primary: #1d3557;
    --text-secondary: #4a6075;
    --muted: #8d9bb0;
    --background: #f4f6fb;
    --card-shadow: rgba(12, 69, 119, 0.08);
    --button-shadow: rgba(0, 64, 128, 0.25);
    --divider: #e5e8ef;
}

.tour-hotel-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 12px 28px;
    direction: rtl;
    font-family: 'Kalame', 'Tahoma', sans-serif;
    background: #fff;
}

.hotel-list-header {
    background: #fff;
    padding: 26px;
    border-radius: 16px;
    margin-bottom: 26px;
    box-shadow: 0 14px 34px var(--card-shadow);
    border: 1px solid #eef1f6;
    text-align: center;
}

.hotel-list-header .package-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.hotel-list-header .package-info {
    font-size: 15px;
    color: var(--text-secondary);
}

.hotel-list-header .package-info span {
    margin: 0 8px;
}

.hotel-list-loading {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 30px;
}

.hotel-list-loading .loading-spinner {
    border: 4px solid rgba(0, 64, 128, 0.1);
    border-top: 4px solid #004080;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hotel-list-loading span {
    font-size: 18px;
    color: #4a6075;
}

.hotel-list-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hotel-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 34px var(--card-shadow);
    display: flex;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #eef1f6;
}

.hotel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(12, 127, 173, 0.15);
}

.hotel-image-wrapper {
    width: 350px;
    min-width: 350px;
    height: 300px;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.hotel-image {
    width: 100%;
    height: calc(100% - 50px);
    object-fit: cover;
    flex-shrink: 0;
}

.hotel-photo-gallery {
    width: 100%;
    height: calc(100% - 50px);
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.photo-main-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.photo-main-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotel-photo-gallery .hotel-image.main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    color: #004080;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.photo-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.photo-prev {
    right: 10px;
}

.photo-next {
    left: 10px;
}

.photo-counter {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
}

.photo-thumbnails {
    position: absolute;
    bottom: 10px;
    right: 10px;
    left: 10px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px;
    border-radius: 6px;
}

.photo-thumb {
    width: 50px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
}

.photo-thumb:hover {
    opacity: 1;
    border-color: #fff;
}

.photo-thumb.active {
    border-color: #fff;
    opacity: 1;
}

.photo-more {
    width: 50px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.hotel-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.hotel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--divider);
}

.hotel-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.hotel-stars {
    display: flex;
    gap: 3px;
    margin-right: 15px;
}

.hotel-stars .star {
    font-size: 20px;
    color: #ddd;
}

.hotel-stars .star.filled {
    color: #ffc107;
}

.hotel-amenities {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
    direction: rtl;
}

.hotel-amenities-label {
    font-weight: 700;
    margin-left: 6px;
    color: var(--text-primary);
}

.hotel-pricing {
    flex: 1;
    margin-bottom: 0px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    direction: rtl;
    table-layout: fixed;
}

.pricing-table tbody tr {
    border-bottom: 1px solid var(--divider);
    line-height: 1.4;
}

.pricing-table tbody tr:last-child {
    border-bottom: none;
}

.pricing-table td {
    padding: 8px 8px;
    color: #1d3557;
    text-align: right !important;
    vertical-align: top;
    direction: rtl;
}

.pricing-table td:first-child {
    color: var(--text-secondary);
    font-weight: 500;
    direction: rtl;
    text-align: right !important;
    width: 70%;
    padding-right: 0;
}

.pricing-table td:last-child {
    text-align: right !important;
    font-weight: 600;
    color: var(--brand-blue);
    font-family: 'Kalame', 'Tahoma', sans-serif;
    width: 30%;
}

.hotel-actions {
    margin-top: auto;
    padding-top: 0px;
    border-top: 1px solid var(--divider);
}

.book-tour-btn {
    width: 100%;
    background: var(--brand-blue);
    color: #fff !important;
    border: none;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Kalame', 'Tahoma', sans-serif;
    margin-bottom: 10px;
    box-shadow: 0 10px 20px var(--button-shadow);
}

.book-tour-btn:hover {
    background: var(--brand-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px var(--button-shadow);
}

.book-tour-btn:active {
    transform: translateY(0);
}


.hotel-location,
.hotel-location-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #4a6075;
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hotel-location-link:hover {
    background: rgba(0, 64, 128, 0.1);
    color: #004080;
    cursor: pointer;
}

.location-icon {
    font-size: 16px;
}

.hotel-list-error {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    color: #dc3545;
    font-size: 16px;
    box-shadow: 0 14px 34px var(--card-shadow);
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hotel-card {
        flex-direction: column;
    }
    
    .hotel-image-wrapper {
        width: 100%;
        min-width: 100%;
        height: 250px;
    }
    
    .hotel-image {
        height: calc(100% - 50px);
    }
    
    .photo-main-container {
        height: calc(100% - 50px);
    }
    
    .photo-nav {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .photo-counter {
        bottom: 50px;
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .hotel-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hotel-stars {
        margin-right: 0;
        margin-top: 10px;
    }
}

@media (max-width: 640px) {
    .tour-hotel-list-container {
        padding: 15px;
    }
    
    .hotel-list-header {
        padding: 20px;
    }
    
    .hotel-list-header .package-title {
        font-size: 22px;
    }
    
    .hotel-list-header .package-info {
        font-size: 14px;
    }
    
    .hotel-content {
        padding: 20px;
    }
    
    .hotel-name {
        font-size: 20px;
    }
    
    .pricing-table {
        font-size: 12px;
    }
    
    .pricing-table td {
        padding: 6px 6px;
    }
}

