/* ==========================
   Root Variables
   ========================== */
:root {
    --navy: #0b1c2d;
    /* Primary dark blue */
    --purple: #4b2a7a;
    /* Secondary purple accent */
    --emerald: #0f766e;
    /* Green accent for prices/tags */
    --gold: #d4af37;
    /* Gold accent for buttons/borders */
    --light: #f5f7fb;
    /* Light background color */
}

/* ==========================
   Global Styles
   ========================== */
* {
    box-sizing: border-box;
    /* Includes padding/border in element width */
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    /* Clean modern font */
    background: var(--light);
    color: #1e293b;
    /* Default text color */
}

a {
    text-decoration: none;
    /* Remove underline from links */
    color: inherit;
    /* Inherit parent color */
}

/* ==========================
   Header
   ========================== */
header {
    position: fixed;
    /* Stays on top */
    top: 0;
    width: 100%;
    z-index: 100;
    /* Ensures header is above other content */
    background: linear-gradient(90deg, var(--navy), var(--purple));
    color: #fff;
    padding: 14px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
}

nav li {
    font-weight: 500;
    opacity: 0.95;
    /* Slightly muted menu text */
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 8px;
    transition: color .18s ease, background .18s ease, transform .18s ease, opacity .18s ease;
}

nav li:hover,
nav li:focus,
nav li:focus-visible {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
    transform: translateY(-2px);
    opacity: 1;
    outline: none;
}

nav li:active {
    transform: translateY(0);
}

.auth {
    display: flex;
    gap: 12px;
}

/* Button Styles */
.btn {
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), #f5d76e);
    color: #1a1a1a;
}

.btn-outline {
    border: 1px solid var(--gold);
    color: var(--gold);
}

/* ==========================
   Hero Section
   ========================== */
.hero {
    margin-top: 70px;

    height: 50vh;
    position: relative;
    background: url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 18px;
    opacity: 0.9;
}

.search-box {
    margin-top: 25px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-box input,
.search-box select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    flex: 1;
    min-width: 180px;
}

.search-box button {
    background: #0f766e;
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

/* Overlay for dark gradient */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 28, 45, 0.7), rgba(75, 42, 122, 0.8));
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Make sure content is above overlay */
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 12px;
}

.hero p {
    max-width: 640px;
    font-size: 16px;
    opacity: 0.9;
}

/* ==========================
   Layout / Container
   ========================== */
.container {
    max-width: 1400px;
    margin: auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 320px 1fr;
    /* sidebar/filter + Main content */
    gap: 30px;
}

/* ==========================
   Filter Sidebar
   ========================== */
.filter {
    position: sticky;
    /* Stays visible while scrolling */
    display: inline-block;
    top: 100px;
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.range-wrapper {
    position: relative;
    width: 100%;
    margin: 12px 0 20px;
}

.range-wrapper input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 6px;
    background: linear-gradient(to right, #2563eb 0%, #e5e7eb 0%);
    outline: none;
}

/* Thumb */
.range-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #2563eb;
    border-radius: 50%;
    cursor: pointer;
}

/* Price bubble */
.price-bubble {
    position: absolute;
    top: -34px;
    left: 0;
    background: #2563eb;
    color: #fff;
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 6px;
    transform: translateX(-50%);
    white-space: nowrap;
}


.filter h3 {
    margin-bottom: 16px;
    color: var(--purple);
}

.filter label {
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
    display: block;
}

.filter input,
.filter select {
    width: 100%;
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
}

.filter .actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* ==========================
   Cards / Listings
   ========================== */
.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--navy);
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.07);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    /* Hover lift effect */
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card-body {
    padding: 14px;
}

.price {
    color: var(--emerald);
    font-weight: 600;
    margin-top: 6px;
}

.tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 8px 0;
}

.tag {
    font-size: 11px;
    background: #eef2ff;
    color: var(--purple);
    padding: 4px 8px;
    border-radius: 12px;
}

.card button {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, var(--navy), var(--purple));
    color: #fff;
}

/* ==========================
   App Section (Download/App Promo)
   ========================== */
.app {
    margin:;
    background: linear-gradient(135deg, var(--purple), var(--navy));
    border-radius: 28px;
    color: #fff;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
}

.store-btns img {
    height: 44px;
    margin-right: 12px;
}

/* ==========================
   Footer
   ========================== */
footer {
    background: var(--navy);
    color: #cbd5e1;
    text-align: center;
    padding: 30px;
    margin-top: 40px;
}

/* ==========================
   Responsive
   ========================== */
@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
        /* Stack content and sidebar */
    }

    header nav {
        display: none;
        /* Hide nav on smaller screens */
    }

    .app {
        grid-template-columns: 1fr;
        text-align: center;
    }
}


/* HostelCampus Unique Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f7fb;
    /* light track */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4b2a7a, #0f766e);
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(75, 42, 122, 0.6), 0 0 10px rgba(15, 118, 110, 0.6);
    border: 2px solid #f5f7fb;
    /* track color */
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6a3faf, #119688);
    box-shadow: 0 0 12px rgba(106, 63, 175, 0.8), 0 0 18px rgba(17, 150, 136, 0.8);
}