/* ================================
   HOSTELS INDIA • MODERN ELEGANT RESPONSIVE 2025
================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}
.text-primary{
    color:#7c3aed !important;
}
/* ===== ROOT VARIABLES ===== */
:root {
    --primary: #7c3aed;      /* Indigo */
    --secondary: #0ea5e9;    /* Sky */
    --accent: #10b981;       /* Emerald */
    --dark: #1e293b;
    --muted: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --shadow-sm: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-md: 0 12px 32px rgba(0,0,0,0.1);
    --shadow-lg: 0 24px 64px rgba(0,0,0,0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}


/* =====================
   HEADER
===================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--light);
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

/* =====================
   NAVBAR
===================== */
.navbar {
    padding: 14px 20px;
}

/* =====================
   BRAND
===================== */
.brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    letter-spacing: .5px;
}

/* =====================
   MENU (DESKTOP)
===================== */
.menu {
    margin-top: 10px;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 12px;
    transition: all .3s ease;
}

.menu-link i {
    font-size: 16px;
}

/* Hover & Active */
.menu-link:hover,
.menu-link.is-active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}

/* =====================
   MOBILE BOTTOM NAV
===================== */
@media (max-width: 992px) {

    .brand{
        font-size:3.5rem;
        font-weight:600;
    }
    .menu {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--light);
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -10px 25px rgba(0,0,0,.1);
        padding: 6px 0;
    }

    .menu-list {
        justify-content: space-around;
        gap: 0;
    }

    .menu-link {
        flex-direction: column;
        padding: 6px 0;
        font-size: 11px;
        color: var(--muted);
        background: none;
    }

    .menu-link i {
        font-size: 18px;
    }

    .menu-link span {
        margin-top: 3px;
    }

    .menu-link.is-active {
        background: none;
        color: var(--accent);
    }

}

@media (max-width: 768px) {

    .menu {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--light);
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -10px 25px rgba(0,0,0,.1);
        padding: 6px 0;
    }

    .menu-list {
        justify-content: space-around;
        gap: 0;
    }

    .menu-link {
        flex-direction: column;
        padding: 6px 0;
        font-size: 11px;
        color: var(--muted);
        background: none;
    }

    .menu-link i {
        font-size: 18px;
    }

    .menu-link span {
        margin-top: 3px;
    }

    .menu-link.is-active {
        background: none;
        color: var(--accent);
    }

}


/* ===== HERO SECTION ===== */
.hero-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}

.home-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--dark);
}

.search-form {
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.search-form .form-control {
    height: 56px;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 0 16px;
    transition: var(--transition);
}

.search-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79,70,229,0.15);
}

.search-form .btn-info {
    height: 56px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    padding: 0 32px;
}

/* =========================
   CATEGORY SECTION
========================= */
.bg-secondary {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0) !important;
}

/* Section Title */
.section-title span {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .5px;
}

/* =========================
   CATEGORY CARD
========================= */
.cat-item {
    border-radius: 16px;
    transition: all .35s ease;
    cursor: pointer;
    height: 100%;
    border: 1px solid #e5e7eb;
}

.cat-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(0,0,0,.12);
}

/* =========================
   ICON
========================= */
.cat-item-img {
    max-width: 60px;
    transition: transform .3s ease;
}

.cat-item:hover .cat-item-img {
    transform: scale(1.15);
}

/* =========================
   TEXT
========================= */
.cat-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0f172a;
}

.cat-item h6 {
    font-size: .85rem;
    color: #64748b;
}

/* =========================
   LINK RESET
========================= */
a {
    text-decoration: none !important;
}

/* =========================
   MOBILE OPTIMIZATION
========================= */
@media (max-width: 768px) {

    .cat-item {
        padding: 12px !important;
        border-radius: 14px;
    }

    .cat-item-img {
        max-width: 45px;
    }

    .cat-item h3 {
        font-size: 1rem;
    }

    .cat-item h6 {
        font-size: .8rem;
    }
}

/* ===== HOSTEL CARD ===== */
.pg-card {
    background: linear-gradient(145deg, #ffffff, #fefefe);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    position: relative;
    border: 1px solid #e5e7eb;
}

.pg-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

/* ===== IMAGE SECTION ===== */
.pg-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /*border-bottom-left-radius: 18px;*/
    /*border-bottom-right-radius: 18px;*/
    border-radius:10px;
    padding:10px;
}

