/* ============================================================
   temple-finder.css — Light Warm Temple Theme v2
   Cream + Saffron + Gold — feels like a real mandir
   tools.dotiam.com
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --bg:        #fdf6ee;
    --surf:      #fff8f2;
    --card:      #ffffff;
    --card2:     #fff3e8;
    --bdr:       #e8d5b8;
    --bdr2:      #d4b896;
    --saffron:   #e85500;
    --saffron2:  #c44400;
    --saffron3:  #ff7722;
    --gold:      #c8860a;
    --gold2:     #a06808;
    --maroon:    #8b0000;
    --cream:     #fff8f0;
    --txt:       #2a1a08;
    --txt2:      #5a3a18;
    --muted:     #9a7850;
    --green:     #2d7a3a;
    --red:       #c0392b;
    --shadow:    rgba(180,100,20,.10);
}

/* ═══════ TOOL HEADER ═══════ */
.tool-header {
    background: linear-gradient(135deg, #7b1a00 0%, #b83a00 40%, #e85500 70%, #f0a030 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.tool-header::before {
    content: '🛕';
    position: absolute;
    font-size: 260px;
    opacity: .07;
    top: -40px; right: -40px;
    line-height: 1;
    animation: floatMandir 6s ease-in-out infinite;
}
.tool-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f0c040, #e85500, #f0c040);
}
@keyframes floatMandir {
    0%,100% { transform: translateY(0) rotate(-3deg); }
    50%      { transform: translateY(-15px) rotate(3deg); }
}
.tool-header-content  { max-width: 860px; margin: 0 auto; position: relative; z-index: 1; }
.tool-icon-large      { font-size: 72px; margin-bottom: 16px; animation: bounce 2s ease-in-out infinite; }
@keyframes bounce     { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.tool-header h1       { font-size: 42px; font-weight: 900; margin-bottom: 10px; text-shadow: 2px 2px 8px rgba(0,0,0,.35); }
.tool-subtitle        { font-size: 17px; opacity: .93; margin-bottom: 18px; line-height: 1.6; }
.tool-meta            { display:flex; justify-content:center; gap:14px; flex-wrap:wrap; font-size:14px; opacity: .9; }
.meta-separator       { opacity: .4; }

/* ═══════ BREADCRUMB ═══════ */
.breadcrumb { padding: 16px 0; font-size: 14px; color: #888; }
.breadcrumb a { color: #888; text-decoration: none; }
.breadcrumb a:hover { color: var(--saffron); }
.breadcrumb .separator { margin: 0 8px; color: #ccc; }
.breadcrumb .current { color: #333; font-weight: 600; }

/* ═══════ TOOL CONTENT ═══════ */
.tool-content {
    background: var(--bg);
    padding: 36px 0 60px; /* TOP PADDING FIX */
}

/* ═══════ MAIN WRAP ═══════ */
.tf-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══════ SEARCH BOX ═══════ */
.tf-search-box {
    background: var(--card);
    border: 1.5px solid var(--bdr);
    border-radius: 20px;
    padding: 28px 28px 22px;
    margin-bottom: 24px;
    box-shadow:
        0 4px 24px var(--shadow),
        0 1px 0 rgba(255,255,255,.8) inset;
    position: relative;
    overflow: hidden;
}
/* Subtle top border accent */
.tf-search-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--maroon), var(--saffron), var(--gold), var(--saffron), var(--maroon));
}

/* ── Labels ── */
.tf-row { margin-bottom: 18px; }
.tf-label {
    font-size: .75rem;
    font-weight: 800;
    color: var(--saffron2);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
    display: block;
}

/* ── State Select ── */
.tf-state-display {
    background: var(--surf);
    border: 1.5px solid var(--bdr);
    border-radius: 10px;
    padding: 10px 14px;
    min-height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    transition: border-color .2s, box-shadow .2s;
}
.tf-state-display:hover {
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px rgba(232,85,0,.08);
}
.tf-state-placeholder { color: var(--muted); font-size: .82rem; }
.tf-state-arrow { margin-left: auto; color: var(--muted); font-size: .8rem; }

.tf-state-tag {
    background: rgba(232,85,0,.1);
    border: 1px solid rgba(232,85,0,.25);
    border-radius: 14px;
    padding: 3px 10px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--saffron2);
    display: flex; align-items: center; gap: 5px;
}
.tf-state-tag-x { cursor: pointer; opacity: .6; font-size: .7rem; }
.tf-state-tag-x:hover { opacity: 1; }

/* Dropdown */
#stateSelectWrap { position: relative; }
.tf-state-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: var(--card);
    border: 1.5px solid var(--bdr);
    border-radius: 12px;
    z-index: 200;
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
    display: none;
    overflow: hidden;
}
.tf-state-dropdown.open { display: block; }

