:root {
    --brand: #00468e;
    --brand-dark: #003366;
    --brand-light: #e8f2fa;
    --brand-soft: #f4f8fc;
    --text: #1e293b;
    --text-muted: #64748b;
    --footer-bg: #0c2340;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 8px 30px rgba(0, 70, 142, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--white);
    border-bottom: 1px solid rgba(0, 70, 142, 0.08);
    transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 70, 142, 0.1);
}

.site-header .navbar {
    padding: 0.65rem 0;
}

.site-logo-img {
    height: 46px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.site-nav .nav-link {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 8px;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    color: var(--brand);
    background: var(--brand-light);
}

.btn-brand {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--white);
    font-weight: 600;
    border-radius: 10px;
    padding: 0.55rem 1.25rem;
}

.btn-brand:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: var(--white);
}

.btn-outline-brand {
    color: var(--brand);
    border: 1.5px solid var(--brand);
    font-weight: 600;
    border-radius: 10px;
    padding: 0.55rem 1.25rem;
}

.btn-outline-brand:hover {
    background: var(--brand);
    color: var(--white);
}

/* Pakistan mobile (+92 prefix, 10 digits starting with 3) */
.pk-phone-input-group .pk-phone-prefix {
    background: var(--brand-light);
    border-color: rgba(0, 70, 142, 0.18);
    color: var(--brand);
    font-weight: 700;
    min-width: 3.25rem;
    justify-content: center;
}

.pk-phone-input-group .pk-phone-input {
    border-left: 0;
}

.pk-phone-input-group .pk-phone-prefix + .pk-phone-input:focus {
    box-shadow: none;
}

.pk-phone-input-group:focus-within .pk-phone-prefix,
.pk-phone-input-group:focus-within .pk-phone-input {
    border-color: var(--brand);
}

.pk-phone-input-group:focus-within {
    box-shadow: 0 0 0 0.2rem rgba(0, 70, 142, 0.12);
    border-radius: var(--radius);
}

/* Hero */
.hero-section {
    background: linear-gradient(180deg, var(--brand-soft) 0%, var(--white) 100%);
    padding: 3.5rem 0 2.5rem;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.15;
}

.hero-title span {
    color: var(--brand);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.search-wrap {
    max-width: 960px;
    margin: 0 auto;
}

.search-box {
    background: var(--white);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 70, 142, 0.1);
    text-align: left;
}

.search-bar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.search-location {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 0.85rem;
    min-height: 48px;
}

.search-location-icon {
    color: var(--text-muted);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.search-location .form-control {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0.75rem 0;
    font-size: 0.95rem;
}

.search-location .form-control:focus {
    box-shadow: none;
    background: transparent;
}

.btn-filter-toggle {
    background: #f5f0e8;
    border: 1px solid #e8dfd0;
    color: var(--text);
    font-weight: 600;
    border-radius: 12px;
    padding: 0.65rem 1rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-filter-toggle:hover,
.btn-filter-toggle.is-active {
    background: var(--brand-light);
    border-color: var(--brand);
    color: var(--brand);
}

.btn-near-me,
.btn-search-hostels {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.1rem;
}

.gender-quick-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 70, 142, 0.08);
}

.search-quick-filters-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 70, 142, 0.08);
}

.search-gender-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    flex: 0 1 auto;
    min-width: 0;
}

.search-category-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
}

.search-category-select {
    width: 180px;
    min-width: 140px;
    max-width: 220px;
    flex: 0 0 auto;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    padding: 0.45rem 2rem 0.45rem 0.75rem;
    height: auto;
    box-shadow: none;
}

.search-category-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 70, 142, 0.12);
}

@media (max-width: 767px) {
    .search-quick-filters-row {
        flex-wrap: wrap;
    }

    .search-category-group {
        margin-left: 0;
        width: 100%;
        white-space: normal;
    }

    .search-category-select {
        width: 100%;
        max-width: none;
        flex: 1 1 auto;
    }
}

.gender-quick-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 0.25rem;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem 1.5rem;
}

.filter-group {
    min-width: 0;
}

.search-filters-panel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 70, 142, 0.08);
}

.search-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text);
}

.btn-filter-close {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0.25rem;
    line-height: 1;
    cursor: pointer;
}

.btn-filter-close:hover {
    color: var(--brand);
}

.filter-group-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.65rem;
}

.filter-pills-inline {
    justify-content: flex-start;
    margin-top: 0;
}

.search-box .form-control {
    border: none;
    box-shadow: none;
    padding: 0.85rem 1rem;
    font-size: 1rem;
}

