/* ═══ TEMPLE TIMINGS PAGE ═══════════════════════════════════ */
:root {
    --tt-bg: #FBF6EE;
    --tt-surface: #FFFFFF;
    --tt-text: #3B2108;
    --tt-muted: #7A6450;
    --tt-saffron: #E8610A;
    --tt-gold: #C9860A;
    --tt-gold-lt: #F5C842;
    --tt-cream: #FBF6EE;
    --tt-cream-dk: #F0E8D8;
    --tt-brown: #3B2108;
    --tt-brown-md: #6B3D10;
    --tt-brown-lt: #9A6030;
    --tt-border: #E2D4BE;
    --tt-red: #B91C1C;
    --tt-green: #166534;
    --tt-shadow: 0 4px 24px rgba(59, 33, 8, .10);
    --tt-radius: 14px;
    --tt-radius-sm: 10px;
}

.tt-page {
    font-family: 'Poppins', sans-serif;
    background: var(--tt-bg);
    min-height: 100vh;
}

/* ===== HERO ===== */
.tt-hero {
    margin-top: 1rem;
    border-radius: var(--tt-radius);
    background: linear-gradient(135deg, var(--tt-brown) 0%, #5C2D0A 60%, #8B3E10 100%);
    border: 1px solid rgba(245, 200, 66, 0.15);
    color: #FFF8EC;
    position: relative;
    overflow: hidden;
}

.tt-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.tt-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.tt-title {
    font-family: 'Tiro Devanagari Sanskrit', serif;
    font-size: clamp(1.6rem, 4vw, 2.35rem);
    font-weight: 700;
    margin-top: 0.4rem;
    line-height: 1.2;
}

.tt-subtitle {
    margin-top: 0.6rem;
    color: rgba(255, 248, 236, 0.85);
    font-size: 0.9rem;
    line-height: 1.5;
}

.tt-tags {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tt-pill {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    color: rgba(255, 248, 236, 0.9);
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s;
}

.tt-pill:hover {
    background: rgba(255, 255, 255, 0.14);
}

.tt-hero-image {
    align-self: stretch;
    display: flex;
}

.tt-hero-image-fit {
    height: 100%;
    min-height: 200px;
    max-height: 320px;
}

.tt-hero-image-fit img,
.tt-hero-image-fit > div {
    object-fit: cover;
}

.tt-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .tt-hero-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        text-align: center;
    }

    .tt-hero-image {
        order: -1;
    }

    .tt-hero-image img {
        max-width: 160px;
    }

    .tt-tags {
        justify-content: center;
    }
}

/* ===== SECTION CARD ===== */
.section-card {
    background: var(--tt-surface);
    border-radius: var(--tt-radius);
    border: 1.5px solid var(--tt-border);
    box-shadow: var(--tt-shadow);
    overflow: hidden;
    animation: ttFadeUp 0.4s ease both;
}

@keyframes ttFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

.section-card:nth-child(2)  { animation-delay: .05s }
.section-card:nth-child(3)  { animation-delay: .10s }
.section-card:nth-child(4)  { animation-delay: .15s }
.section-card:nth-child(5)  { animation-delay: .20s }
.section-card:nth-child(6)  { animation-delay: .25s }
.section-card:nth-child(7)  { animation-delay: .30s }

/* ===== CARD HEADER ===== */
.card-header {
    padding: 16px 20px 14px;
    border-bottom: 1.5px solid var(--tt-border);
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #FBF0E2 0%, #fff 100%);
}

.card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--tt-saffron), var(--tt-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(232, 97, 10, 0.3);
}

.card-title {
    font-family: 'Tiro Devanagari Sanskrit', 'Trio', 'Poppins', serif;
    font-size: 18px;
    color: var(--tt-brown);
    font-weight: 600;
}

.card-subtitle {
    font-size: 12px;
    color: var(--tt-muted);
    margin-top: 1px;
}

.card-body {
    padding: 18px 20px;
}

/* ===== DECORATIVE DIVIDER ===== */
.decorative-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--tt-saffron), transparent);
    margin: 1.5rem 0;
}

/* ===== TABLES ===== */
.timings-table {
    width: 100%;
    border-collapse: separate;   /* important for rounded corners */
    border-spacing: 0;
    border: 2px solid #e5e7eb;   /* border-gray-200 */
    border-radius: 0.75rem;      /* rounded-xl */
    background: #ffffff;         /* bg-white */
    overflow: hidden;
}

.timings-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--tt-muted);
    padding: 8px 12px;
    background: var(--tt-cream-dk);
    border-bottom: 1.5px solid var(--tt-border);
}

.timings-table td {
    padding: 11px 12px;
    font-size: 14px;
    border-bottom: 1px solid var(--tt-cream-dk);
    vertical-align: middle;
}

.timings-table tr:last-child td {
    border-bottom: none;
}

.timings-table tr:hover td {
    background: var(--tt-cream);
}

