/* =========================================================
   FUNYATRA — DISTRICT PAGE
   Professional • Attractive • Compact • Responsive
   Existing HTML structure preserved
========================================================= */

/* =========================
   GLOBAL
========================= */

*,
*::before,
*::after{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:"Poppins","Noto Sans Devanagari","Segoe UI",Arial,sans-serif;
    background:#f7fafc;
    color:#172033;
}

img{
    max-width:100%;
}

a{
    transition:all .25s ease;
}

.container{
    width:min(1180px,92%);
    margin-left:auto;
    margin-right:auto;
}


/* =========================
   HERO
========================= */

.district-hero{
    position:relative;
    height:500px;
    overflow:hidden;
    background:#0f172a;
}

.district-hero img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    animation:districtHeroZoom 18s ease-in-out infinite alternate;
}

@keyframes districtHeroZoom{
    from{transform:scale(1);}
    to{transform:scale(1.06);}
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            180deg,
            rgba(2,8,23,.08) 0%,
            rgba(2,8,23,.20) 38%,
            rgba(2,8,23,.82) 100%
        );
}

.hero-content{
    position:absolute;
    left:50%;
    bottom:58px;
    transform:translateX(-50%);
    width:min(1180px,92%);
    color:#fff;
}

.hero-content h1{
    margin:0 0 10px;
    max-width:850px;
    font-size:clamp(36px,5vw,62px);
    line-height:1.08;
    font-weight:800;
    letter-spacing:-1px;
    color:#fff;
    text-shadow:0 4px 20px rgba(0,0,0,.35);
}

.hero-content p{
    max-width:760px;
    margin:0;
    font-size:clamp(15px,1.8vw,19px);
    line-height:1.65;
    color:rgba(255,255,255,.92);
    text-shadow:0 2px 10px rgba(0,0,0,.35);
}


/* =========================
   BREADCRUMB
========================= */

.breadcrumb{
    width:min(1180px,92%);
    margin:16px auto 0;
    padding:11px 16px;
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:7px;
    border:1px solid #e6edf3;
    border-radius:12px;
    background:#fff;
    box-shadow:0 5px 18px rgba(15,23,42,.05);
    font-size:13px;
}

.breadcrumb a{
    color:#087ea4;
    text-decoration:none;
    font-weight:700;
}

.breadcrumb a:hover{
    color:#05617d;
}

.breadcrumb span{
    color:#8a98a8;
}


/* =========================
   INTRO
   Heading hidden as requested
========================= */

.district-about{
    padding:34px 0 18px;
}

.district-about h2{
    display:none;
}

.district-about p{
    width:min(900px,100%);
    margin:0 auto;
    text-align:center;
    color:#536274;
    font-size:16px;
    line-height:1.75;
}


/* =========================
   STATISTICS
========================= */

.district-stats{
    width:min(900px,92%);
    margin:14px auto 34px;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}

.stat-box{
    position:relative;
    padding:20px 16px;
    text-align:center;
    background:#fff;
    border:1px solid #e5edf3;
    border-radius:16px;
    box-shadow:0 7px 22px rgba(15,23,42,.055);
    overflow:hidden;
}

.stat-box::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:3px;
    background:linear-gradient(90deg,#087ea4,#18a875);
}

.stat-box h3{
    margin:0;
    color:#087ea4;
    font-size:30px;
    line-height:1.15;
    font-weight:800;
}

.stat-box p{
    margin:5px 0 0;
    color:#667587;
    font-size:13px;
    font-weight:600;
}

.stat-box:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 28px rgba(15,23,42,.09);
}


/* =====================================================
   DISTRICT PAGE
   CATEGORIES + PLACES + NEARBY + FAQ
===================================================== */


/* =====================================================
   COMMON SECTION
===================================================== */

.district-categories,
.district-places,
.nearby-section,
.faq-section {

    width: 90%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 35px 0 45px;
}


/* =====================================================
   SECTION HEADER
===================================================== */