.pg-image img {
    width: 100%;
    height: 100%;
    border-radius:20px;
    /*padding-bottom:30px;*/
    /*object-fit: cover;*/
    transition: transform 0.5s ease;
}

/*.pg-image:hover img {*/
/*    transform: scale(1.08);*/
/*}*/

/* Gradient overlay for text readability */
/*.pg-image::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    bottom: 0;*/
/*    left: 0;*/
/*    right: 0;*/
/*    height: 65%;*/
/*    background: linear-gradient(to top, rgba(0,0,0,0.35), rgba(0,0,0,0));*/
/*    pointer-events: none;*/
/*}*/

/* ===== TITLE ===== */
.pg-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0.8rem 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* ===== PRICE & BADGES ===== */
.pg-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: #b45309;
    position: relative;
}

.pg-price-amount {
    font-size: 1.4rem;
    color: #b45309;
}

.pg-onwards {
    font-size: 0.85rem;
    color: #92400e;
    margin-left: 4px;
}

.pg-price .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #4ade80;
    color: #065f46;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
}

/* ===== LOCATION ===== */
.pg-location {
    font-size: 0.9rem;
    color: #4b5563;
    margin-top: 0.3rem;
}

/* ===== LABELS ===== */
.pg-labels {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.pg-labels .badge {
    background: #fde68a;
    color: #78350f;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
}

/* ===== ROOM INFO ===== */
.pg-room-info ul {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0;
}

.pg-room-info li {
    font-size: 0.9rem;
    color: #374151;
    margin: 4px 0;
    border-bottom: 1px dashed #e5e7eb;
    padding-bottom: 2px;
}

.pg-room-info li strong {
    color: #2563eb;
}

/* ===== AMENITIES ===== */
.pg-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0.75rem;
}

.pg-amenities span {
    background-color: #ede9fe;
    color: #4c1d95;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.pg-amenities span:hover {
    background-color: #c4b5fd;
}