.search-box .form-control:focus {
    box-shadow: none;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-pill {
    border: 1px solid #dbeafe;
    background: var(--white);
    color: var(--text);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--white);
}

.stats-row {
    margin-top: 3.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 70, 142, 0.08);
}

.stats-row-inner {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    --bs-gutter-x: 0.75rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 0.1rem;
    line-height: 1.2;
}

.stat-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.3;
}

/* Sections */
.section-block {
    padding: 4rem 0;
}

.section-block.alt-bg {
    background: var(--brand-soft);
}

.section-heading {
    font-weight: 800;
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
}

.section-sub {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Hostel cards */
.hostel-card {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    background: var(--white);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.hostel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 70, 142, 0.12);
}

.hostel-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.hostel-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 72px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    pointer-events: none;
}

.hostel-pill {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    color: #fff;
    text-transform: capitalize;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.hostel-pill-success {
    background: #22c55e;
}

.hostel-pill-danger {
    background: #ef4444;
}

.hostel-pill-boys {
    background: #00468E;
}

.hostel-pill-girls {
    background: #ec4899;
    color: #1f2937;
}

.hostel-pill-neutral {
    background: #6b7280;
}

.badge-verified {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--brand);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.badge-top {
    position: absolute;
    top: auto;
    bottom: 52px;
    right: 12px;
    background: #f59e0b;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.price-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
}

.hostel-card-body {
    padding: 1.15rem;
}

.hostel-card-body--grid {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 270px;
}

.hostel-card-body--grid .hostel-card-content {
    flex: 1 1 auto;
    min-height: 0;
}

.hostel-card-body--grid .hostel-card-actions {
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 0.75rem;
}

.hostel-card-body--grid .hostel-card-title {
    font-size: 1rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.hostel-card-body--grid .hostel-meta {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hostel-card-body--grid .hostel-nearby-place {
    min-height: 3.1rem;
    max-height: 3.1rem;
    overflow: hidden;
}

.hostel-card-body--grid .hostel-card-actions .btn {
    min-height: 38px;
}

.hostel-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.hostel-nearby-place {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(0, 70, 142, 0.18);
    border-radius: 10px;
    background: rgba(0, 70, 142, 0.04);
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
}

.hostel-nearby-place i {
    flex-shrink: 0;
    margin-top: 0.1rem;
    font-size: 0.95rem;
}

.hostel-card-fact {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.hostel-card-fact i {
    color: var(--brand);
}

.hostel-card-fact strong {
    color: var(--brand);
}

.hostel-card-body--slider .hostel-card-actions .btn {
    min-height: 38px;
}

.amenity-icons {
    display: flex;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0.75rem 0;
}

.rating-stars {
    color: #f59e0b;
    font-size: 0.85rem;
}

.city-search-form {
    max-width: 560px;
    margin: 0 auto;
}

.city-search-box {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid rgba(0, 70, 142, 0.12);
    border-radius: 12px;
    padding: 0.35rem 1rem;
    box-shadow: var(--shadow);
}

.city-search-icon {
    color: var(--text-muted);
    margin-right: 0.65rem;
}

.city-search-box .form-control {
    border: none;
    box-shadow: none;
    padding: 0.75rem 0;
}

.city-search-box .form-control:focus {
    box-shadow: none;
}

.city-search-clear {
    white-space: nowrap;
    text-decoration: none;
    font-size: 0.875rem;
    color: var(--brand);
}

/* City cards */
.city-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 220px;
    box-shadow: var(--shadow);
}

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

.city-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 54, 102, 0.85), transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    color: var(--white);
}

.city-card-overlay h5 {
    margin: 0;
    font-weight: 700;
}

.city-card-overlay span {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Feature boxes */
.feature-box {
    background: linear-gradient(165deg, var(--brand-light) 0%, var(--brand-soft) 100%);
    border-radius: var(--radius);
    padding: 1.75rem;
    height: 100%;
    border: 1px solid rgba(0, 70, 142, 0.16);
    box-shadow: 0 6px 20px rgba(0, 70, 142, 0.08);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-box:hover {
    border-color: rgba(0, 70, 142, 0.24);
    box-shadow: 0 12px 28px rgba(0, 70, 142, 0.14);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid rgba(0, 70, 142, 0.12);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 70, 142, 0.06);
}

/* Testimonial slider */
.testimonial-slider-wrap {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem 1.75rem 1.25rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 70, 142, 0.06);
}

.testimonial-slider {
    position: relative;
    min-height: 0;
}

.testimonial-slide {
    display: none;
    animation: testimonialFadeIn 0.35s ease;
}

.testimonial-slide.is-active {
    display: block;
}

.testimonial-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-text {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex: 1 1 auto;
}

.testimonial-author {
    margin-top: auto;
}

@media (min-width: 992px) {
    .testimonial-slider-wrap {
        max-width: 1140px;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .testimonial-slider {
        display: flex;
        align-items: stretch;
        gap: 1.25rem;
    }

    .testimonial-slide.is-active,
    .testimonial-slide.is-active-next {
        display: flex;
        flex: 1 1 0;
        min-width: 0;
        flex-direction: column;
    }

    .testimonial-slide.is-active {
        order: 1;
    }

    .testimonial-slide.is-active-next {
        order: 2;
    }

    .testimonial-card {
        background: var(--white);
        border-radius: var(--radius);
        padding: 1.75rem;
        box-shadow: var(--shadow);
        border: 1px solid rgba(0, 70, 142, 0.06);
        flex: 1 1 auto;
        min-height: 300px;
    }

    .testimonial-slider-wrap .testimonial-controls {
        margin-top: 1.25rem;
        background: var(--white);
        border-radius: var(--radius);
        padding: 1rem 1.25rem;
        border: 1px solid rgba(0, 70, 142, 0.06);
        box-shadow: var(--shadow);
    }
}

@keyframes testimonialFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--brand-light);
}