.tf-state-search {
    width: 100%;
    background: var(--surf);
    border: none;
    border-bottom: 1px solid var(--bdr);
    color: var(--txt);
    padding: 10px 14px;
    font-size: .82rem;
    outline: none;
}
.tf-state-search::placeholder { color: var(--muted); }

.tf-state-list {
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--bdr) transparent;
}
.tf-state-option {
    padding: 9px 14px;
    font-size: .82rem;
    color: var(--txt2);
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    transition: background .12s;
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.tf-state-option:hover   { background: rgba(232,85,0,.06); }
.tf-state-option.selected{ background: rgba(232,85,0,.1); color: var(--saffron2); font-weight: 700; }
.tf-all-india { font-weight: 800; color: var(--gold); border-bottom: 1px solid var(--bdr); background: var(--cream); }
.tf-state-check { font-size: .9rem; flex-shrink: 0; color: var(--saffron); }

/* ── Collection Tabs ── */
.tf-col-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.tf-col-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--bdr);
    background: var(--surf);
    color: var(--txt2);
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
    -webkit-tap-highlight-color: transparent;
}
.tf-col-btn:hover {
    border-color: var(--saffron);
    color: var(--saffron2);
    background: rgba(232,85,0,.05);
}
.tf-col-btn.active {
    background: var(--saffron);
    border-color: var(--saffron);
    color: #fff;
    box-shadow: 0 3px 12px rgba(232,85,0,.3);
}

/* ── Text Search ── */
.tf-search-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.tf-search-input-wrap { flex: 1; position: relative; }
.tf-search-icon {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    pointer-events: none;
    opacity: .5;
}
#tfSearchInput {
    width: 100%;
    background: var(--surf);
    border: 1.5px solid var(--bdr);
    border-radius: 10px;
    color: var(--txt);
    padding: 11px 14px 11px 38px;
    font-size: .88rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
#tfSearchInput:focus {
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px rgba(232,85,0,.1);
}
#tfSearchInput::placeholder { color: var(--muted); }

.tf-search-btn {
    background: linear-gradient(135deg, var(--saffron3) 0%, var(--saffron2) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px 24px;
    font-size: .88rem;
    font-weight: 800;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(232,85,0,.25);
    -webkit-tap-highlight-color: transparent;
}
.tf-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(232,85,0,.35);
}
.tf-search-btn:active { transform: translateY(0); }

