/* ═══════════════════════════════════════════════════════════════
   JainTirthDham — Main Stylesheet
   File: assets/css/style.css
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ───────────────────────────────────────────── */
:root {
    --saffron:        #B86A00;
    --saffron-dark:   #7A4500;
    --saffron-deeper: #5C3317;
    --saffron-light:  #FFF3E0;
    --saffron-pale:   #FFF8EE;
    --gold:           #FFD580;
    --gold-mid:       #E8B66A;

    --text-primary:   #1A1A1A;
    --text-secondary: #555555;
    --text-muted:     #888888;

    --border:         #E8E0D5;
    --border-light:   #F0EAE0;

    --white:          #FFFFFF;
    --bg-light:       #FAFAF8;

    --green:          #3B6D11;
    --green-light:    #EAF3DE;
    --blue:           #185FA5;
    --blue-light:     #E6F1FB;
    --red:            #A32D2D;
    --red-light:      #FCEBEB;

    --shadow-sm:      0 1px 4px rgba(0,0,0,0.06);
    --shadow-md:      0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg:      0 8px 32px rgba(0,0,0,0.10);

    --radius-sm:      6px;
    --radius-md:      10px;
    --radius-lg:      16px;
    --radius-xl:      24px;
    --radius-full:    50px;

    --font:           'Poppins', sans-serif;
    --transition:     0.2s ease;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--saffron); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--saffron-dark); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

/* ── Container ───────────────────────────────────────────────── */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Top Bar ─────────────────────────────────────────────────── */
.topbar {
    background: var(--saffron-dark);
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    padding: 6px 0;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.topbar-link {
    color: var(--gold);
    font-weight: 500;
}
.topbar-link:hover { color: var(--white); }

/* ── Site Header ─────────────────────────────────────────────── */
.site-header {
    background: var(--white);
    border-bottom: 2px solid var(--saffron-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 20px;
}

/* Logo */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-img {
    width: 70px;
    height: 70px;
    min-width: 70px;
    object-fit: contain;
    display: block;
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--saffron-dark);
    line-height: 1.1;
    letter-spacing: -0.3px;
}
.logo-name em {
    font-style: normal;
    color: var(--saffron);
}
.logo-tagline {
    font-size: 10px;
    color: var(--saffron);
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Desktop Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
    background: var(--saffron-light);
    color: var(--saffron-dark);
}
.nav-link-journey {
    background: var(--saffron);
    color: var(--white) !important;
    margin-left: 8px;
}
.nav-link-journey:hover {
    background: var(--saffron-dark);
    color: var(--white) !important;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
}
.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--saffron-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    z-index: 200;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    overflow-y: auto;
}
.mobile-nav.open { right: 0; }
.mobile-nav-inner { padding: 20px 0; }
.mobile-nav-link {
    display: block;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition);
}
.mobile-nav-link:hover { background: var(--saffron-pale); color: var(--saffron-dark); }
.mobile-nav-journey {
    background: var(--saffron-light);
    color: var(--saffron-dark) !important;
    font-weight: 600;
}
.mobile-nav-divider { height: 8px; background: var(--bg-light); }
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 199;
}
.mobile-overlay.open { display: block; }

/* ── Flash Messages ──────────────────────────────────────────── */
.flash {
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
}
.flash .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.flash-success { background: var(--green-light); color: var(--green); }
.flash-error   { background: var(--red-light);   color: var(--red);   }
.flash-info    { background: var(--blue-light);   color: var(--blue);  }
.flash-close {
    background: none;
    border: none;
    font-size: 20px;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
}

/* ── Main Content ────────────────────────────────────────────── */
.main-content { min-height: 60vh; }

/* ── Hero / Search Section ───────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--saffron-dark) 0%, var(--saffron) 100%);
    padding: 60px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}
.hero-emblem {
    width: 70px;
    height: 84px;
    object-fit: contain;
    margin: 0 auto 16px;
    opacity: 0.9;
    filter: brightness(0) invert(1);
}
.hero-title {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.2;
}
.hero-title em {
    font-style: normal;
    color: var(--gold);
}
.hero-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    font-weight: 300;
}

/* Search Bar */
.search-bar {
    max-width: 600px;
    margin: 0 auto 20px;
    position: relative;
}
.search-bar input {
    width: 100%;
    padding: 16px 130px 16px 20px;
    border-radius: var(--radius-full);
    border: none;
    font-size: 15px;
    outline: none;
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
}
.search-bar button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--saffron-dark);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    transition: background var(--transition);
}
.search-bar button:hover { background: var(--saffron-deeper); }

