@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&display=swap');

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(52, 152, 219, 0.2);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: rgba(52, 152, 219, 0.2) transparent;
}

body {
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Navbar */
.navbar {
    background-color: #fff;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 5%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    position: relative;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo::after {
    content: "🔐";
    position: absolute;
    top: -5px;
    right: -15px;
    font-size: 0.6rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.logo:hover::after {
    opacity: 0.7;
}

/* Show the indicator on mobile devices */
@media (max-width: 768px) {
    .logo::after {
        opacity: 0.3;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: #3498db;
    font-weight: 600;
}

#auth-buttons {
    display: flex;
    gap: 1.2rem;
    margin-left: 2.5rem;
}

#auth-buttons .btn {
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#auth-buttons #loginBtn {
    background-color: transparent;
    border: 2px solid #3498db;
    color: #3498db;
}

#auth-buttons #loginBtn:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

#auth-buttons #registerBtn {
    background-color: #3498db;
    color: white;
    border: none;
}

#auth-buttons #registerBtn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

#auth-buttons #logoutBtn {
    background-color: #e74c3c;
    color: white;
    border: none;
}

#auth-buttons #logoutBtn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Buttons */
.btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 5px;
    background-color: #3498db;
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: transparent;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 1s ease-out;
}

.hero-slider .slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 0;
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.slide:not(.active) .slide-content > * {
    opacity: 0;
    transform: translateY(20px);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: #3498db;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.slide.active .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.slide-content h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.4s, transform 0.8s ease-out 0.4s;
}

.slide.active .slide-content h1 {
    opacity: 1;
    transform: translateY(0);
}

.hero-description {
    font-size: 1.4rem;
    font-weight: 300;
    max-width: 800px;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.6s, transform 0.8s ease-out 0.6s;
}

.slide.active .hero-description {
    opacity: 1;
    transform: translateY(0);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.8s, transform 0.8s ease-out 0.8s;
}

.slide.active .hero-cta {
    opacity: 1;
    transform: translateY(0);
}

.hero-cta .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: #1a237e;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: #1a237e;
}

.slider-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
}

.slider-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-nav button:hover {
    background: rgba(255, 255, 255, 0.4);
}

@media screen and (max-width: 768px) {
    .slide-content h1 {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.2rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .slider-nav {
        padding: 0 1rem;
    }

    .slider-nav button {
        font-size: 1.5rem;
        padding: 0.5rem;
        width: 40px;
        height: 40px;
    }
}

@media screen and (max-width: 480px) {
    .slide-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .hero-description {
        font-size: 1rem;
    }
}

/* Hostels Section */
.hostels-section {
    width: 100%;
    padding: 5rem 1rem;
    margin: 0 auto;
    background-color: #f8fafc;
}

.hostels-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 600;
}

.hostels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.hostel-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    max-width: 100%;
}

.hostel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hostel-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hostel-card:hover img {
    transform: scale(1.05);
}

