/* Hotels Page Specific Styles */

/* Ensure CSS variables are available */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #5b21b6;
    --text-dark: #2d3748;
}

/* Page Header */
.hotels-header {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
    color: white;
    padding: 80px 0 40px;
    margin-bottom: 60px;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.page-subtitle {
    font-size: 1.25rem;
    text-align: center;
    opacity: 0.95;
    margin-bottom: 3rem;
}

/* Filters Section */
.hotels-filters {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label {
    font-weight: 500;
    font-size: 0.95rem;
}

.category-select,
.sort-select {
    background: white;
    color: #2d3748;
    border: 1px solid #ddd;
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-select:hover,
.sort-select:hover {
    border-color: var(--primary-color);
}

.category-select:focus,
.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.1);
}

/* Ensure dropdown options are visible */
.category-select option,
.sort-select option {
    background: white;
    color: #2d3748;
    padding: 0.5rem;
}

.category-select option:checked,
.sort-select option:checked {
    background: var(--primary-color);
    color: white;
}

.results-count {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Hotels Listing */
.hotels-listing {
    margin-bottom: 80px;
}

.hotels-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual Hotel Row */
.hotel-row {
    display: grid;
    grid-template-columns: 300px 1fr auto;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hotel-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--hotel-gradient);
    opacity: 0.03;
    transition: left 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.hotel-row:hover::before {
    left: 0;
}

.hotel-row:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: var(--hotel-primary);
}

.hotel-row:not(:last-child) {
    margin-bottom: 10px;
}

.hotel-row {
    border-radius: 12px;
}

/* Hotel Image Section */
.hotel-image-section {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    z-index: 1;
    display: block;
    text-decoration: none;
}

a.hotel-image-section {
    cursor: pointer;
}

.hotel-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.photo-description {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.hotel-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* Hotel Info Section */
.hotel-info-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5rem 0;
    position: relative;
    z-index: 1;
}

.hotel-header-info {
    margin-bottom: 1rem;
}

.hotel-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    position: relative;
    display: inline-block;
}

.hotel-name a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.hotel-name a:hover {
    opacity: 0.8;
}

/* Add accent underline on hover */
.hotel-row:hover .hotel-name::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--hotel-secondary, var(--luxury-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.hotel-row:hover .hotel-name::after {
    transform: scaleX(1);
}

.hotel-location-rating {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.hotel-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.95rem;
}

.location-icon {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.hotel-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: var(--hotel-secondary, #fbbf24);
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hotel-row:hover .stars {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.rating-value {
    font-weight: 600;
    color: var(--text-dark);
}

.hotel-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Hotel Features */
.hotel-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.feature-tag {
    background: #f3f4f6;
    color: #4b5563;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.feature-icon {
    width: 14px;
    height: 14px;
}

/* Hotel Amenities */
.hotel-amenities {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.amenity {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.amenity-icon {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

/* Hotel Action Section */
.hotel-action-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    min-width: 200px;
    position: relative;
    z-index: 1;
}

.price-section {
    text-align: right;
    margin-bottom: 1.5rem;
}

.price-from {
    font-size: 0.875rem;
    color: #6b7280;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--hotel-primary, var(--primary-color));
    font-family: 'Playfair Display', serif;
    transition: all 0.3s ease;
}

.hotel-row:hover .price-amount {
    transform: scale(1.05);
    color: var(--hotel-secondary, var(--luxury-gold));
}

.price-night {
    font-size: 0.875rem;
    color: #6b7280;
}

.hotel-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.btn-detail,
.btn-book {
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.btn-detail {
    background: white;
    color: var(--button-color, var(--primary-color));
    border: 2px solid var(--button-color, var(--primary-color));
}

.btn-detail:hover {
    background: var(--button-color, var(--primary-color));
    color: white !important;
    border-color: var(--button-color, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-book {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(91, 33, 182, 0.3);
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 33, 182, 0.4);
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* Special Offers */
.special-offer {
    position: absolute;
    top: -1px;
    right: 20%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    z-index: 3;
    white-space: nowrap;
    transform: rotate(-2deg);
    border-radius: 0 0 8px 8px;
}

.special-offer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 0;
    border-bottom: 22px solid transparent;
    border-right: 10px solid #ef4444;
}

.special-offer::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 0;
    height: 0;
    border-top: 0;
    border-bottom: 22px solid transparent;
    border-left: 10px solid #dc2626;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #f9fafb;
    border-radius: 12px;
    margin: 2rem 0;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #6b7280;
}

/* Navigation Link Styling */
.main-navigation {
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 1rem 0;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

/* Logo Link */
.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-link:hover {
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hotel-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hotel-image-section {
        height: 250px;
    }
    
    .hotel-action-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-top: 1rem;
    }
    
    .price-section {
        margin-bottom: 0;
    }
    
    .hotel-buttons {
        flex-direction: row;
        width: auto;
    }
    
    .hotels-filters {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .category-select,
    .sort-select {
        flex: 1;
    }
}

@media (max-width: 640px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .hotel-name {
        font-size: 1.5rem;
    }
    
    .hotel-action-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .price-section {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .hotel-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
}

/* Loading State */
.hotels-loading {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}