/* ===============================
   GLOBAL RESET & BASE
================================ */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
   background: linear-gradient(to right, #e0f7fa, #f1f8e9);
    font-family: "Segoe UI", Arial, sans-serif;
    color: #222;
}

/* ===============================
   TOURIST PAGE – MAIN LAYOUT
================================ */
.tourist-page {
    max-width: 1200px;
    margin: 0px auto;
    padding: 0 16px;
}
.page-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}


/* ===============================
   PRIMARY VIEW CONTAINER
================================ */
.primary-view-new {
    background: #ffffff;
    padding: 28px;
    border-radius: 18px;
    border: 1px solid #e6ecf5;
    box-shadow:
        0 14px 35px rgba(0,0,0,0.08),
        inset 0 0 0 1px rgba(255,255,255,0.6);
}

/* ===============================
   TITLE & LOCATION
================================ */
.title-box h2 a {
    font-size: 30px;
    margin: 0;
    color: #0a7cff;
    font-weight: 700;
    line-height: 1.2;
}
.title-box h2 a {
    text-decoration: none;
    color: #1e3a8a; /* deep blue */
    font-weight: 700;
    transition: color 0.25s ease;
}

.title-box h2 a:hover {
    color: #f97316; /* warm travel orange */
}


.location {
    margin-top: 8px;
    font-size: 17px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.location span {
    font-weight: 500;
}

.location .dot {
    color: #aaa;
}

/* ===============================
   PRIMARY GRID LAYOUT
================================ */
.primary-layout {
    display: grid;
    grid-template-columns: 78% 22%;
    grid-template-areas: "slider meta";
    gap: 24px;
    margin-top: 20px;
    align-items: stretch;
}

/* ===============================
   IMAGE SLIDER
================================ */
.slider {
    grid-area: slider;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    min-height: 520px;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider navigation */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    padding: 14px 18px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s, transform 0.3s;
}

.nav:hover {
    background: rgba(0,0,0,0.75);
    transform: translateY(-50%) scale(1.05);
}

.prev { left: 14px; }
.next { right: 14px; }

/* ===============================
   META BOX – SIDEBAR
================================ */
.meta-box {
    grid-area: meta;
    width: 100%;
    display: flex;
    align-items: flex-start;
}

.meta-grid.single-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Meta Card */
.meta-item {
    width: 100%;
    background: #eef4ff;
    padding: 14px 16px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-type {
    background: #dce9ff;
    font-weight: 700;
}

.meta-label {
    font-size: 13px;
    color: #0a3f7a;
    font-weight: 600;
}

.meta-value {
    font-size: 15px;
    color: #222;
    font-weight: 500;
}

.meta-value a {
    color: #0a7cff;
    text-decoration: none;
    font-weight: 600;
}

.meta-value a:hover {
    text-decoration: underline;
}

/* ===============================
   SHORT DESCRIPTION
================================ */
.short-desc {
    font-size: 17px;
    line-height: 1.75;
    color: #333;
    margin: 22px 0 26px;
}

/* ===============================
   VIEW MORE BUTTON
================================ */
.view-more {
    display: inline-block;
    margin: 30px auto 0;
    padding: 14px 40px;
    border-radius: 32px;
    background: linear-gradient(135deg, #0a7cff, #004aad);
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.view-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(10,124,255,0.35);
}

/* ===============================
   SECONDARY VIEW
================================ */
.secondary-view {
    margin-top: 0px;
    background: #ffffff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.08);
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.secondary-view.open {
    display: block;
}

.secondary-view h2 {
    font-size: 22px;
    margin-top: 28px;
    margin-bottom: 8px;
    color: #0a7cff;
    border-left: 4px solid #0a7cff;
    padding-left: 12px;
}


.secondary-view p{
    line-height: 1.8;
    font-size: 15px;
    color: #334155;
   
    margin: 6px 0;
}


/* ===============================
   AUTO SLIDER – GALLERY STRIP
================================ */
.auto-slider {
    overflow: hidden;
    margin-top: 20px;
}

.auto-track {
    display: flex;
    gap: 14px;
    animation: scrollGallery 25s linear infinite;
}

.auto-track img {
    width: 180px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.auto-track img:hover {
    transform: scale(1.08);
}

@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===============================
   IMAGE POPUP
================================ */
.popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.popup .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
}

/* ===============================
   ANIMATION
================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   RESPONSIVE – TABLET
================================ */
@media (max-width: 900px) {
    .primary-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "slider"
            "meta";
    }

    .slider {
        min-height: 320px;
    }

    .title-box h2 a {
        font-size: 30px;
    }
}

/* ===============================
   RESPONSIVE – MOBILE
================================ */
@media (max-width: 480px) {
    .primary-view-new {
        padding: 18px;
    }

    .slider {
        min-height: 220px;
    }

    .title-box h2 a{
        font-size: 24px;
    }

    .short-desc {
        font-size: 15px;
    }

    .view-more {
        width: 100%;
        text-align: center;
        padding: 14px;
    }

    .auto-track img {
        width: 140px;
        height: 110px;
    }
}

/* ===============================
   MOBILE FULL-WIDTH OPTIMIZATION
   ONLY FOR SMALL SCREENS
================================ */
@media (max-width: 480px) {

.primary-view-new {
        width: 100%;
        margin: 0;
        padding: 14px 16px;
        border-radius: 0;
        box-sizing: border-box;
    }

    .secondary-view {
        width: 100%;
        margin: 0;
        padding: 14px 16px;
        border-radius: 0;
        box-sizing: border-box;
    }

    /* Slider full width */
    .slider {
        width: 100%;
        min-height: 220px;
        border-radius: 0;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Smaller slider buttons */
    .nav {
        padding: 8px 10px;
        font-size: 14px;
    }

    .prev { left: 8px; }
    .next { right: 8px; }

    /* Meta grid: 2 items per row */
    .meta-grid.single-column {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .meta-item {
        width: calc(50% - 5px);
        padding : 4px;
        padding-left: 8px;
    }

    /* Make TYPE card full width */
    .meta-item.meta-type {
        width: 100%;
    }

    /* Meta text sizing */
    .meta-label {
        font-size: 12px;
        margin-left: 18px;
        padding-left: 8px;
    }

    .meta-value {
        font-size: 14px;
        margin left: 18px;
        padding top: 8px;
        margin-top: 0;
    }
}

/* ===============================
   MOBILE SPACING FIXES ONLY
================================ */
@media (max-width: 480px) {

    /* Reduce gap above View More */
    .short-desc {
        margin-bottom: 5px;
    }

    /* Compact View More button */
    .view-more {
        margin-top: 3px;
         margin-left: 28%;
        margin-bottom: 0;
        padding: 10px 22px;
        font-size: 14px;
        width: auto;
        min-width: 150px;
    }

    /* Remove gap between button & secondary view */
    .secondary-view {
        margin-top: 0;
        padding-top: 10px;
    }

    /* When secondary is opened, keep tight spacing */
    .secondary-view.open {
        margin-top: 0;
        width:100%;
    }
}
/* Mobile view */
@media (max-width: 768px) {
    .secondary-view {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
}

/* ===============================
   MOBILE CONTENT COMPACT MODE
================================ */

@media (max-width: 480px) {
    
    /* PAGE HEADING – mobile fix */
    .page-heading {
        height: 40px;   /* adjust if needed */
        border-radius: 0;
        font-size: 15px;
    }

    /* ===== META LABEL + VALUE GAP FIX ===== */
    .meta-item {
        gap: 2px;
    }
    .meta-box {
        margin-left: 10px;
        margin-right: 10px;
    }

    .meta-label {
        margin-bottom: 0;
        line-height: 1.2;
    }

    .meta-value {
        margin-top: 0;
        line-height: 1.25;
    }

    /* ===== SECONDARY VIEW FULL WIDTH ===== */
    /* ===== REMOVE TITLE BOX GAP ===== */
    .title-box {
        margin-top: 0;
        padding-top:0;
        margin-bottom: 3px;
        margin-left: 10px;
    }
    .tourist-page {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100%;
        max-width: 100%;
    }

    .title-box h2 a {
        margin-bottom: 0px;
        margin-top: 0px;
        padding-bottom :0;
    }
    .secondary-view {
         width: 100%;
        margin: 0;
        padding: 12px 16px;
        box-sizing: border-box;
     
        padding-left: 16px;
        padding-right: 16px;
      
        box-sizing: border-box;
    }

    /* ===== SECONDARY VIEW FULL EDGE ===== */


    /* ===== REDUCE GAP BETWEEN SHORT & FULL DESC ===== */
    .short-desc {
        margin-bottom: 8px;
        padding-left: 12px;
        line-height: 1.4;
    }

    .secondary-view p {
        margin-top: 4px;
        margin-bottom: 6px;
        line-height: 1.4;
    }

    /* ===== SQUARE CONTENT LOOK ===== */
    .secondary-view,
    .primary-view-new {
        border-radius: 0;
    }
}


.page-heading{
    padding: 10px 5px;          /* reduced height */
    margin-bottom: 0px;         /* less space below */
    background: linear-gradient(135deg, #0f5132, #198754, #6fdfb6);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
   position: sticky;
    top: 0;
    z-index: 1000;
    overflow: hidden;
}

/* soft light effect (lighter & smaller) */
.page-heading::before{
    content: "";
    position: absolute;
    top: -80%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle,
        rgba(255,255,255,0.12),
        transparent 65%);
}

/* TITLE */
.page-heading h1{
    font-size: 15px;             /* reduced font size */
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0 0 4px 0;           /* remove extra space */
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* SUB TITLE */
.page-heading p{
    font-size: 12px;
    margin: 0;                   /* remove margin */
    color: #eafff5;
    font-weight: 500;
}

/* MOBILE */
@media (max-width:768px){
    .page-heading{
        width:100%;
    }

    .page-heading h1{
        font-size: 24px;
    }
}


.blur-slide {
    position: relative;
}

.blur-slide img {
    filter: blur(3px);
}

.view-more-link {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

.view-more-link:hover {
    background: rgba(0,0,0,0.55);
}

.info-section{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.info-card{
    background: #f8fafc;
    border-left: 5px solid #2563eb;
    padding: 18px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}

.info-card h3{
    margin-bottom: 12px;
    font-size: 18px;
    color: #1e293b;
}

.info-card ul{
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li{
    padding-left: 22px;
    margin-bottom: 10px;
    position: relative;
    color: #334155;
    line-height: 1.6;
}

.info-card li::before{
    content: "✔";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-size: 14px;
}

.todo-chips{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.todo-chips li{
    list-style: none;
    background: linear-gradient(135deg,#e0f2fe,#f0f9ff);
    color: #0f172a;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: all .2s ease;
}

.todo-chips li:hover{
    transform: translateY(-2px);
    background: linear-gradient(135deg,#bae6fd,#e0f2fe);
}
.nearby-list{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 12px;
    margin-top: 12px;
}

.near-card{
    background: #ffffff;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.05);
    transition: .2s;
}

.near-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(0,0,0,0.08);
}

.section-title{
    font-size: 20px;
    margin: 25px 0 10px;
    position: relative;
    padding-left: 12px;
    color: #1e293b;
}

.section-title::before{
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 4px;
    height: 22px;
    background: #2563eb;
    border-radius: 4px;
}
.meta-note{
    margin-top: 10px;
    font-size: 11px;
    color: #666;
    background: #f6f6f6;
    padding: 6px 10px;
    border-left: 3px solid #ffa500;
    border-radius: 4px;
}
/* ===============================
   SEO INTRO SECTION
================================ */

.seo-content {
 
    padding: 3px 2px;
    background: #f8fafc;
    border-left: 4px solid #f97316;
    border-radius: 6px;
}

.seo-content {
    max-width: 1000px;
    margin: 0 auto 2px;      /* ✅ no top/bottom gap */
   
    background: #ffffff;
  
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

.seo-content p {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.7;
    color: #334155;
}

.seo-content p:last-child {
    margin-bottom: 0;
}

/* ===============================
   MAIN PAGE H1
================================ */

.tourist-page > h1 {
    max-width: 1100px;
    margin: 10px auto 10px;
    padding: 0 20px;
    font-size: 23px;
    font-weight: 700;
    color: #0f172a;
}

/* ===============================
   MOBILE OPTIMIZATION
================================ */

@media (max-width: 768px) {

    .tourist-page > h1 {
        font-size: 17px;
        margin-top: 4px;
    }

    .seo-content {
        margin: 0px 6px 1px;
        padding: 2px 2px;
    }

    .seo-content p {
        font-size: 14px;
    }
}




.seo-content p {
    font-size: 15px;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 14px;
}

@media (max-width: 600px)
{
    .seo-content 
    {
        padding: 2px 2px;
    }
}


--------------------------------

.place-image {
    width: 100%;
    max-width: 720px;        /* match slider width better */
    height: 420px;           /* fixed height */
    margin: 15px auto;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.place-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* keeps image filling box */
    display: block;
}

.place-image img:hover {
    transform: scale(1.03);
}



/* Hover container */
.hover-label {
    position: relative;
    display: inline-block;
    text-decoration: none;
}

/* Hover text */
.hover-text {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    opacity: 0;
    transition: 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

/* Show on hover */
.hover-label:hover .hover-text
{
    opacity: 1;
}

/* ===============================
   FILTER SECTION STYLING
================================ */

.filter-box {
    background: #ffffff;

    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);

}

.filter-box form {
    width: 100%;
}

/* Default layout (Desktop) */
.filter-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

/* Make both rows behave as single row on desktop */
.filter-row-1,
.filter-row-2 {
    flex: 1;
}

/* Combine both rows into single line on desktop */
#filterForm {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Inputs & Select */
.filter-box select,
.filter-box input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    outline: none;
    transition: 0.2s ease;
}

.filter-box select:focus,
.filter-box input:focus {
    border-color: #0a7cff;
    box-shadow: 0 0 0 2px rgba(10,124,255,0.15);
}

/* Search Button */
#searchBtn {
    padding: 10px 22px;
    background: linear-gradient(135deg,#0a7cff,#004aad);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    white-space: nowrap;
}

#searchBtn:hover 
{
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(10,124,255,0.25);
}


/* ===============================
   MOBILE RESPONSIVE FIX
================================ */
@media (max-width: 768px) {

    #filterForm {
        display: block;   /* remove flex column */
    }

    /* Row 1: State + District */
    .filter-row-1 {
        display: flex;
        gap: 0px;
        width: 100%;
        margin-bottom: 3px;
    }

    #stateSelect,
    #districtSelect {
        width: 50% !important;
        flex: none;
    }

    /* Row 2: Search + Button */
    .filter-row-2 {
        display: flex;
        gap: 4px;
        width: 100%;
    }

    #searchInput {
        width: 65% !important;
    }

    #searchBtn {
        width: 35% !important;
    }
}
/* ===============================
   PLACE IMAGE - 3px MARGIN (Mobile Only)
================================ */
@media (max-width: 768px) {

    .place-image {
        margin: 0px !important;   /* top right bottom left = 3px */
        padding:0px;
    }

}




/* ===============================
   PROFESSIONAL PAGINATION
================================ */

.pagination{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:6px;
    margin:40px 0;
}

.pagination a{
    padding:8px 14px;
    border-radius:8px;
    border:1px solid #e2e8f0;
    background:#fff;
    color:#334155;
    text-decoration:none;
    font-size:14px;
    transition:all .25s ease;
}

.results-count{
    text-align:center;
    font-size:14px;
    color:#475569;
    margin-top:20px;
    margin-bottom:10px;
    font-weight:500;
}

.pagination a:hover{
    background:#0a7cff;
    color:#fff;
    border-color:#0a7cff;
}

.pagination a.active{
    background:#0a7cff;
    color:#fff;
    border-color:#0a7cff;
    font-weight:600;
}

.pagination a.prev,
.pagination a.next{
    font-weight:600;
}


.image-popup{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.9);
display:none;
align-items:center;
justify-content:center;
z-index:9999;
}

.image-popup img{
max-width:90%;
max-height:90%;
border-radius:6px;
}

.close-popup{
position:absolute;
top:20px;
right:30px;
font-size:30px;
color:white;
cursor:pointer;
font-weight:bold;
}


.gallery-popup{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.95);
display:none;
align-items:center;
justify-content:center;
z-index:9999;
}

.gallery-popup img{
max-width:90%;
max-height:90%;
border-radius:6px;
}

.close-popup{
position:absolute;
top:20px;
right:30px;
color:#fff;
font-size:30px;
cursor:pointer;
}

.nav{
position:absolute;
top:50%;
transform:translateY(-50%);
color:white;
font-size:45px;
cursor:pointer;
padding:10px;
}

.prev{ left:30px; }
.next{ right:30px; }