/* ===== BUTTONS ===== */
.button-box-web {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pg-contact,
.pg-phone {
    flex: 1;
    font-weight: 600;
    padding: 10px 0;
    border-radius: 14px;
    text-align: center;
    background: #7c3aed;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pg-contact:hover,
.pg-phone:hover {
    background: #6d28d9;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .pg-card {
        flex-direction: row;
    }
    .pg-image {
        flex: 1 1 25%;
        /*height: auto;*/
       
    }
    .pg-details {
        flex: 1 1 50%;
        padding: 2rem;
    }
}

@media (max-width: 767px) {
    .pg-card {
        flex-direction: column;
    }
    /*.pg-image {*/
    /*    height: 220px;*/
    /*}*/
    .pg-details {
        padding: 1rem;
    }
}


/* ===== MAJOR CITIES SECTION ===== */
.section-title span {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.product-offer {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.product-offer:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.product-offer img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-offer:hover img {
    transform: scale(1.08);
}

/* Gradient overlay for text readability */
.product-offer .offer-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

.product-offer .offer-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.product-offer .offer-text a.btn {
    background: #7c3aed;
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    padding: 6px 14px;
    font-size: 0.85rem;
    transition: background 0.3s ease;
}

.product-offer .offer-text a.btn:hover {
    background: #6d28d9;
}

/* RESPONSIVE GRID */
@media (min-width: 992px) {
    .row > .col-md-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
    .row > .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 991px) {
    .product-offer img {
        height: 180px;
    }
}


/* ===== FOOTER BASE ===== */
footer, .footer {
    background: linear-gradient(135deg, #0f172a, #1e293b); /* deep royal gradient */
    color: #cbd5e1; /* soft light text */
    font-family: 'Poppins', sans-serif;
    padding-top: 5rem;
    padding-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

/* Footer overlay for elegance */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(124,58,237,0.05), transparent 70%);
    pointer-events: none;
}

/* ===== HEADINGS ===== */
footer h5 {
    color: #f1f5f9;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1.2rem;
    position: relative;
}

footer h5::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: #7c3aed;
    margin-top: 8px;
    border-radius: 2px;
}

/* ===== TEXT & LINKS ===== */
footer p, footer a {
    color: #cbd5e1;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #7c3aed;
    text-decoration: none;
    transform: translateX(2px);
}

/* ===== ICONS ===== */
footer i {
    color: #7c3aed;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

footer a:hover i {
    transform: translateX(4px);
}

/* ===== QUICK LINKS ===== */
footer .quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ===== MAP SECTION ===== */
footer .map iframe {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

footer .map iframe:hover {
    transform: scale(1.02);
}

/* ===== BOTTOM FOOTER ===== */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
}

.footer-bottom img {
    max-height: 40px;
    filter: brightness(0.85);
    transition: filter 0.3s ease;
}

.footer-bottom img:hover {
    filter: brightness(1);
}

/* ===== BUTTONS (if any in footer) ===== */
.footer .btn-primary {
    background: #7c3aed;
    border: none;
    border-radius: 12px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer .btn-primary:hover {
    background: #6d28d9;
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .footer .map iframe {
        height: 200px;
    }
}

/* ===== MOBILE BOTTOM NAV – FIXED & WORKING ===== */
@media (max-width: 768px) {

    .menu {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 -12px 40px rgba(0,0,0,0.12);
        padding: 12px 0 max(12px, env(safe-area-inset-bottom));
        z-index: 999;
    }

    .menu-list {
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0 12px;
    }

    .menu-link {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        min-width: 64px;
        padding: 10px 14px;
        border-radius: 16px;
        color: var(--muted);
        font-size: 0.75rem;
        font-weight: 600;
        transition: var(--transition);
    }

    .menu-link i {
        font-size: 1.5rem;
        transition: var(--transition);
        z-index: 2;
    }

    /* ACTIVE STATE */
    .menu-link.is-active {
        color: var(--primary);
    }

    /* ACTIVE PILL BACKGROUND */
    .menu-link.is-active::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(79, 70, 229, 0.12);
        border-radius: 18px;
        z-index: 1;
        animation: pillPop 0.35s ease;
    }

    .menu-link.is-active i {
        transform: scale(1.1);
    }

    /* HOVER / TAP */
    .menu-link:hover {
        color: var(--primary);
    }

    /* SAFE SPACE */
    body {
        padding-bottom: calc(30px + env(safe-area-inset-bottom));
    }
}
.bg-dark{
    background:transparent !important;
}
/* SMALL MICRO ANIMATION */
@keyframes pillPop {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.break-section{
    padding-top:3rem;
}
/* ===== GLASS TOPBAR ===== */
#bg-back {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    backdrop-filter: blur(14px); /* glass blur effect */
    background: rgba(255, 255, 255, 0.15); /* semi-transparent glass */
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0 0 16px 16px;
    padding: 1rem 1rem;
    transition: all 0.3s ease;
    padding-bottom:30px;
}

/* ===== LINKS ICONS ===== */
#bg-back .nav-link {
    color: #000;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#bg-back .nav-link i,
#bg-back .nav-link span {
    transition: transform 0.3s ease, color 0.3s ease;
}

#bg-back .nav-link:hover i,
#bg-back .nav-link:hover span {
    transform: scale(1.2);
    color: #7c3aed; /* royal accent hover */
}

/* ===== TITLE ===== */
#bg-back .app-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #7c3aed; /* royal accent color */
    margin: 0;
}

/* ===== CENTER TEXT ALIGN ===== */
#bg-back .row {
    align-items: center;
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    #bg-back .col-6 .app-name {
        font-size: 1rem;
    }
    #bg-back .nav-link {
        font-size: 1.1rem;
    }
}

/* ===== FORM CONTAINER ===== */
form.bg-secondary {
    background: rgba(255, 255, 255, 0.1); /* subtle glass effect */
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

/* ===== FORM CONTROLS ===== */
form .form-control {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    color: #1e293b;
}

form .form-control:focus {
    border-color: #7c3aed; /* royal accent */
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.3);
    outline: none;
}

/* ===== BUTTONS ===== */
form .btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

form .btn-success {
    background: #7c3aed;
    border: none;
    color: #fff;
}

form .btn-success:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.3);
}

form .btn-danger {
    background: #ef4444;
    border: none;
    color: #fff;
}

form .btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.3);
}

/* ===== SELECT DROPDOWN ===== */
form select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="5" viewBox="0 0 10 5"><path fill="%236d28d9" d="M0 0l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 5px;
}

/* ===== FORM ROWS ===== */
form .row.p-3 {
    gap: 0.75rem;
}
.btn-group h5{
    color:#000;
}
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .break-section {
    padding-top: 1rem;
}
    form.bg-secondary {
        padding: 1rem;
    }
    form .form-control {
        font-size: 0.85rem;
        padding: 0.35rem 0.6rem;
    }
    form .btn {
        font-size: 0.85rem;
        padding: 0.35rem 0.6rem;
    }
    
    .brand{
        font-size:25px;
    }
}