/* Type Filter Pills below search */
.search-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-pill {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.filter-pill:hover,
.filter-pill.active {
    background: var(--white);
    color: var(--saffron-dark);
    border-color: var(--white);
}

/* ── Section Titles ──────────────────────────────────────────── */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-light); }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
}
.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--saffron-dark);
}
.section-title span {
    color: var(--saffron);
}
.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}
.section-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--saffron);
    white-space: nowrap;
}
.section-more:hover { color: var(--saffron-dark); }

/* ── Type Cards (browse by type) ─────────────────────────────── */
.type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.type-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition);
    display: block;
}
.type-card:hover {
    border-color: var(--saffron);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.type-card-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}
.type-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--saffron-dark);
    margin-bottom: 4px;
}
.type-card-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Listing Cards ───────────────────────────────────────────── */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.listing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.listing-card:hover {
    border-color: var(--gold-mid);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.listing-card-img {
    height: 160px;
    background: var(--saffron-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    overflow: hidden;
    position: relative;
}
.listing-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.listing-card-type {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: capitalize;
}
.type-tirth       { background: #FFF3E0; color: #B86A00; }
.type-dharamshala { background: #E6F1FB; color: #185FA5; }
.type-bhojanshala { background: #EAF3DE; color: #3B6D11; }
.type-upashray    { background: #FFF8EE; color: #7A4500; }

.listing-card-body { padding: 16px; flex: 1; }
.listing-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}
.listing-card-location {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.listing-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
}
.listing-card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 8px;
}
.btn-view {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    background: var(--saffron);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    transition: background var(--transition);
}
.btn-view:hover { background: var(--saffron-dark); color: var(--white); }

.btn-maps {
    padding: 8px 12px;
    background: var(--saffron-light);
    color: var(--saffron-dark);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
}
.btn-maps:hover { background: var(--gold-mid); color: var(--saffron-dark); }

/* ── Journey Page ────────────────────────────────────────────── */
.journey-hero {
    background: var(--saffron-pale);
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
}
.journey-query-bar {
    max-width: 600px;
    margin: 0 auto;
}
.journey-query-bar form {
    display: flex;
    gap: 10px;
}
.journey-query-bar input {
    flex: 1;
    padding: 13px 18px;
    border: 2px solid var(--gold-mid);
    border-radius: var(--radius-full);
    font-size: 15px;
    outline: none;
    transition: border-color var(--transition);
}
.journey-query-bar input:focus { border-color: var(--saffron); }
.journey-query-bar button {
    padding: 13px 26px;
    background: var(--saffron);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
}

.journey-section { padding: 36px 0 0; }
.journey-section:last-child { padding-bottom: 48px; }

.journey-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
}
.journey-section-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.journey-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--saffron-dark);
}
.journey-section-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.journey-list { display: flex; flex-direction: column; gap: 12px; }

.journey-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all var(--transition);
}
.journey-item:hover {
    border-color: var(--gold-mid);
    box-shadow: var(--shadow-sm);
}
.journey-item-info { flex: 1; min-width: 0; }
.journey-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.journey-item-loc {
    font-size: 12px;
    color: var(--text-muted);
}
.journey-item-dist {
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
    white-space: nowrap;
}
.journey-item-actions { display: flex; gap: 6px; }
.btn-sm {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.btn-primary-sm {
    background: var(--saffron);
    color: var(--white);
}
.btn-primary-sm:hover { background: var(--saffron-dark); color: var(--white); }
.btn-outline-sm {
    background: var(--saffron-light);
    color: var(--saffron-dark);
    border: 1px solid var(--gold-mid);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 32px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border);
}
.empty-state-icon { font-size: 32px; margin-bottom: 8px; }
.empty-state-text { font-size: 14px; color: var(--text-muted); }

/* ── Listing Detail Page ──────────────────────────────────────── */
.listing-detail { padding: 40px 0; }
.listing-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.listing-main {}
.listing-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: capitalize;
}
.listing-title {
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 700;
    color: var(--saffron-dark);
    margin-bottom: 8px;
    line-height: 1.2;
}
.listing-location {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.listing-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 28px;
}

/* Contact Box */
.contact-box {
    background: var(--saffron-pale);
    border: 1px solid var(--gold-mid);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: sticky;
    top: 100px;
}
.contact-box-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--saffron-dark);
    margin-bottom: 16px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);