.timing-name {
    font-weight: 600;
    color: var(--tt-brown);
}

.timing-time {
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    color: var(--tt-brown-lt);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.timing-note {
    font-size: 12px;
    color: var(--tt-muted);
    margin-top: 2px;
}

/* ===== TAGS ===== */
.tag {
    display: inline-block;
    border-radius: 20px;
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.tag-open    { background: #DCFCE7; color: var(--tt-green); }
.tag-closed  { background: #FEE2E2; color: var(--tt-red); }
.tag-free    { background: #DCFCE7; color: var(--tt-green); }
.tag-paid    { background: #EFF6FF; color: #1D4ED8; }
.tag-special { background: #FEF3C7; color: #92400E; }

/* ===== PUJA ROWS ===== */
.puja-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: var(--tt-cream);
    border: 1px solid var(--tt-border);
    border-radius: var(--tt-radius-sm);
    transition: box-shadow 0.2s ease;
}

.puja-row:hover {
    box-shadow: 0 4px 12px rgba(232, 97, 10, 0.08);
}

.puja-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--tt-brown);
}

.puja-time {
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    color: var(--tt-gold);
    font-weight: 700;
}

.puja-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--tt-saffron);
}

/* ===== SEVA CARDS ===== */
.seva-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

.seva-card {
    border: 1.5px solid var(--tt-border);
    border-radius: var(--tt-radius-sm);
    padding: 12px 14px;
    background: var(--tt-cream);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.seva-card:hover {
    box-shadow: 0 4px 16px rgba(232, 97, 10, 0.12);
    border-color: #F5C84266;
}

.seva-card-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--tt-brown);
    margin-bottom: 4px;
}

.seva-card-time {
    font-size: 12px;
    color: var(--tt-muted);
}

.seva-card-fee {
    font-size: 15px;
    font-weight: 700;
    color: var(--tt-saffron);
    margin-top: 6px;
}

.seva-card-note {
    font-size: 11px;
    color: var(--tt-muted);
    margin-top: 3px;
    line-height: 1.5;
}

/* ===== FESTIVAL CARDS ===== */
.fest-card {
    border-radius: var(--tt-radius-sm);
    padding: 14px;
    background: linear-gradient(135deg, #FFF7ED, #FFFBEB);
    border: 1.5px solid #FDE68A;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.fest-card:hover {
    box-shadow: 0 4px 16px rgba(245, 200, 66, 0.2);
}

.fest-card::before {
    content: attr(data-emoji);
    position: absolute;
    right: 10px;
    top: 8px;
    font-size: 28px;
    opacity: 0.25;
}

.fest-month {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--tt-gold);
}

.fest-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--tt-brown);
    margin-top: 3px;
}

.fest-note {
    font-size: 12px;
    color: var(--tt-muted);
    margin-top: 3px;
    line-height: 1.5;
}

.fest-special {
    font-size: 11px;
    color: #92400E;
    background: #FEF3C7;
    border-radius: 4px;
    padding: 2px 7px;
    display: inline-block;
    margin-top: 5px;
    font-weight: 600;
}

/* ===== PRASADAM CARDS ===== */
.prasadam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

.prasadam-card {
    border: 1.5px solid var(--tt-border);
    border-radius: var(--tt-radius-sm);
    padding: 14px;
    background: var(--tt-cream);
    transition: box-shadow 0.2s;
}

.prasadam-card:hover {
    box-shadow: 0 4px 16px rgba(232, 97, 10, 0.1);
}

.prasadam-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--tt-brown);
}

.prasadam-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--tt-saffron);
    margin-top: 4px;
}

.prasadam-desc {
    font-size: 12px;
    color: var(--tt-muted);
    margin-top: 4px;
    line-height: 1.5;
}

/* ===== ONLINE BOOKING ===== */
.booking-portal-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.booking-portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--tt-saffron), var(--tt-gold));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    padding: 9px 18px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(232, 97, 10, 0.25);
}

.booking-portal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(232, 97, 10, 0.35);
}

/* ===== BOOKING STEPS ===== */

.steps-list{
    display:flex;
    flex-direction:column;
    gap:0;
    margin-top:6px;
}

.step-row{
    display:flex;
    gap:14px;
    position:relative;
}

.step-row:not(:last-child)::after{
    content:'';
    position:absolute;
    left:17px;
    top:38px;
    bottom:0;
    width:2px;
    background:linear-gradient(var(--tt-border),var(--tt-cream));
}

.step-num{
    width:34px;
    height:34px;
    border-radius:50%;
    flex-shrink:0;
    background:linear-gradient(135deg,var(--tt-saffron),var(--tt-gold));
    color:#fff;
    font-size:14px;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 2px 8px rgba(232,97,10,0.3);
    margin-top:2px;
}

.step-content{
    padding:2px 0 20px;
}

.step-title{
    font-weight:700;
    font-size:14px;
    color:var(--tt-brown);
}