.section-header {

    text-align: center;

    max-width: 850px;

    margin: 0 auto 28px;
}

.section-kicker {

    display: inline-block;

    margin-bottom: 7px;

    padding: 5px 11px;

    border-radius: 999px;

    background: #e8f7fb;

    color: #087ea4;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .7px;

    text-transform: uppercase;
}

.section-header h2 {

    margin: 0;

    color: #102a43;

    font-size: 34px;

    line-height: 1.2;

    font-weight: 900;
}

.section-header p {

    max-width: 720px;

    margin: 8px auto 0;

    color: #64748b;

    font-size: 15px;

    line-height: 1.65;
}


/* =====================================================
   CATEGORY GRID
===================================================== */

.category-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}


/* =====================================================
   CATEGORY CARD
===================================================== */

.category-card {

    position: relative;

    display: flex;

    align-items: center;

    gap: 11px;

    min-height: 78px;

    padding: 15px 16px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5edf3;

    border-radius: 15px;

    color: #152238;

    text-decoration: none;

    box-shadow:
        0 6px 20px rgba(15, 23, 42, .055);

    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
}

.category-card:hover {

    transform: translateY(-4px);

    border-color: #b9dfe9;

    box-shadow:
        0 12px 28px rgba(15, 23, 42, .10);
}


/* CATEGORY ICON */

.category-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #e7f8fb,
            #eefbf5
        );

    color: #087ea4;

    font-size: 16px;

    font-weight: 900;
}


/* CATEGORY CONTENT */

.category-content {

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 3px;
}

.category-name {

    overflow: hidden;

    color: #152238;

    font-size: 14px;

    font-weight: 800;

    white-space: nowrap;

    text-overflow: ellipsis;
}

.category-count {

    color: #7a8795;

    font-size: 11px;

    font-weight: 600;
}


/* CATEGORY ARROW */

.category-arrow {

    margin-left: auto;

    color: #087ea4;

    font-size: 19px;

    font-weight: 800;

    transition:
        transform .25s ease;
}

.category-card:hover .category-arrow {

    transform: translateX(4px);
}


/* =====================================================
   BEST PLACES / PLACE GRID
===================================================== */

.place-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


/* =====================================================
   PLACE CARD
===================================================== */

.place-card {

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5ebf1;

    border-radius: 18px;

    box-shadow:
        0 7px 24px rgba(15, 23, 42, .065);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.place-card:hover {

    transform: translateY(-6px);

    box-shadow:
        0 15px 35px rgba(15, 23, 42, .12);
}


/* =====================================================
   PLACE IMAGE
===================================================== */

.place-image-link {

    display: block;

    text-decoration: none;
}

.place-image {

    position: relative;

    width: 100%;

    height: 210px;

    overflow: hidden;

    background: #eef3f7;
}

.place-image img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .5s ease;
}

.place-card:hover .place-image img {

    transform: scale(1.05);
}


/* =====================================================
   PLACE RATING
===================================================== */

.place-rating {

    position: absolute;

    top: 12px;
    right: 12px;

    padding: 5px 9px;

    border-radius: 20px;

    background:
        rgba(15, 23, 42, .82);

    color: #ffffff;

    font-size: 12px;

    font-weight: 800;

    backdrop-filter: blur(7px);
}


/* =====================================================
   PLACE CONTENT
===================================================== */

.place-content {

    padding: 17px 18px 18px;
}


/* =====================================================
   PLACE HEADING
===================================================== */

.place-heading {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 10px;
}

.place-content h3 {

    margin: 0;

    font-size: 19px;

    line-height: 1.3;

    font-weight: 800;
}

.place-content h3 a {

    color: #152238;

    text-decoration: none;

    transition:
        color .25s ease;
}

.place-content h3 a:hover {

    color: #087ea4;
}


/* =====================================================
   REVIEWS
===================================================== */

.review-count {

    flex: 0 0 auto;

    color: #7a8795;

    font-size: 11px;

    line-height: 1.4;

    text-align: right;
}


