html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}


/* =========================================
   University Hotel - Public Website
========================================= */


/* =========================================
   Base
========================================= */

.public-body {
    margin: 0;
    margin-bottom: 0 !important;
    padding: 0;
    font-family: 'Cairo', sans-serif;
    background: #ffffff;
    color: #222;
}

    .public-body main {
        width: 100%;
        margin: 0;
        padding: 0;
    }


/* =========================================
   Public Navbar
========================================= */

.public-header {
    position: relative;
    z-index: 1000;
}

    .public-header .navbar {
        min-height: 78px;
        background: #ffffff !important;
    }

.hotel-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 25px;
    font-weight: 800;
    color: #09284b !important;
    text-decoration: none;
}

    .hotel-brand i {
        color: #bd8b2f;
        font-size: 30px;
    }

.public-header .nav-link {
    color: #333 !important;
    font-weight: 600;
    padding: 12px 15px !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

    .public-header .nav-link:hover {
        color: #bd8b2f !important;
        transform: translateY(-1px);
    }

.admin-login-btn {
    border-radius: 25px;
    padding: 9px 20px;
    font-weight: 700;
}


/* =========================================
   Hero
========================================= */

.hotel-hero {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: #0b2745;
    background-image: url('/images/hotel/hero.jpeg');
    background-size: cover;
    background-position: center center;
}


    /*
   خلفية ضبابية خفيفة.
   الهدف منها ملء المساحة بدون قص الصورة الأصلية.
*/

    .hotel-hero::before {
        content: "";
        position: absolute;
        inset: -25px;
        background-image: url('/images/hotel/hero.jpeg');
        background-size: cover;
        background-position: center center;
        filter: blur(18px);
        transform: scale(1.08);
        opacity: 0.55;
        z-index: 0;
    }


/*
   الصورة الأصلية تظهر كاملة
*/

.hotel-hero-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}


/* تظليل بسيط */

.hotel-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient( 90deg, rgba(5, 28, 52, 0.03) 0%, rgba(5, 28, 52, 0.01) 50%, rgba(5, 28, 52, 0.10) 100% );
    pointer-events: none;
}


/* الحاوية فوق الصورة */

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-right: 6%;
    padding-left: 6%;
}


/* البطاقة */

.hero-box {
    width: 450px;
    max-width: 36%;
    padding: 28px 32px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 22px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(6px);
    text-align: right;
}


/* الزخرفة */

.hero-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #c4912e;
}

    .hero-ornament span {
        width: 60px;
        height: 1px;
        background: #c4912e;
    }

    .hero-ornament i {
        font-size: 9px;
    }


/* عنوان الفندق */

.hero-box h1 {
    color: #09284b;
    font-size: clamp(30px, 2.5vw, 43px);
    font-weight: 800;
    margin-bottom: 10px;
}


/* العنوان الفرعي */

.hero-box h4 {
    color: #b47e1e;
    font-size: clamp(15px, 1.2vw, 19px);
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 12px;
}


/* الوصف */

.hero-box p {
    color: #4c4c4c;
    font-size: clamp(13px, 1vw, 16px);
    line-height: 1.9;
    margin-bottom: 18px;
}


/* الأزرار */

.hero-actions {
    display: flex;
    gap: 12px;
}

.btn-booking,
.btn-admin {
    flex: 1;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 700;
    border: 0;
    text-decoration: none;
    text-align: center;
}

.btn-booking {
    background: #c89429;
    color: #ffffff;
}

    .btn-booking:hover {
        background: #ae7c20;
        color: #ffffff;
    }

.btn-admin {
    background: #064b7e;
    color: #ffffff;
}

    .btn-admin:hover {
        background: #053b63;
        color: #ffffff;
    }


/* =========================================
   Gallery
========================================= */

.hotel-gallery {
    padding: 65px 0 80px;
    background: linear-gradient( 180deg, #f8fafc 0%, #ffffff 100% );
}


/* عنوان المعرض */

.gallery-header {
    text-align: center;
    margin-bottom: 35px;
}

.gallery-icon {
    color: #c4912e;
    font-size: 28px;
    margin-bottom: 8px;
}

.hotel-gallery h2 {
    font-size: 32px;
    color: #09284b;
    font-weight: 800;
    margin-bottom: 5px;
}

.hotel-gallery .gallery-subtitle {
    color: #7c8794;
    font-size: 14px;
}


/* كارت الصورة */

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .gallery-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.14);
    }

    .gallery-card img {
        display: block;
        width: 100%;
        height: 260px;
        object-fit: cover;
        transition: transform 0.45s ease;
    }

    .gallery-card:hover img {
        transform: scale(1.06);
    }


/* Overlay */

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px;
    background: linear-gradient( 180deg, rgba(0, 0, 0, 0) 55%, rgba(4, 29, 54, 0.65) 100% );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
}


/* =========================================
   Gallery Modal
========================================= */

.gallery-modal .modal-content {
    background: transparent;
    border: 0;
}

.gallery-modal .modal-body {
    padding: 0;
    text-align: center;
}

.gallery-modal img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.gallery-modal .btn-close {
    position: absolute;
    top: -35px;
    left: 0;
    z-index: 10;
    filter: invert(1);
}


