/* ===================================
   RESET & BASE STYLES
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
    font-size: 14px;
}

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

/* ===================================
   HERO SECTION
=================================== */
.hero-section {
    position: relative;
    height: 330px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-top: 85px;
}

.hero-content p {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.95;
}

/* ===================================
   LOCATION SELECTION SECTION
=================================== */
.location-selection {
    padding: 50px 0;
    background: #ffffff;
}

.location-selection h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #2a5298;
    margin-bottom: 8px;
    font-weight: 600;
}

.location-selection .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 35px;
    font-size: 0.95rem;
}

/* Currency Selector */
.currency-selector {
    text-align: center;
    margin-bottom: 35px;
}

.currency-selector label {
    font-weight: 500;
    margin-right: 8px;
    color: #555;
    font-size: 0.9rem;
}

.currency-selector select {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    background-color: white;
    transition: border-color 0.3s;
}

.currency-selector select:hover {
    border-color: #2a5298;
}

.currency-selector select:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 2px rgba(42, 82, 152, 0.1);
}

/* ===================================
   LOCATIONS GRID
=================================== */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.location-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.location-image {
    position: relative;
    overflow: hidden;
    height: 140px;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.location-card:hover .location-image img {
    transform: scale(1.08);
}

.location-card h3 {
    text-align: center;
    padding: 14px;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

/* ===================================
   ROOMS SECTION
=================================== */
.rooms-section {
    padding: 40px 0;
    background: #f9f9f9;
}

.back-button {
    margin-bottom: 25px;
}

.back-button button {
    padding: 10px 20px;
    background: #2a5298;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s;
}

.back-button button:hover {
    background: #1e3c72;
}

.back-button i {
    margin-right: 6px;
    font-size: 0.85rem;
}

.selected-location-title {
    text-align: center;
    font-size: 1.8rem;
    color: #2a5298;
    margin-bottom: 20px;
    font-weight: 600;
}

.currency-display {
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #666;
}

.currency-display strong {
    color: #2a5298;
    font-weight: 600;
}

/* ===================================
   ROOMS GRID
=================================== */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

/* ===================================
   ROOM CARD
=================================== */
.room-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.room-card.room-unavailable {
    opacity: 0.7;
}

.room-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.room-card:hover .room-image img {
    transform: scale(1.05);
}

.room-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(8px);
}

.room-status-badge i {
    font-size: 0.75rem;
}

.status-available {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.status-unavailable {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

/* ===================================
   ROOM CONTENT
=================================== */
.room-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.room-content h3 {
    font-size: 1.3rem;
    color: #2a5298;
    margin-bottom: 8px;
    font-weight: 600;
}

.room-description {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.room-availability {
    margin-bottom: 15px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.room-availability span {
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.room-availability i {
    font-size: 0.8rem;
}

.text-success {
    color: #22c55e;
}

.text-danger {
    color: #ef4444;
}

/* ===================================
   ROOM FEATURES
=================================== */
.room-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #555;
}

.feature-icon {
    color: #2a5298;
    font-size: 0.9rem;
}

/* ===================================
   PRICING SECTION
=================================== */
.pricing-section {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.season-pricing {
    margin-bottom: 12px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.3s;
}

.price-row.active-price {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border: 1px solid #3b82f6;
}

.season-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #555;
    font-weight: 500;
}

.season-label i {
    font-size: 0.75rem;
}

.price-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2a5298;
}

.current-price-display {
    background: #f0f9ff;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
}

.current-label {
    font-size: 0.75rem;
    color: #666;
    display: block;
    margin-bottom: 4px;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2a5298;
    display: inline-block;
    margin-right: 4px;
}

.per-night {
    font-size: 0.75rem;
    color: #888;
}

/* ===================================
   BOOK BUTTON
=================================== */
.book-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.book-btn:hover {
    background: linear-gradient(135deg, #1e3c72 0%, #152a5a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.3);
}

.book-btn i {
    font-size: 0.9rem;
}

.book-btn.disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.book-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ===================================
   LOGIN POPUP
=================================== */
.login-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-popup-overlay.show {
    display: flex;
    opacity: 1;
}

.login-popup {
    background: white;
    padding: 35px;
    border-radius: 16px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
    animation: popupSlide 0.3s ease-out;
}

@keyframes popupSlide {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.popup-close:hover {
    background: #f3f4f6;
    color: #333;
}

.popup-icon {
    margin-bottom: 18px;
    color: #2a5298;
}

.login-popup h2 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.login-popup p {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.popup-buttons {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.btn-login,
.btn-signup {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: inline-block;
}

.btn-login {
    background: #2a5298;
    color: white;
}

.btn-login:hover {
    background: #1e3c72;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.3);
}

.btn-signup {
    background: #f3f4f6;
    color: #333;
}

.btn-signup:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

/* ===================================
   ALERT POPUP
=================================== */
.alert-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    z-index: 10000;
    min-width: 300px;
    max-width: 450px;
    animation: slideIn 0.3s ease-out;
    font-size: 0.9rem;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.alert-popup.success {
    background: #22c55e;
    color: white;
}

.alert-popup.error {
    background: #ef4444;
    color: white;
}

.alert-popup.info {
    background: #3b82f6;
    color: white;
}

.alert-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0.8;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-close:hover {
    opacity: 1;
}

/* ===================================
   RESPONSIVE DESIGN
=================================== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .locations-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .location-image {
        height: 120px;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .room-content h3 {
        font-size: 1.15rem;
    }

    .current-price {
        font-size: 1.3rem;
    }

    .login-popup {
        padding: 25px;
        max-width: 340px;
    }

    .login-popup h2 {
        font-size: 1.4rem;
    }

    .alert-popup {
        min-width: 250px;
        max-width: 90%;
        right: 10px;
        top: 10px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 280px;
    }

    .hero-content h1 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    .room-features {
        grid-template-columns: 1fr;
    }

    .feature-item {
        font-size: 0.75rem;
    }

    .popup-buttons {
        flex-direction: column;
    }
}