.step-desc{
    font-size:13px;
    color:var(--tt-muted);
    margin-top:2px;
    line-height:1.5;
}


/* ===== RESPONSIVE ===== */

@media (max-width:640px){

    .booking-portal-row{
        flex-direction:column;
        align-items:flex-start;
        gap:6px;
    }

    .booking-portal-btn{
        width:100%;
        justify-content:center;
    }

    .step-row{
        gap:10px;
    }

}

/* ===== INFO NOTE ===== */
.info-note {
    font-size: 12px;
    color: var(--tt-muted);
    background: var(--tt-cream);
    border-radius: 8px;
    margin-top : 12px;
    padding: 8px 12px;
    border: 1px solid var(--tt-border);
    line-height: 1.6;
}

/* ===== MOBILE NAV ===== */
.tt-mobile-nav {
    margin-top: 1rem;
    border: 1px solid var(--tt-border);
    border-radius: var(--tt-radius-sm);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.6rem 0.75rem;
    position: sticky;
    top: 60px;
    z-index: 40;
    box-shadow: var(--tt-shadow);
}

.tt-mobile-nav-link {
    transition: all 0.2s ease;
    text-decoration: none;
}

.tt-mobile-nav-link.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--tt-saffron), var(--tt-gold));
    border-color: transparent !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .seva-grid, .prasadam-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .tt-hero { padding: 1.25rem 1rem; margin-top: 0.75rem; }
    .tt-hero-grid { grid-template-columns: 1fr; gap: 1rem; }
    .tt-hero-image { justify-content: center; height: auto; align-items: center; }
    .tt-hero-image img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; }
    .tt-title { font-size: 1.4rem; }
    .card-body { padding: 14px; }
    .card-header { padding: 14px; }
    /* On mobile hide Status + Notes columns, keep Session + Timings */
    .timings-table th:nth-child(3),
    .timings-table td:nth-child(3),
    .timings-table th:nth-child(4),
    .timings-table td:nth-child(4) { display: none; }
    .tt-mobile-nav { padding: 0.5rem 0.6rem; }
    table { font-size: 0.8rem; }
    table th, table td { padding: 0.6rem !important; }
}

/* ===== SCROLL MARGINS ===== */
#timings, #arati_timings,
#darshan_tickets, #online_booking,
#pujas_sevas, #major_festivals, #prasadam, #faqs {
    scroll-margin-top: 70px;
}

@media (min-width: 1024px) {
    #timings, #arati_timings,
    #darshan_tickets, #online_booking,
    #pujas_sevas, #major_festivals, #prasadam, #faqs {
        scroll-margin-top: 80px;
    }
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #fef3c7;
}

.faq-answer {
    display: none;
}

.faq-answer:not(.hidden) {
    display: block;
}

.faq-icon {
    transition: transform 0.3s ease;
}

/* ═══ Accommodation booking modal ═══ */
.accommodation-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    justify-content: center;
    align-items: flex-end;
}

.accommodation-modal-backdrop.show {
    display: flex !important;
}

@media (min-width: 768px) {
    .accommodation-modal-backdrop {
        align-items: center;
    }
}

.accommodation-modal-backdrop .accommodation-modal-content {
    background: #fff;
    width: 100%;
    max-width: 520px;
    height: 92vh;
    display: flex;
    flex-direction: column;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .accommodation-modal-backdrop .accommodation-modal-content {
        height: auto;
        max-height: 90vh;
        border-radius: 1rem;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }
}

.accommodation-modal-backdrop .accommodation-modal-header {
    padding: 1.25rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.accommodation-modal-backdrop .accommodation-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.accommodation-modal-backdrop .accommodation-modal-body label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.accommodation-modal-backdrop .accommodation-field-wrap {
    margin-bottom: 1rem;
}

.accommodation-modal-backdrop .accommodation-field {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 0;
    font-family: inherit;
}

.accommodation-modal-backdrop .accommodation-field:focus {
    outline: none;
    border-color: #7B341E;
    box-shadow: 0 0 0 2px rgba(123, 52, 30, 0.2);
}

.accommodation-modal-backdrop .accommodation-field-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.accommodation-modal-backdrop .accommodation-field-msg {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: block;
}

.accommodation-modal-backdrop .accommodation-field-msg.hidden {
    display: none !important;
}

.accommodation-modal-backdrop .price-box {
    background: linear-gradient(90deg, #FFF7ED, #FFEDD5);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(123, 52, 30, 0.25);
}

.accommodation-modal-backdrop .price-box div {
    font-size: 1.75rem;
    font-weight: bold;
    color: #7B341E;
}

.accommodation-modal-backdrop .price-box p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.accommodation-modal-backdrop .accommodation-modal-footer {
    padding: 1rem;
    background: #fff;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.accommodation-modal-backdrop .accommodation-modal-footer .cta-button {
    width: 100%;
    padding: 1rem;
    background: #7B341E;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 12px;
    border: none;
    cursor: pointer;
}