/* =====================================================
   LOCATION
===================================================== */

.place-location {

    display: flex;

    align-items: center;

    gap: 5px;

    margin-top: 6px;

    color: #087ea4;

    font-size: 12px;

    font-weight: 700;
}


/* =====================================================
   SHORT DESCRIPTION
===================================================== */

.place-description {

    margin: 9px 0 11px;

    padding: 0;

    color: #64748b;

    font-size: 13.5px;

    line-height: 1.55;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 3;

    overflow: hidden;
}


/* =====================================================
   PLACE BUTTON
===================================================== */

.place-btn {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 8px 13px;

    border: 1px solid #d8e5ec;

    border-radius: 9px;

    background: #f5fafc;

    color: #087ea4;

    text-decoration: none;

    font-size: 12.5px;

    font-weight: 800;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}

.place-btn:hover {

    background: #087ea4;

    color: #ffffff;

    transform: translateX(2px);
}


/* =====================================================
   PAGINATION
===================================================== */

.pagination {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin: 28px auto 0;
}

.page-numbers {

    display: flex;

    align-items: center;

    gap: 6px;
}

.pagination a {

    display: flex;

    align-items: center;

    justify-content: center;

    min-width: 36px;

    height: 36px;

    padding: 0 10px;

    border: 1px solid #dce6ed;

    border-radius: 9px;

    background: #ffffff;

    color: #334e68;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.pagination a:hover {

    border-color: #087ea4;

    color: #087ea4;

    transform: translateY(-2px);
}

.pagination a.active {

    background: #087ea4;

    border-color: #087ea4;

    color: #ffffff;
}

.pagination .page-arrow {

    font-size: 21px;

    font-weight: 400;
}

.page-numbers span {

    padding: 0 3px;

    color: #94a3b8;

    font-size: 14px;
}


/* PAGINATION INFO */

.pagination-info {

    margin-top: 10px;

    text-align: center;

    color: #7a8795;

    font-size: 12px;
}


/* =====================================================
   EMPTY STATE
===================================================== */

.empty-state {

    max-width: 650px;

    margin: 5px auto 0;

    padding: 32px 22px;

    text-align: center;

    background: #ffffff;

    border: 1px dashed #cbd8e3;

    border-radius: 18px;
}

.empty-icon {

    margin-bottom: 7px;

    font-size: 34px;
}

.empty-state h3 {

    margin: 0;

    color: #1e293b;

    font-size: 20px;
}

.empty-state p {

    margin: 6px auto 0;

    color: #64748b;

    font-size: 14px;

    line-height: 1.6;
}


/* =====================================================
   NEARBY DISTRICTS
===================================================== */

.nearby-section {

    padding-top: 25px;

    padding-bottom: 42px;
}

.nearby-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 13px;
}

.nearby-card {

    display: flex;

    align-items: center;

    gap: 9px;

    min-height: 58px;

    padding: 13px 15px;

    background: #ffffff;

    border: 1px solid #e4ebf1;

    border-radius: 13px;

    color: #152238;

    text-decoration: none;

    box-shadow:
        0 5px 18px rgba(15, 23, 42, .05);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.nearby-card:hover {

    transform: translateY(-3px);

    border-color: #b8dce6;

    box-shadow:
        0 10px 25px rgba(15, 23, 42, .09);
}

.nearby-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    border-radius: 9px;

    background: #edf9fb;

    font-size: 14px;
}

.nearby-name {

    overflow: hidden;

    min-width: 0;

    font-size: 14px;

    font-weight: 750;

    white-space: nowrap;

    text-overflow: ellipsis;
}

.nearby-arrow {

    margin-left: auto;

    color: #087ea4;

    font-size: 18px;

    transition:
        transform .25s ease;
}

.nearby-card:hover .nearby-arrow {

    transform: translateX(4px);
}


/* =====================================================
   FAQ
===================================================== */

.faq-section {

    padding-top: 28px;

    padding-bottom: 50px;
}