/* =========================================
   Features
========================================= */

.hotel-features {
    position: relative;
    padding: 75px 0 85px;
    background: linear-gradient( 180deg, #ffffff 0%, #f6f8fb 100% );
}


/* عنوان القسم */

.features-header {
    max-width: 650px;
    margin: 0 auto 45px;
    text-align: center;
}

.features-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(196, 145, 46, 0.10);
    color: #c4912e;
    font-size: 21px;
}

.features-header h2 {
    margin-bottom: 10px;
    color: #09284b;
    font-size: 32px;
    font-weight: 800;
}

.features-header p {
    margin: 0;
    color: #7b8490;
    font-size: 15px;
    line-height: 1.9;
}


/* كارت الميزة */

.feature-card {
    height: 100%;
    padding: 34px 25px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #edf0f4;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(7, 39, 70, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

    .feature-card:hover {
        transform: translateY(-6px);
        border-color: rgba(196, 145, 46, 0.30);
        box-shadow: 0 16px 35px rgba(7, 39, 70, 0.12);
    }


/* أيقونة الميزة */

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient( 145deg, #0a3f6d, #0b578f );
    color: #ffffff;
    font-size: 29px;
    box-shadow: 0 10px 22px rgba(7, 59, 105, 0.18);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.06);
}


/* عنوان الميزة */

.feature-card h3 {
    margin-bottom: 12px;
    color: #09284b;
    font-size: 19px;
    font-weight: 800;
}


/* وصف الميزة */

.feature-card p {
    margin: 0;
    color: #727b85;
    font-size: 14px;
    line-height: 1.9;
}


/* =========================================
   Footer
========================================= */

.public-footer {
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    padding: 30px 0;
    color: #09284b;
}


/* =========================================
   Responsive - Tablet
========================================= */

@media (max-width: 991px) {

    .public-header .navbar-collapse {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .admin-login-btn {
        width: 100%;
        margin-top: 10px;
    }


    /* Hero */

    .hotel-hero {
        height: 430px;
    }

    .hero-content {
        padding: 22px;
    }

    .hero-box {
        width: 420px;
        max-width: 52%;
        padding: 24px;
    }

        .hero-box p {
            line-height: 1.7;
        }


    /* Gallery */

    .gallery-card img {
        height: 230px;
    }


    /* Features */

    .hotel-features {
        padding: 60px 0 70px;
    }

    .features-header {
        margin-bottom: 35px;
    }
}


/* =========================================
   Responsive - Mobile
========================================= */

@media (max-width: 767px) {

    /* Navbar */

    .hotel-brand {
        font-size: 20px;
    }

        .hotel-brand i {
            font-size: 24px;
        }


    /* Hero */

    .hotel-hero {
        height: auto;
        background: #f5f6f8;
    }

        .hotel-hero::before {
            display: none;
        }

    .hotel-hero-image {
        position: relative;
        width: 100%;
        height: auto;
        object-fit: initial;
    }

    .hotel-hero-shade {
        display: none;
    }

    .hero-content {
        position: relative;
        inset: auto;
        display: block;
        padding: 20px;
    }

    .hero-box {
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 100%;
        margin-top: -35px;
        padding: 25px 20px;
        border-radius: 20px;
        text-align: center;
    }

        .hero-box h1 {
            font-size: 34px;
        }

        .hero-box h4 {
            font-size: 17px;
        }

        .hero-box p {
            font-size: 15px;
            line-height: 1.8;
        }

    .hero-actions {
        flex-direction: column;
    }


    /* Gallery */

    .hotel-gallery {
        padding: 50px 0;
    }

        .hotel-gallery h2 {
            font-size: 27px;
        }

    .gallery-card img {
        height: 220px;
    }


    /* Features */

    .hotel-features {
        padding: 50px 0 55px;
    }

    .features-header h2 {
        font-size: 27px;
    }

    .features-header p {
        font-size: 14px;
    }

    .feature-card {
        padding: 28px 20px;
    }

    .feature-icon {
        width: 64px;
        height: 64px;
        font-size: 25px;
    }
}
/* =========================================
   Admin Login Modal
========================================= */

.admin-login-modal {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

    .admin-login-modal .modal-header {
        padding: 22px 25px 10px;
    }

    .admin-login-modal .modal-title {
        color: #09284b;
        font-size: 21px;
        font-weight: 800;
    }

        .admin-login-modal .modal-title i {
            color: #c4912e;
        }

    .admin-login-modal .modal-body {
        padding: 20px 25px 28px;
    }

    .admin-login-modal .form-label {
        color: #34495e;
        font-weight: 700;
    }

    .admin-login-modal .form-control {
        min-height: 46px;
        border-radius: 0 10px 10px 0;
    }

    .admin-login-modal .input-group-text {
        min-width: 45px;
        justify-content: center;
        background: #f7f8fa;
        color: #0a4778;
    }

.btn-admin-login {
    padding: 11px 20px;
    border: 0;
    border-radius: 25px;
    background: linear-gradient( 135deg, #073b69, #0a5b91 );
    color: #ffffff;
    font-weight: 700;
}

    .btn-admin-login:hover {
        color: #ffffff;
        background: linear-gradient( 135deg, #052e53, #084d79 );
    }