/* ── Popular ── */
.tf-popular {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.tf-popular-label {
    font-size: .7rem;
    color: var(--muted);
    font-weight: 700;
    flex-shrink: 0;
}
.tf-popular-chip {
    padding: 4px 12px;
    border-radius: 14px;
    border: 1px solid var(--bdr);
    background: var(--cream);
    color: var(--gold);
    font-size: .68rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    -webkit-tap-highlight-color: transparent;
}
.tf-popular-chip:hover {
    background: rgba(200,134,10,.1);
    border-color: var(--gold);
    color: var(--gold2);
}

/* ═══════ RESULTS ═══════ */
.tf-results-area { margin-top: 4px; }

/* Loading */
.tf-loading {
    text-align: center;
    padding: 70px 20px;
    color: var(--muted);
    background: var(--card);
    border: 1.5px solid var(--bdr);
    border-radius: 16px;
}
.tf-loading-mandir {
    font-size: 56px;
    animation: pulse 1.2s ease-in-out infinite;
    margin-bottom: 16px;
}
@keyframes pulse { 0%,100%{transform:scale(1);opacity:.7} 50%{transform:scale(1.1);opacity:1} }
.tf-loading-text { font-size: .95rem; margin-bottom: 14px; color: var(--saffron2); font-weight: 700; }
.tf-loading-dots { display: flex; justify-content: center; gap: 6px; }
.tf-loading-dots span {
    width: 9px; height: 9px;
    background: var(--saffron);
    border-radius: 50%;
    animation: dotBounce 1.2s ease-in-out infinite;
}
.tf-loading-dots span:nth-child(2) { animation-delay: .2s; }
.tf-loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dotBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* Empty state */
.tf-empty-state {
    text-align: center;
    padding: 70px 20px;
    color: var(--muted);
    background: var(--card);
    border: 1.5px dashed var(--bdr);
    border-radius: 16px;
}
.tf-empty-icon  { font-size: 64px; margin-bottom: 16px; opacity: .5; }
.tf-empty-title { font-size: 1.1rem; font-weight: 800; color: var(--gold); margin-bottom: 8px; }
.tf-empty-sub   { font-size: .84rem; color: var(--muted); }

/* Results header */
.tf-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0 14px;
    border-bottom: 2px solid var(--bdr);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tf-results-meta { display: flex; align-items: center; gap: 12px; }
.tf-results-icon { font-size: 2rem; }
.tf-results-title { font-size: 1rem; font-weight: 800; color: var(--saffron2); }
.tf-results-sub   { font-size: .78rem; color: var(--muted); margin-top: 2px; }

.tf-new-search-btn {
    background: var(--surf);
    border: 1.5px solid var(--bdr);
    border-radius: 8px;
    color: var(--saffron2);
    padding: 7px 14px;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
}
.tf-new-search-btn:hover {
    border-color: var(--saffron);
    background: rgba(232,85,0,.06);
}

/* Results body */
.tf-results-body {
    background: var(--card);
    border: 1.5px solid var(--bdr);
    border-radius: 16px;
    padding: 28px;
    line-height: 1.9;
    color: var(--txt2);
    font-size: .9rem;
    box-shadow: 0 2px 16px var(--shadow);
}
.tf-results-body h2.tf-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gold2);
    margin: 22px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid var(--bdr);
    display: flex; align-items: center; gap: 8px;
}
.tf-results-body h2.tf-section-title::before { content: '🛕'; }
.tf-results-body h3.tf-temple-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--saffron2);
    margin: 22px 0 8px;
    display: flex; align-items: center; gap: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--bdr);
}
.tf-results-body strong { color: var(--gold2); }
.tf-results-body .tf-para {
    margin-bottom: 12px;
    color: var(--txt2);
    line-height: 1.85;
}
.tf-results-body .tf-list { padding-left: 20px; margin: 8px 0; }
.tf-results-body .tf-list li {
    margin-bottom: 6px;
    color: var(--txt2);
}

/* Temple card */
.tf-temple-card {
    background: var(--cream);
    border: 1.5px solid var(--bdr);
    border-left: 4px solid var(--saffron);
    border-radius: 12px;
    padding: 16px 18px;
    margin: 14px 0;
    box-shadow: 0 2px 8px var(--shadow);
}

/* Disclaimer */
.tf-disclaimer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 12px 16px;
    background: rgba(200,134,10,.07);
    border: 1px solid rgba(200,134,10,.2);
    border-radius: 10px;
    font-size: .74rem;
    color: var(--muted);
}
.tf-disclaimer a { color: var(--gold); text-decoration: none; margin-left: 4px; }
.tf-disclaimer a:hover { text-decoration: underline; }

/* Error */
.tf-error {
    text-align: center;
    padding: 40px;
    color: var(--red);
    font-size: .9rem;
    background: rgba(192,57,43,.06);
    border: 1.5px solid rgba(192,57,43,.2);
    border-radius: 12px;
}

/* ═══════ SEO CONTENT ═══════ */
.seo-content { padding: 60px 20px; background: #fff; }
.content-article { max-width: 900px; margin: 0 auto; line-height: 1.8; }
.content-article h2 { font-size: 26px; font-weight: 800; margin: 36px 0 14px; color: #222; }
.content-article h2:first-child { margin-top: 0; }
.content-article h3 { font-size: 20px; font-weight: 700; margin: 24px 0 10px; color: #333; }
.content-article p  { margin-bottom: 16px; color: #555; font-size: 15px; }
.content-article strong { color: #222; }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 599px) {
    .tool-header h1  { font-size: 26px; }
    .tool-subtitle   { font-size: 14px; }
    .tool-icon-large { font-size: 52px; }
    .tf-search-box   { padding: 18px 14px; }
    .tf-search-btn   { padding: 11px 14px; font-size: .8rem; }
    .tf-col-btn      { padding: 5px 10px; font-size: .66rem; }
    .tf-results-body { padding: 16px; font-size: .84rem; }
    .tf-wrap         { padding: 0 12px; }
    .tool-content    { padding: 20px 0 40px; }
    .tf-search-row   { flex-direction: column; }
    .tf-search-btn   { width: 100%; }
}
@media (min-width: 600px) and (max-width: 1023px) {
    .tf-wrap { padding: 0 20px; }
}