.hostel-info {
    padding: 2rem;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 1) 100%
    );
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hostel-info h3 {
    margin: 0 0 1rem 0;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.hostel-info p {
    margin: 0 0 1.5rem 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    flex-shrink: 0;
}

.hostel-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.95rem;
    background: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.feature-item i {
    color: #3498db;
    font-size: 1.1rem;
}

.hostel-card .btn {
    margin-top: auto;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.hostel-card .btn:hover {
    background: linear-gradient(135deg, #2980b9, #2471a3);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hostel-card .btn:active {
    transform: translateY(0);
}

.hostel-card .btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.hostel-card .btn:hover i {
    transform: translateX(4px);
}

@media screen and (max-width: 768px) {
    .hostels-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 2rem;
    }

    .hostel-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .hostel-info {
        padding: 1.5rem;
    }

    .hostel-info h3 {
        font-size: 1.3rem;
    }

    .hostel-features {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Rooms Section */
.rooms-section {
    width: 100%;
    padding: 5rem 1rem;
    margin: 0 auto;
    transition: opacity 0.3s ease;
}

.rooms-section.hidden {
    display: none;
}

.rooms-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.filters-container {
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-bar {
    grid-column: 1 / -1;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.search-bar input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.filters select {
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filters select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem auto;
    max-width: 1400px;
    padding: 0 1rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1e293b;
}

.pagination button:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #3498db;
    color: #3498db;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination-info {
    color: #64748b;
    font-size: 0.9rem;
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.items-per-page select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.loading-spinner {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.loading-spinner.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media screen and (max-width: 768px) {
    .filters-container {
        padding: 1rem;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    .pagination-container {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .pagination {
        order: 2;
    }

    .items-per-page {
        order: 1;
        width: 100%;
        justify-content: center;
    }

    .pagination-info {
        order: 3;
    }
}

@media screen and (max-width: 480px) {
    .pagination button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .items-per-page {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.room-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
}

.room-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.room-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.room-info {
    padding: 0.8rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

h2.room-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.1rem;
    line-height: 1.2;
    text-align: left;
    width: 100%;
    align-self: flex-start;
}

.room-type {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.2rem;
    text-transform: capitalize;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
    width: 100%;
    align-self: flex-start;
}

.room-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-align: left;
    width: 100%;
    align-self: flex-start;
}

.room-card .btn {
    width: 100%;
    padding: 0.5rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.room-card .btn:hover {
    background: linear-gradient(135deg, #2980b9, #2471a3);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.2);
}

@media screen and (max-width: 768px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 0.5rem;
    }

    .room-card {
        margin: 0;
    }

    .room-card img {
        height: 120px;
    }

    .room-info {
        padding: 0.8rem;
    }

    .room-number {
        font-size: 1rem;
    }

    .room-type {
        font-size: 0.85rem;
}

.room-price {
        font-size: 1rem;
    margin-bottom: 0.5rem;
}

    .room-card .btn {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

/* For larger phones and tablets in landscape */
@media screen and (min-width: 600px) and (max-width: 768px) {
    .rooms-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
        padding: 0.5rem;
    }

    .room-card img {
        height: 100px;
    }

    .room-info {
        padding: 0.6rem;
    }

    .room-number {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }

    .hostel-name {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }

    .room-type {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
}

.room-price {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .room-card .btn {
        padding: 0.4rem;
        font-size: 0.75rem;
    }
}

@media screen and (max-width: 480px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        padding: 0.4rem;
        margin: 0 auto;
    }

    .room-card {
        margin: 0;
    }
}

@media screen and (max-width: 380px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.3rem;
    }
}

/* Explore Section */
.explore-section {
    padding: 5rem 5%;
    background-color: #f9f9f9;
}

.hostel-details {
    max-width: 1200px;
    margin: 0 auto;
}

.hostel-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 150px;
}

.tab-btn:hover {
    background: #e0e0e0;
}

.tab-btn.active {
    background: #3498db;
    color: white;
}

.hostel-tab-content {
    display: none;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.hostel-tab-content.active {
    display: block;
}

.hostel-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.hostel-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.hostel-gallery img:hover {
    transform: scale(1.05);
}

.hostel-info {
    margin-bottom: 2rem;
}

.hostel-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.hostel-info ul {
    list-style: none;
    margin: 1rem 0;
}

.hostel-info li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.hostel-info li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 5px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px 0;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-modal {
    max-width: 900px !important;
    padding: 2rem !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    border: none !important;
    position: relative !important;
    margin: auto !important;
    width: 100% !important;
}

@media screen and (max-width: 768px) {
    .modal {
        padding: 10px;
        align-items: flex-start;
    }

    .book-modal {
        padding: 1.5rem !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .book-container {
        flex-direction: column;
        min-height: auto;
    }

    .book-page {
        border-radius: 15px;
        margin-bottom: 1rem;
        padding: 1.5rem;
    }

    .book-spine {
        display: none;
    }

    .book-page-left,
    .book-page-right {
        border-radius: 15px;
    }

    .modal-close {
        right: 1rem;
        top: 1rem;
        position: fixed;
    }

    .book-page .form-group {
        margin-bottom: 2rem;
    }

    .book-modal h2 {
        margin-bottom: 2rem;
        font-size: 1.75rem;
    }

    .book-subtitle {
        margin-bottom: 2rem;
    }

    .book-modal {
        padding: 1.5rem !important;
        margin: 10px !important;
        width: calc(100% - 20px) !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }

    .modal-close {
        position: sticky;
        top: 0;
        right: 0;
        margin-bottom: 1rem;
    }
}

.modal-content {
    background: #ffffff;
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.modal-title {
    color: #2c3e50;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    font-size: 24px;
    line-height: 30px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
}

.modal-close:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.1);
}

.modal-close:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.modal-form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.modal-form-group input,
.modal-form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #2d3748;
}

.modal-form-group input::placeholder {
    color: #a0aec0;
}

.modal-form-group input:focus,
.modal-form-group select:focus {
    outline: none;
    border-color: #3498db;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #718096;
    transition: color 0.3s ease;
    padding: 0.5rem;
    z-index: 2;
}

.password-toggle:hover {
    color: #4a5568;
}

.modal-form-group input[type="password"] {
    padding-right: 3rem;
}

.modal-footer {
    margin-top: 1.5rem;
}

.modal-btn {
    width: 100%;
    padding: 0.875rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.modal-btn-primary {
    background: #3498db;
    color: white;
}

.modal-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.modal-btn-primary:active {
    transform: translateY(0);
}

.modal-btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.modal-btn-secondary:hover {
    background: #cbd5e0;
}

.modal-btn .btn-loader {
    display: none;
}

.auth-links {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.9rem;
}

.auth-links a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin: 0.5rem 0;
}

.auth-links a:hover {
    color: #2980b9;
}

.password-strength-meter {
    height: 4px;
    background: #edf2f7;
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.strength-meter-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }

    .modal-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .modal-form-group input,
    .modal-form-group select {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .modal-btn {
        padding: 0.75rem;
    }
}

/* Notification Message Styles */
.notification-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    min-width: 300px;
    max-width: 90%;
    text-align: center;
}

.notification-message.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.notification-message.success {
    background: rgba(220, 252, 231, 0.95);
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.notification-message.error {
    background: rgba(254, 226, 226, 0.95);
    color: #dc2626;
    border: 1px solid #fecaca;
}

.notification-message i {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        width: 95%;
        padding: 15px;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .notification-message {
        min-width: auto;
        width: 90%;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .menu-btn {
        display: block;
        background: none;
        border: none;
        color: #1e293b;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        margin-left: auto;
    }

    .nav-links {
        display: none;
    position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .nav-links a {
        width: 100%;
        padding: 0.8rem 0;
        text-align: center;
    }

    .nav-links a::after {
        display: none;
    }

    #auth-buttons {
        margin: 1rem 0 0 0;
        width: 100%;
        flex-direction: column;
        gap: 0.8rem;
    }

    #auth-buttons .btn {
        width: 100%;
        padding: 0.8rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hostels-grid,
    .rooms-grid {
        padding: 1rem;
    }

    .filters {
        flex-direction: column;
        align-items: center;
    }

    .filters select {
        width: 100%;
        max-width: 300px;
    }

    .hostel-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 100%;
        max-width: 300px;
    }

    .hostel-gallery {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.7rem;
    }

    .booking-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .booking-actions {
        flex-direction: column;
    }

    .booking-actions .btn {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hostel-card,
    .room-card {
        margin: 0 1rem;
    }

    .hostel-info,
    .room-info {
        padding: 1rem;
    }

    .map-container {
        height: 200px;
    }
}

/* Add a mobile menu button */
.menu-btn {
    display: none;
    background: none;
    border: none;
    color: #2c3e50;
    font-size: 1.5rem;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.5rem 0;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.form-group input[type="date"] {
    color: #666;
}

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
}

.modal-content h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
}

.modal-content form {
    display: grid;
    gap: 1.5rem;
}

.modal-content .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
        margin-top: 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-content .btn:hover {
    background-color: #2980b9;
}

@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.7rem;
    }
}

/* Booking Details Styles */
.booking-details {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.booking-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.booking-header {
    background: #3498db;
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.booking-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.booking-status.pending {
    background: #f1c40f;
    color: #2c3e50;
}

.booking-status.approved {
    background: #2ecc71;
    color: white;
}

.booking-status.rejected {
    background: #e74c3c;
    color: white;
}

.booking-content {
    padding: 2rem;
}

.booking-section {
    margin-bottom: 2rem;
}

.booking-section:last-child {
    margin-bottom: 0;
}

.booking-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.booking-section p {
    margin: 0.5rem 0;
    color: #666;
}

.booking-section strong {
    color: #2c3e50;
    margin-right: 0.5rem;
}

.booking-actions {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

@media screen and (max-width: 768px) {
    .booking-header {
    flex-direction: column;
        text-align: center;
    gap: 1rem;
}

    .booking-actions {
        flex-direction: column;
    }

    .booking-actions .btn {
        width: 100%;
    }
}

.room-map {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.room-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact Section */
.contact-section {
    width: 100%;
    padding: 3rem 1rem;
    background-color: #f8fafc;
}

.contact-section h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-card {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    min-width: 0;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 12px -3px rgba(0, 0, 0, 0.1),
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: #ebf5ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
        justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.1rem;
    color: #3498db;
}

.contact-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    color: #1e293b;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.contact-info p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
}

@media screen and (max-width: 768px) {
    .contact-section {
        padding: 2rem 0.5rem;
    }

    .contact-grid {
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .contact-card {
        padding: 0.8rem 1rem;
    }

    .contact-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .contact-icon i {
    font-size: 1rem;
    }
}

@media screen and (max-width: 380px) {
    .contact-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info h3 {
        font-size: 0.85rem;
    }

    .contact-info p {
        font-size: 0.85rem;
    }
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.footer-section h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.quick-links {
    list-style: none;
}

.quick-links li {
    margin-bottom: 1rem;
}

.quick-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    color: #a0aec0;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media screen and (max-width: 768px) {
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-info h3 {
        font-size: 1.1rem;
    }
    
    .contact-info p {
        font-size: 0.95rem;
    }
}

/* Base responsive adjustments */
@media screen and (max-width: 480px) {
    .navbar {
        padding: 0.8rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        padding: 0 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .hero-description {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .hero-cta .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .hostels-section,
    .rooms-section,
    .contact-section {
        padding: 2rem 0.5rem;
    }

    .hostels-grid,
    .rooms-grid,
    .contact-grid {
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .hostel-card,
    .room-card,
    .contact-card {
        margin: 0;
        width: 100%;
        border-radius: 12px;
    }

    .hostel-card img,
    .room-card img {
        height: 200px;
    }

    .hostel-info,
    .room-info {
        padding: 1rem;
    }

    .hostel-info h3 {
        font-size: 1.2rem;
    }

    .feature-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .filters select {
        width: 100%;
        min-width: unset;
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .contact-card {
        padding: 1rem;
        gap: 1rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

    .contact-info h3 {
        font-size: 1.1rem;
    }

    .contact-info p {
        font-size: 0.9rem;
    }
}

/* Ultra-narrow screen optimizations (Galaxy Z Fold outer display) */
@media screen and (max-width: 320px) {
    .navbar {
        padding: 0.6rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 0;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-cta .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .hostels-section h2,
    .rooms-section h2,
    .contact-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .hostel-card,
    .room-card,
    .contact-card {
        border-radius: 8px;
    }

    .hostel-card img,
    .room-card img {
        height: 160px;
    }

    .hostel-info,
    .room-info {
        padding: 0.8rem;
    }

    .hostel-features {
        gap: 0.5rem;
        padding-top: 1rem;
        margin-bottom: 1rem;
    }

    .feature-item {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        border-radius: 15px;
    }

    .feature-item i {
        font-size: 0.9rem;
    }

    .room-number {
        font-size: 1.1rem;
    }

    .room-type,
    .hostel-name {
        font-size: 0.9rem;
    }

    .room-price {
        font-size: 1rem;
    }

    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .contact-icon {
        width: 32px;
        height: 32px;
    }

    .contact-icon i {
        font-size: 1rem;
    }

    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-content {
        gap: 2rem;
    }

    .footer-section h2 {
        font-size: 1.2rem;
    }

    .quick-links a,
    .copyright {
        font-size: 0.9rem;
    }

    .social-link {
        width: 32px;
        height: 32px;
    }
}

/* Ultra-narrow screen optimizations */
@media screen and (max-width: 380px) {
    .hostels-section,
    .rooms-section,
    .contact-section {
        padding: 2rem 0.5rem;
        width: 100vw;
        overflow-x: hidden;
    }

    .hostels-grid,
    .rooms-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        padding: 0;
    }

    .hostel-card,
    .room-card,
    .contact-card {
        width: 100%;
        margin: 0;
        border-radius: 8px;
    }

    .hostel-info,
    .room-info {
        padding: 0.8rem;
    }

    .hostel-features {
        padding: 0.8rem 0;
        margin: 0.8rem 0;
        justify-content: center;
    }

    .feature-item {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        flex: 0 1 auto;
        white-space: nowrap;
    }

    .filters {
        padding: 0;
        width: 100%;
    }

    .filters select {
        width: 100%;
        max-width: 100%;
    }

    /* Hero section adjustments */
    .hero {
        width: 100vw;
    }

    .slide-content {
        padding: 1rem;
        width: 100%;
    }

    .hero-cta {
        width: 100%;
        flex-direction: column;
        gap: 0.8rem;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 100%;
    }

    /* Footer adjustments */
    .footer {
        width: 100vw;
        padding: 2rem 0.5rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }

    .social-links {
        justify-content: center;
    }

    /* Navigation adjustments */
    .navbar {
        width: 100vw;
        padding: 0.6rem;
    }

    .nav-links {
        width: 100vw;
    }

    #auth-buttons {
        width: 100%;
        margin: 0;
    }

    #auth-buttons .btn {
        width: 100%;
        max-width: 100%;
    }
}

/* Fix any horizontal scrolling */
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Auth Forms */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
        justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem;
}

.auth-form {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.auth-form .logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form .logo h2 {
    color: #1e293b;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.auth-form .logo p {
    color: #64748b;
    font-size: 1rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #34495e;
    font-weight: 500;
    font-size: 0.95rem;
}

.auth-form input,
.auth-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.auth-form input:focus,
.auth-form select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
    background: white;
}

.auth-form input::placeholder {
    color: #94a3b8;
}

.auth-form button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
        margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.auth-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.auth-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.auth-form button:hover::before {
    transform: translateX(100%);
}

.auth-form button:active {
    transform: translateY(0);
}

.auth-form .auth-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
}

.auth-form .auth-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-form .auth-links a:hover {
    color: #2980b9;
}

.auth-form .error-message {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.auth-form .success-message {
    background: #dcfce7;
    color: #16a34a;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles for auth forms */
@media (max-width: 480px) {
    .auth-container {
        padding: 1rem;
    }

    .auth-form {
        padding: 2rem;
    }

    .auth-form .logo h2 {
        font-size: 1.5rem;
    }

    .auth-form input,
    .auth-form select {
        padding: 0.7rem 0.9rem;
    }

    .auth-form button {
        padding: 0.9rem;
    }
}

/* Footer Styles */
.hostel-locations {
    margin-bottom: 1.5rem;
}

.location-item {
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.location-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.location-item h3 {
    color: #3498db;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.location-item p {
    color: #a0aec0;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0.2rem 0;
}

.contact-info {
    color: #a0aec0;
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

@media screen and (max-width: 768px) {
    .location-item {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        text-align: center;
    }

    .location-item h3 {
        font-size: 1rem;
    }

    .location-item p,
    .contact-info {
        font-size: 0.85rem;
    }
}

/* Enhanced Registration Form Styles */
.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #333;
}

.password-strength-meter {
    height: 4px;
    background-color: #eee;
    margin-top: 5px;
    border-radius: 2px;
    overflow: hidden;
}

.strength-meter-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-weak {
    width: 33.33%;
    background-color: #ff4444;
}

.strength-medium {
    width: 66.66%;
    background-color: #ffbb33;
}

.strength-strong {
    width: 100%;
    background-color: #00C851;
}

.btn-loader {
    margin-left: 8px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #4a90e2;
    outline: none;
}

.form-group input.error {
    border-color: #ff4444;
}

.error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error-message.visible {
    display: block;
}

/* Loading state styles */
.btn.loading .btn-text {
    opacity: 0.7;
}

.btn.loading .btn-loader {
    display: inline-block !important;
}

/* Email verification styles */
.verification-message {
    text-align: center;
    padding: 15px;
    margin-top: 10px;
    border-radius: 4px;
    display: none;
}

.verification-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.verification-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* Notification Messages */
.notification-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 300px;
    max-width: 90%;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.notification-message.error {
    background: rgba(231, 76, 60, 0.95);
    color: #ffffff;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.notification-message.success {
    background: rgba(46, 204, 113, 0.95);
    color: #ffffff;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.notification-message.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.notification-message i {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .notification-message {
        width: 90%;
        top: 10px;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Resend Verification Modal Styling */
#resendVerificationModal .modal-content {
    max-width: 400px;
    padding: 2rem;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#resendVerificationModal .modal-title {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

#resendVerificationModal form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

#resendVerificationModal .form-group {
    margin-bottom: 0;
}

#resendVerificationModal label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

#resendVerificationModal input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#resendVerificationModal input:focus {
    border-color: #4A90E2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

#resendVerificationModal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

#resendVerificationModal .btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#resendVerificationModal .btn-secondary {
    background-color: #f0f0f0;
    color: #666;
}

#resendVerificationModal .btn-secondary:hover {
    background-color: #e4e4e4;
}

#resendVerificationModal .btn-primary {
    background-color: #4A90E2;
    color: white;
}

#resendVerificationModal .btn-primary:hover {
    background-color: #357ABD;
}

#resendVerificationModal .btn-primary:disabled {
    background-color: #a8c9f2;
    cursor: not-allowed;
}

#resendVerificationModal #emailUpdateSection {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

#resendVerificationModal .current-email {
    color: #666;
    margin-bottom: 1rem;
}

#resendVerificationModal .notification-message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 6px;
    font-weight: 500;
}

#resendVerificationModal .notification-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#resendVerificationModal .notification-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Book Modal Styles */
.modal {
    background-color: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.book-modal {
    max-width: 900px !important;
    padding: 2rem !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    border: none !important;
    position: relative !important;
    margin: auto !important;
    width: 100% !important;
}

.book-container {
    display: flex;
    min-height: 600px;
    background: transparent;
    position: relative;
    perspective: 1500px;
    gap: 0;
}

.book-page {
    flex: 1;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.5s;
    display: flex;
    flex-direction: column;
}

.book-page-left {
    border-radius: 20px 0 0 20px;
    transform-origin: right center;
    z-index: 2;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0.35) 95%,
        rgba(255, 255, 255, 0.25) 100%);
}

.book-spine {
    width: 15px;  /* Reduced from 40px to 20px */
    background: linear-gradient(to right, 
        rgba(69, 130, 171, 0.85),
        rgba(41, 128, 185, 0.85));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform-style: preserve-3d;
    box-shadow: inset -2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.book-page-right {
    border-radius: 0 20px 20px 0;
    background: linear-gradient(to left, 
        rgba(255, 255, 255, 0.35) 95%,
        rgba(255, 255, 255, 0.25) 100%);
}

.book-modal h2 {
    color: #2c3e50;
        font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.book-subtitle {
    font-size: 1.2rem;
    color: rgba(41, 128, 185, 0.85);  /* Matching the spine's blue color */
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.book-page .form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.book-page .form-group:last-of-type {
    margin-bottom: 2.5rem;
}

.book-page label {
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

.book-page input,
.book-page select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 10px;
    color: #2c3e50;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-size: 1rem;
    height: 45px;
}

.book-page input:focus,
.book-page select:focus {
    outline: none;
    border-color: rgba(52, 152, 219, 0.8);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

.book-page .btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    margin-top: auto;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.book-page .btn:hover {
    background: linear-gradient(135deg, #2980b9, #2472a4);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(52, 152, 219, 0.2);
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    background: rgba(52, 152, 219, 0.75);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
        justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-close:hover {
    background: rgba(41, 128, 185, 0.9);
    transform: rotate(90deg);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
}

@media screen and (max-width: 768px) {
    .book-container {
        flex-direction: column;
        min-height: auto;
    }

    .book-page {
        border-radius: 15px;
        margin-bottom: 1rem;
    }

    .book-spine {
        display: none;
    }

    .book-page-left,
    .book-page-right {
        border-radius: 15px;
    }

    .book-modal {
        padding: 1.5rem !important;
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .modal-close {
        right: 1rem;
        top: 1rem;
    }
}

.booking-form .form-group,
.book-page-right .form-group {
    margin-bottom: 2rem;
    position: relative;
}

.booking-form .form-group:last-child,
.book-page-right .form-group:last-child {
    margin-bottom: 2.5rem;
}

.booking-form label,
.book-page-right label {
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: block;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

.booking-form input,
.booking-form select,
.book-page-right input,
.book-page-right select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 10px;
    color: #2c3e50;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-size: 1rem;
    height: 45px;
}

.book-modal h2 {
    color: #2c3e50;
        font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.book-subtitle {
    font-size: 1.2rem;
    color: rgba(41, 128, 185, 0.85);  /* Matching the spine's blue color */
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.book-page-right h2 {
    margin-top: 4.0rem;  /* Increased margin to push Guardian Information down */
}

.booking-form .form-group,
.book-page-right .form-group {
    margin-bottom: 2rem;
    position: relative;
}

.booking-form .form-group:last-child,
.book-page-right .form-group:last-child {
    margin-bottom: 2.5rem;
}

.booking-form label,
.book-page-right label {
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: block;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

.booking-form input,
.booking-form select,
.book-page-right input,
.book-page-right select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 10px;
    color: #2c3e50;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-size: 1rem;
    height: 45px;
}

@media screen and (max-width: 768px) {
    .book-page-right h2 {
        margin-top: 2rem;  /* Adjust for mobile */
    }
}

.book-page-right .book-subtitle {
    margin-top: 5.0rem;
    color: rgba(41, 128, 185, 0.85);  /* Ensuring the right page subtitle also matches */
}

@media screen and (max-width: 768px) {
    .book-page-right .book-subtitle {
        margin-top: 2rem;  /* Adjust for mobile */
    }
}

.book-page-right .form-group {
    margin-bottom: 3.47rem;  /* Increased from 3rem to 4rem for more spacing */
}

.book-page-right .form-group:last-child {
    margin-bottom: 2.5rem;  /* Keep the same margin for the last form group */
}

.book-page-right .book-subtitle {
    margin-top: 5.0rem;
}

@media screen and (max-width: 768px) {
    .book-page-right .form-group {
        margin-bottom: 2.5rem;  /* Adjust spacing for mobile */
    }
    
    .book-page-right .book-subtitle {
        margin-top: 2rem;
    }
}

.booking-error-container {
    background-color: #fff8f8;
    border: 1px solid #dc3545;
    border-radius: 4px;
    margin: 0 0 1.5rem;
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    display: none;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}

.error-message:last-child {
    margin-bottom: 0;
}

.error-message::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #dc3545;
}

/* Update form group styles for error states */
.form-group input.error,
.form-group select.error {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.form-group input.error:focus,
.form-group select.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Add shake animation for invalid inputs */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error:not(:focus) {
    animation: shake 0.2s ease-in-out;
}

.book-modal .booking-error-container {
    background-color: #fff8f8;
    border: 1px solid #dc3545;
    border-radius: 4px;
    margin: 0 0 1.5rem;
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1050;
}

.book-modal .booking-error-container.visible {
    display: block !important;
}

.book-modal .booking-error-container .error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
    display: block;
}

.book-modal .booking-error-container .error-message:last-child {
    margin-bottom: 0;
}

.book-modal .booking-error-container .error-message::before {
    content: "•";
    position: absolute;
    left: 8px;
    top: 0;
    color: #dc3545;
}

/* Form group error states with higher specificity */
.book-modal .book-page .form-group input.error,
.book-modal .book-page .form-group select.error {
    border: 2px solid #dc3545 !important;
    background-color: #fff8f8 !important;
}

.book-modal .book-page .form-group input.error:focus,
.book-modal .book-page .form-group select.error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Ensure error container is positioned correctly */
.book-modal .book-page form {
    position: relative;
}

.validation-errors-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 24px;
    max-width: 400px;
    width: 90%;
    border-left: 4px solid #dc3545;
    animation: slideDown 0.3s ease-out;
}

.validation-errors-container h4 {
    color: #dc3545;
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.validation-errors-container h4 i {
    font-size: 1.1rem;
}

.validation-error-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.validation-error-list li {
    color: #555;
    font-size: 0.9rem;
    padding: 4px 0 4px 20px;
    position: relative;
    line-height: 1.4;
}

.validation-error-list li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #dc3545;
}

.validation-errors-container .close-errors {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.validation-errors-container .close-errors:hover {
    color: #dc3545;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Advanced Search and Filter Styles */
.search-filter-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin: 20px auto 40px;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.search-box {
    flex: 1 1 300px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border: 2px solid #e1e5eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.search-input:focus {
    border-color: #3498db;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.search-input::placeholder {
    color: #94a3b8;
}

.filter-group {
    flex: 1 1 200px;
    display: flex;
        flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    appearance: none;
    background-color: #f8fafc;
    border: 2px solid #e1e5eb;
    border-radius: 8px;
    padding: 12px 36px 12px 16px;
    font-size: 0.95rem;
    color: #1e293b;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: #3498db;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.filter-select:hover {
    border-color: #cbd5e1;
    background-color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-filter-container {
        padding: 16px;
        gap: 16px;
    }

    .search-box, .filter-group {
        flex: 1 1 100%;
    }
}

/* Booking Details Status Colors */
.status-badge.status-pending {
    background-color: #ffc107; /* Yellow */
    color: #333;
}

.status-badge.status-approved {
    background-color: #28a745; /* Green */
    color: white;
}

.status-badge.status-rejected {
    background-color: #dc3545; /* Red */
    color: white;
}

.status-badge.status-cancelled {
    background-color: #6c757d; /* Gray */
    color: white;
}

/* Rejection Message Animation */
.rejected-message {
    color: #dc3545; /* Red text */
    font-weight: bold;
    /* Run wiggle 3 times (0.8s * 3 = 2.4s) then stop */
    animation: wiggle-animation 0.8s ease-in-out 3;
}

/* Replace blink animation with wiggle */
@keyframes wiggle-animation {
    0% { transform: translateX(0); }
    10% { transform: translateX(-4px) rotate(-2deg); }
    20% { transform: translateX(4px) rotate(2deg); }
    30% { transform: translateX(-4px) rotate(-2deg); }
    40% { transform: translateX(4px) rotate(2deg); }
    50% { transform: translateX(-2px) rotate(-1deg); }
    60% { transform: translateX(2px) rotate(1deg); }
    70% { transform: translateX(-1px) rotate(0); }
    80% { transform: translateX(1px) rotate(0); }
    90% { transform: translateX(0); }
    100% { transform: translateX(0); }
}

.room-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    z-index: 1;
}

.status-available {
    background-color: #28a745;
}

.status-partial {
    background-color: #ffc107;
    color: #000;
}

.status-unavailable {
    background-color: #dc3545;
}

.room-card {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.room-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-info {
    padding: 0.8rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.room-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #333;
}

.room-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.1rem;
    line-height: 1.2;
    text-align: left;
    width: 100%;
}

.room-type {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.2rem;
    text-transform: capitalize;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
    width: 100%;
    align-self: flex-start;
}

.room-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-align: left;
    width: 100%;
}

.room-card .btn {
    width: 100%;
    padding: 0.5rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.room-card .btn:hover {
    background: linear-gradient(135deg, #2980b9, #2471a3);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.2);
}

.book-btn {
    width: 100%;
    margin-top: 10px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.book-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-primary {
    background-color: #1a237e;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #151b60;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #5a6268;
}
  
/* Responsive styles for Room Card Image Modal */
#roomCardImageModal .modal-content {
  max-width: 95vw;
  max-height: 95vh;
  width: 700px;
  min-width: 0;
  background: #fff;
  border-radius: 12px;
  padding: 0.5rem 0.5rem 1.5rem 0.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

#roomCardImageModal .modal-slider-img {
  max-width: 90vw;
  max-height: 70vh;
  width: 100%;
  height: auto;
  margin: 0.5rem auto 0.5rem auto;
  border-radius: 8px;
  object-fit: contain;
  display: block;
}

#roomCardImageModal .slider-btn {
  font-size: 2.2rem;
  padding: 0.3em 0.7em;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  margin: 0 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
#roomCardImageModal .slider-btn.prev-btn { left: 0.5rem; }
#roomCardImageModal .slider-btn.next-btn { right: 0.5rem; }

#roomCardImageModal .close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  font-size: 2rem;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  z-index: 10;
}

@media (max-width: 600px) {
  #roomCardImageModal .modal-content {
    width: 99vw;
    max-width: 99vw;
    max-height: 99vh;
    padding: 0.2rem 0.2rem 1rem 0.2rem;
  }
  #roomCardImageModal .modal-slider-img {
    max-width: 98vw;
    max-height: 60vh;
  }
  #roomCardImageModal .slider-btn {
    font-size: 2.5rem;
    padding: 0.5em 1em;
  }
  #roomCardImageModal .slider-btn.prev-btn { left: 0.2rem; }
  #roomCardImageModal .slider-btn.next-btn { right: 0.2rem; }
  #roomCardImageModal .close {
    font-size: 2.5rem;
    top: 0.3rem;
    right: 0.3rem;
  }
}
/* End Room Card Image Modal Responsive Styles */

/* Tweak slider icon size for large mobile screens (e.g., iPhone 14 Pro Max) */
@media (max-width: 900px) and (min-width: 400px) {
  #roomCardImageModal .slider-btn {
    font-size: 1.7rem;
    padding: 0.3em 0.7em;
  }
  #roomCardImageModal .modal-slider-img {
    max-height: 70vh;
  }
}

/* Spinner for image loader in modals */
.image-loader-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}
@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}
.image-loader-container { position: relative; }
.image-loader-hidden { display: none !important; }
  