.logo-img {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    object-fit: contain !important;
    border-radius: 50% !important;
    padding: 4px !important;
    background: #FFF3E0 !important;
    border: 1.5px solid #E8B66A !important;
}

img.logo-img {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 50% !important;
    background: #FFF3E0 !important;
    border: 2px solid #E8B66A !important;
}

/* ── JainSetu Banner ──────────────────────────────────────────── */
.jainsetu-banner{background:linear-gradient(135deg,#7A4500,#B86A00);padding:16px 0;}
.jainsetu-banner-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;}
.jainsetu-banner-content{display:flex;align-items:center;gap:12px;}
.jainsetu-banner-logo{width:32px;height:32px;min-width:32px;max-width:32px;object-fit:contain;filter:brightness(0) invert(1);opacity:0.9;}
.jainsetu-banner-text{font-size:14px;font-weight:500;color:white;}
.jainsetu-banner-btn{background:#FFD580;color:#5C3317;padding:10px 22px;border-radius:50px;font-size:13px;font-weight:700;white-space:nowrap;transition:all 0.2s;text-decoration:none;display:inline-block;}
.jainsetu-banner-btn:hover{background:white;color:#7A4500;}

/* ── Site Footer ──────────────────────────────────────────────── */
.site-footer{background:#5C3317;color:rgba(255,255,255,0.8);padding:48px 0 0;}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;padding-bottom:40px;border-bottom:1px solid rgba(255,255,255,0.1);}
.footer-logo-wrap{display:flex;align-items:center;gap:10px;margin-bottom:14px;text-decoration:none;}
.footer-logo-wrap img{width:40px;height:40px;min-width:40px;max-width:40px;object-fit:contain;filter:brightness(0) invert(1);opacity:0.9;}
.footer-logo-name{font-size:18px;font-weight:700;color:white;}
.footer-logo-name em{font-style:normal;color:#FFD580;}
.footer-desc{font-size:13px;line-height:1.7;color:rgba(255,255,255,0.6);}
.footer-heading{font-size:12px;font-weight:700;color:#FFD580;text-transform:uppercase;letter-spacing:0.8px;margin-bottom:16px;}
.footer-links li{margin-bottom:10px;}
.footer-links a{font-size:13px;color:rgba(255,255,255,0.65);transition:color 0.2s;text-decoration:none;}
.footer-links a:hover{color:#FFD580;}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;padding:18px 0;flex-wrap:wrap;gap:10px;}
.footer-bottom p{font-size:12px;color:rgba(255,255,255,0.45);}
.footer-bottom-tag{font-size:11px;color:rgba(255,255,255,0.3);margin-top:2px;}
.footer-bottom-right{display:flex;gap:16px;}
.footer-bottom-link{font-size:12px;color:rgba(255,255,255,0.45);text-decoration:none;}
.footer-bottom-link:hover{color:#FFD580;}

/* ── Breadcrumbs ─────────────────────────────────────────────── */
.breadcrumbs{padding:12px 0;font-size:13px;color:#888;}
.breadcrumbs ol{display:flex;flex-wrap:wrap;gap:6px;align-items:center;list-style:none;}
.breadcrumbs li{display:flex;align-items:center;gap:6px;}
.breadcrumbs li::after{content:'›';color:#DDD;}
.breadcrumbs li:last-child::after{display:none;}
.breadcrumbs a{color:#B86A00;}
.breadcrumbs .active{color:#888;}

/* ── Pagination ──────────────────────────────────────────────── */
.pagination{display:flex;justify-content:center;gap:6px;padding:32px 0;flex-wrap:wrap;}
.page-btn{padding:8px 14px;border:1px solid #E8E0D5;border-radius:8px;font-size:13px;font-weight:500;color:#555;background:white;transition:all 0.2s;text-decoration:none;}
.page-btn:hover,.page-btn.active{background:#B86A00;color:white;border-color:#B86A00;}
.page-dots{padding:8px 6px;color:#AAA;font-size:13px;}

@media(max-width:1024px){.footer-grid{grid-template-columns:1fr 1fr;gap:28px;}}
@media(max-width:768px){
    .footer-grid{grid-template-columns:1fr;gap:24px;}
    .footer-bottom{flex-direction:column;text-align:center;}
    .footer-bottom-right{justify-content:center;}
    .jainsetu-banner-inner{flex-direction:column;text-align:center;}
}