.faq-list {

    max-width: 900px;

    margin: 0 auto;

    display: grid;

    gap: 10px;
}

.faq-item {

    padding: 17px 20px;

    background: #ffffff;

    border: 1px solid #e5ebf1;

    border-radius: 14px;

    box-shadow:
        0 5px 18px rgba(15, 23, 42, .045);

    transition:
        border-color .25s ease,
        box-shadow .25s ease;
}

.faq-item:hover {

    border-color: #c6dfe7;

    box-shadow:
        0 9px 24px rgba(15, 23, 42, .07);
}

.faq-question {

    display: flex;

    align-items: flex-start;

    gap: 11px;
}

.faq-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 27px;

    width: 27px;
    height: 27px;

    border-radius: 8px;

    background: #eaf8fb;

    color: #087ea4;

    font-size: 13px;

    font-weight: 900;
}

.faq-item h3 {

    margin: 2px 0 0;

    color: #152238;

    font-size: 15px;

    line-height: 1.45;

    font-weight: 800;
}

.faq-item p {

    margin: 8px 0 0 38px;

    color: #64748b;

    font-size: 13.5px;

    line-height: 1.65;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1050px) {

    .category-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .nearby-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 900px) {

    .place-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .section-header h2 {

        font-size: 30px;
    }
}


@media (max-width: 700px) {

    .district-categories,
    .district-places,
    .nearby-section,
    .faq-section {

        width: 92%;

        padding-top: 28px;

        padding-bottom: 35px;
    }


    .section-header {

        margin-bottom: 21px;
    }


    .section-header h2 {

        font-size: 26px;
    }


    .section-header p {

        font-size: 14px;
    }


    .category-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }


    .category-card {

        min-height: 70px;

        padding: 12px;
    }


    .category-icon {

        width: 34px;
        height: 34px;

        flex-basis: 34px;
    }


    .category-name {

        font-size: 13px;
    }


    .place-grid {

        grid-template-columns: 1fr;

        gap: 17px;
    }


    .place-image {

        height: 215px;
    }


    .nearby-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }


    .nearby-card {

        min-height: 53px;

        padding: 11px;
    }


    .faq-item {

        padding: 15px;
    }


    .faq-item p {

        margin-left: 0;

        margin-top: 9px;
    }
}


@media (max-width: 480px) {

    .category-grid {

        grid-template-columns: 1fr;
    }


    .nearby-grid {

        grid-template-columns: 1fr;
    }


    .place-content {

        padding: 15px;
    }


    .place-content h3 {

        font-size: 18px;
    }


    .place-description {

        font-size: 13px;
    }


    .pagination {

        gap: 4px;
    }


    .pagination a {

        min-width: 32px;

        height: 32px;

        padding: 0 8px;

        font-size: 12px;
    }
}


/* =====================================================
   REDUCE UNWANTED SPACE FROM OLD DISTRICT CSS
===================================================== */