.testimonial-user .rating-stars {
    font-size: 0.9rem;
}

.testimonial-quote-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #2e7d32;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.testimonial-author h6 {
    color: var(--text);
}

.testimonial-card-shell {
    padding-bottom: 1.25rem;
}

.testimonial-slider-wrap .testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
    padding: 1rem 0 0;
    border-top: 1px solid rgba(0, 70, 142, 0.1);
}

.testimonial-dots {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.testimonial-dot.is-active {
    background: var(--brand);
    transform: scale(1.15);
}

.testimonial-nav {
    display: flex;
    gap: 0.5rem;
}

.testimonial-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: var(--white);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.testimonial-nav-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-light);
}

/* FAQ + CTA */
.cta-panel {
    background: var(--brand);
    color: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    height: 100%;
}

.cta-panel-logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--white);
}

.cta-panel-title {
    font-size: 1.65rem;
    line-height: 1.25;
}

.cta-panel-desc {
    opacity: 0.92;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.cta-signup-form {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.cta-email-input {
    flex: 1 1 180px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--white);
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.cta-email-input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.cta-email-input:focus {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--white);
    box-shadow: none;
}

.cta-get-started {
    background: var(--white);
    color: var(--brand);
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.35rem;
    white-space: nowrap;
}

.cta-get-started:hover {
    background: var(--brand-light);
    color: var(--brand-dark);
}

.cta-legal {
    font-size: 0.75rem;
    opacity: 0.85;
    line-height: 1.5;
    margin-bottom: 0;
}

.cta-legal a {
    color: var(--white);
    text-decoration: underline;
}

.cta-legal a:hover {
    opacity: 0.9;
}

.cta-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
}

.cta-stat strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
}

.cta-stat span {
    font-size: 0.85rem;
    opacity: 0.85;
}

.cta-panel .form-control {
    border-radius: 10px;
    border: none;
    padding: 0.75rem 1rem;
}

.faq-item {
    border: 1px solid rgba(0, 70, 142, 0.1);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: var(--white);
}

.faq-btn {
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    background: var(--white);
    border: none;
    font-weight: 600;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-btn:not(.collapsed) {
    color: var(--brand);
    background: var(--brand-light);
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.85);
    padding: 3.5rem 0 0;
}

.footer-main {
    align-items: flex-start;
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 1.25rem;
}

.footer-logo-wrap {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
}

.footer-logo {
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.footer-logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--white);
}

.footer-about {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 1.25rem;
    max-width: 340px;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-heading {
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.15rem;
    line-height: 1.6;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-contact-item {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    line-height: 1.5;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.footer-contact-item a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-contact-item i {
    color: rgba(255, 255, 255, 0.55);
    width: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.site-footer h6 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.75);
}

.site-footer a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2.5rem;
    padding: 1.25rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: background 0.15s ease;
}

.social-link:hover {
    background: var(--brand);
    color: var(--white);
}

.page-hero {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: var(--white);
    padding: 3.5rem 0;
}

.page-hero h1 {
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 1020;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:hover {
    color: var(--white);
    transform: scale(1.05);
}

.cta-alert {
    font-size: 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    margin-bottom: 0;
}

.cta-alert-success {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.cta-alert-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Legal pages */
.legal-content {
    max-width: 820px;
}

.legal-intro {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 2rem;
}

.legal-section {
    background: var(--white);
    border: 1px solid rgba(0, 70, 142, 0.08);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 0.75rem;
}

.legal-image {
    max-height: 360px;
    object-fit: cover;
}

.legal-image-sm {
    height: 220px;
    object-fit: cover;
}

.legal-content-wide {
    max-width: 900px;
}

.terms-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.terms-accordion-item {
    background: var(--white);
    border: 1px solid rgba(0, 70, 142, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.terms-accordion-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border: none;
    background: var(--white);
    text-align: left;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
}

.terms-accordion-btn:not(.collapsed) {
    background: var(--brand-light);
    color: var(--brand);
}

.terms-accordion-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--brand-light);
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.terms-accordion-btn:not(.collapsed) .terms-accordion-num {
    background: var(--brand);
    color: var(--white);
}

.terms-accordion-title {
    flex: 1;
    font-size: 1rem;
}

.terms-accordion-icon {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.terms-accordion-btn:not(.collapsed) .terms-accordion-icon {
    transform: rotate(180deg);
}

.terms-accordion-body {
    padding: 0 1.25rem 1.35rem;
    border-top: 1px solid rgba(0, 70, 142, 0.08);
}

.terms-accordion-body .text-muted:first-of-type {
    padding-top: 1.15rem;
}

.terms-feature-image {
    max-height: 320px;
    object-fit: cover;
}

.terms-inline-image {
    height: 200px;
    object-fit: cover;
}

@media (max-width: 1199.98px) {
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991.98px) {
    .site-nav {
        padding: 1rem 0;
    }

    .hero-section {
        padding: 2.5rem 0 2rem;
    }

    .search-bar-row {
        flex-direction: column;
        align-items: stretch;
    }

    .search-location {
        flex: none;
        width: 100%;
    }

    .btn-near-me,
    .btn-search-hostels,
    .btn-filter-toggle {
        width: 100%;
        justify-content: center;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }
}

/* Hostel listing pagination */
.hostel-pagination {
    margin-top: 2.5rem;
    padding: 1.25rem 0 0.5rem;
}

.hostel-pagination-list {
    gap: 0.35rem;
}

.hostel-pagination-list .page-link {
    border: 1px solid var(--border, #dee2e6);
    color: var(--brand);
    font-weight: 600;
    min-width: 2.5rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0.4rem 0.75rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hostel-pagination-list .page-link:hover {
    background: rgba(0, 70, 142, 0.08);
    border-color: var(--brand);
    color: var(--brand);
}

.hostel-pagination-list .page-item.active .page-link {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 70, 142, 0.25);
}

.hostel-pagination-list .page-item.disabled .page-link {
    color: #adb5bd;
    background: #f8f9fa;
}

.hostel-pagination-list .page-link-ellipsis {
    border: none;
    background: transparent;
    min-width: auto;
}

@media (max-width: 575.98px) {
    .hostel-pagination-list .page-link {
        min-width: 2.25rem;
        min-height: 2.25rem;
        padding: 0.35rem 0.5rem;
        font-size: 0.875rem;
    }

    .hostel-pagination-summary {
        font-size: 0.8rem;
    }
}

.hostel-card-img img {
    background: linear-gradient(135deg, #e8f2fc 0%, #c5daf0 100%);
}

/* Location permission */
.location-permission-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 70, 142, 0.2);
}

.location-permission-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(0, 70, 142, 0.1);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.location-inline-banner {
    background: linear-gradient(135deg, #e8f2fc 0%, #f0f7ff 100%);
    border: 1px solid rgba(0, 70, 142, 0.15);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.location-inline-banner-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.location-inline-banner-inner > i {
    font-size: 1.75rem;
    color: var(--brand);
    flex-shrink: 0;
}

.nearby-placeholder-card {
    background: #f8fafc;
    border: 2px dashed rgba(0, 70, 142, 0.2);
    border-radius: 16px;
}

#nearby-hostels-grid.opacity-50 {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.location-city-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.location-city-pill {
    border: 1px solid rgba(0, 70, 142, 0.25);
    background: #fff;
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.location-city-pill:hover,
.location-city-pill.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.location-city-pill.is-featured {
    border-width: 2px;
    border-color: var(--brand);
}

.location-city-fallback.is-highlighted {
    background: rgba(0, 70, 142, 0.06);
    border-radius: 12px;
    padding: 0.75rem;
    margin: 0 -0.25rem;
}

.location-help-details summary {
    cursor: pointer;
}

.location-help-details[open] summary {
    color: var(--brand);
    font-weight: 600;
}