.district-intro,
.district-about,
.district-overview,
.district-history,
.district-travel,
.district-info,
.district-content {

    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


/* Prevent old headings from creating oversized gaps */

.district-intro h2,
.district-about h2,
.district-overview h2 {

    margin-top: 0;
}


/* =====================================================
   GLOBAL IMAGE PERFORMANCE
===================================================== */

.place-image img {

    image-rendering: auto;
}


/* =====================================================
   ACCESSIBILITY
===================================================== */

.category-card:focus-visible,
.place-btn:focus-visible,
.place-image-link:focus-visible,
.nearby-card:focus-visible,
.pagination a:focus-visible {

    outline: 3px solid rgba(8, 126, 164, .25);

    outline-offset: 3px;
}
/* =========================
   FOCUS / ACCESSIBILITY
========================= */

.category-card:focus-visible,
.place-card a:focus-visible,
.place-btn:focus-visible,
.nearby-card:focus-visible,
.pagination a:focus-visible,
.breadcrumb a:focus-visible{
    outline:3px solid rgba(8,126,164,.25);
    outline-offset:3px;
}


/* =========================
   TABLET
========================= */

@media (max-width:1100px){

    .district-hero{
        height:460px;
    }

    .category-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .place-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .nearby-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width:700px){

    .container{
        width:calc(100% - 28px);
    }

    .district-hero{
        height:390px;
    }

    .hero-content{
        bottom:34px;
        width:calc(100% - 28px);
    }

    .hero-content h1{
        margin-bottom:8px;
        font-size:34px;
        letter-spacing:-.5px;
    }

    .hero-content p{
        font-size:14px;
        line-height:1.55;
    }

    .breadcrumb{
        width:calc(100% - 28px);
        margin-top:10px;
        padding:9px 12px;
        font-size:11px;
        border-radius:10px;
    }

    .district-about{
        padding:24px 0 10px;
    }

    .district-about p{
        font-size:14px;
        line-height:1.65;
    }

    .district-stats{
        width:calc(100% - 28px);
        margin:12px auto 24px;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }

    .stat-box{
        padding:15px 10px;
        border-radius:13px;
    }

    .stat-box:last-child{
        grid-column:1 / -1;
    }

    .stat-box h3{
        font-size:25px;
    }

    .stat-box p{
        font-size:11px;
    }

    .district-section{
        padding:20px 0 25px;
    }

    .district-section + .district-section{
        padding-top:10px;
    }

    .section-title{
        margin-bottom:15px;
    }

    .section-title h2{
        font-size:25px;
    }

    .section-title p{
        margin-top:5px;
        font-size:12px;
    }

    .category-grid,
    .place-grid,
    .nearby-grid{
        grid-template-columns:1fr;
    }

    .category-grid{
        gap:10px;
    }

    .category-card{
        min-height:82px;
        padding:14px 15px;
    }

    .category-name,
    .category-card h3{
        font-size:15px;
    }

    .place-grid{
        gap:14px;
    }

    .place-image{
        height:190px;
    }

    .place-content{
        padding:14px;
    }

    .place-content h3{
        font-size:17px;
    }

    .place-description{
        margin:8px 0 11px;
        font-size:12.5px;
        line-height:1.55;
        -webkit-line-clamp:3;
    }

    .place-btn{
        padding:8px 11px;
        font-size:11px;
    }

    .nearby-grid{
        gap:9px;
    }

    .nearby-card{
        min-height:54px;
        padding:12px 13px;
    }

    .nearby-card span{
        font-size:13px;
    }

    .faq-box,
    .faq-section{
        padding:18px 16px;
        border-radius:15px;
    }

    .faq-box h2,
    .faq-section > h2{
        margin-bottom:10px;
        font-size:23px;
    }

    .faq-item{
        padding:12px 0;
    }

    .faq-item h3{
        font-size:13px;
        padding-left:21px;
    }

    .faq-item p{
        margin:5px 0 0 21px;
        font-size:12px;
        line-height:1.6;
    }

    .pagination{
        gap:5px;
        margin-top:18px;
    }

    .pagination a{
        min-width:32px;
        height:32px;
        padding:0 7px;
        font-size:12px;
    }

    .pagination .page-arrow{
        font-size:18px;
    }

    .pagination-info{
        font-size:11px;
    }

    .empty-state{
        padding:24px 15px;
    }
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width:420px){

    .district-hero{
        height:350px;
    }

    .hero-content h1{
        font-size:29px;
    }

    .hero-content p{
        font-size:13px;
    }

    .district-stats{
        grid-template-columns:1fr 1fr;
    }

    .stat-box h3{
        font-size:22px;
    }

    .category-card{
        min-height:76px;
    }

    .place-image{
        height:175px;
    }

    .page-numbers a:nth-child(n+5){
        display:none;
    }
}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion:reduce){

    html{
        scroll-behavior:auto;
    }

    .district-hero img{
        animation:none;
    }

    *,
    *::before,
    *::after{
        transition:none !important;
    }
}