/* ====== Elegant temple aesthetic â€” global design tokens ====== */
:root {
    --maroon: #7B1113;
    --maroon-dark: #560B0D;
    --gold: #D4AF37;
    --gold-deep: #B8860B;
    --cream: #FBF7EF;
    --ink: #2B2320;
}

html, body {
    background-color: var(--cream);
}

/* Display serif for headings */
h1, h2, h3, h4, .display-font {
    font-family: "Playfair Display", Georgia, serif !important;
}

/* ====== HERO ====== */
.hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(1200px 400px at 80% -10%, rgba(212,175,55,0.35), transparent 60%),
        linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 55%, #8f2a1d 100%);
    box-shadow: 0 20px 50px rgba(86, 11, 13, 0.25);
}
.hero .kicker {
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--gold);
    font-weight: 600;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.12;
    margin: 0.4rem 0 0.85rem;
    max-width: 18ch;
}
@media (max-width: 700px) {
    .hero h1 { font-size: 2.15rem; }
}
.hero p.lead {
    font-size: 1.08rem;
    font-weight: 300;
    opacity: 0.92;
    max-width: 52ch;
}
.hero .gold-divider {
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
    border-radius: 2px;
    margin: 1rem 0 1.5rem;
}

/* ====== PAGE HEADER ====== */
.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}
.page-head .kicker-sm {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-deep);
    font-weight: 700;
}
.page-head h2 {
    font-size: 2.1rem;
    margin: 0.15rem 0 0.4rem;
}
.page-head .page-sub {
    color: #6B5B52;
    font-size: 0.92rem;
    max-width: 62ch;
    margin: 0;
}

/* ====== FILTER CHIPS ====== */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ====== SECTION HEADINGS ====== */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2.75rem 0 1.15rem;
}
.section-head:first-of-type { margin-top: 0; }
.section-head h2 {
    font-size: 1.75rem;
    position: relative;
    padding-left: 0.9rem;
    margin: 0;
}
.section-head h2::before {
    content: "";
    position: absolute;
    left: 0; top: 0.2rem; bottom: 0.2rem;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--gold), var(--maroon));
}
.section-head .sub {
    color: #6B5B52;
    font-size: 0.85rem;
    margin-left: 0.9rem;
}

/* ====== SOFT CARDS ====== */
.soft-card {
    border: 1px solid #EDE3D0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(43,35,32,0.04), 0 8px 24px rgba(43,35,32,0.05);
    transition: transform .18s ease, box-shadow .18s ease;
}
.soft-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(43,35,32,0.06), 0 16px 40px rgba(86,11,13,0.10);
}

.temple-card .district {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold-deep);
    font-weight: 700;
    background: rgba(212,175,55,0.12);
    padding: 2px 10px;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

/* ====== AUTH / PROFILE ====== */
.auth-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}
.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 2.5rem 2.25rem;
    border-radius: 20px;
    border: 1px solid #EDE3D0;
    box-shadow: 0 12px 40px rgba(86,11,13,0.10);
}
.auth-title { margin: 0 0 0.5rem; }
.auth-btn { border-radius: 12px; font-weight: 600; letter-spacing: 0.5px; }

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.profile-avatar {
    width: 84px; height: 84px;
    font-size: 2rem;
    font-family: "Playfair Display", serif;
}

.empty-state {
    border-radius: 20px;
    border: 1px dashed #E0D2B8;
}

/* ====== MAP EMBED ====== */
.map-wrap {
    position: relative;
    overflow: hidden;
}
.map-wrap .map-frame {
    display: block;
    width: 100%;
    height: 260px;
    border: 0;
}
.map-wrap-sm .map-frame {
    height: 180px;
}
.map-flag {
    position: absolute;
    left: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(43,35,32,0.85);
    color: #F3E7C8;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    padding: 4px 10px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

/* Meta rows: address / phone / coordinates */
.meta-line {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.86rem;
    color: #6B5B52;
    margin-top: 0.4rem;
}
.meta-line .mud-icon { flex-shrink: 0; margin-top: 3px; }
.meta-line span { flex: 1; min-width: 0; }
.mono {
    font-family: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
    font-size: 0.8rem;
    letter-spacing: -0.2px;
}

/* Clamp long announcement bodies to three lines on the home page */
.clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Photo gallery cards */
.gallery-card { overflow: hidden; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.gallery-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(58,13,14,0.14); }

/*
 * Every gallery image sits in a fixed-ratio frame and is letterboxed inside it with
 * object-fit: contain. Cover cropped portrait photographs down to a thin centre band,
 * which is what made the images read as "too big" — only a third of the frame was used.
 */
.media-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(160deg, #f4f1ea 0%, #e7e2d6 100%);
}
.media-frame--16x9 { aspect-ratio: 16 / 9; width: 100%; }
.media-frame--fill { position: relative; width: 100%; height: 100%; }

/* Photo strip on the announcements feed */
.photo-strip { flex-wrap: wrap; }
.photo-thumb { cursor: pointer; border-radius: 8px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.photo-thumb:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(58,13,14,0.18); }
.photo-thumb:focus-visible { outline: 2px solid var(--gold, #d4af37); outline-offset: 2px; }

/* Carousel caption overlay */
.carousel-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.78));
    color: #fff;
}

/* ====== FOOTER ====== */
.site-footer {
    background: linear-gradient(180deg, #1c1310, #160d0b);
    color: #EDE3D0;
}
.site-footer a { color: #EDE3D0; opacity: 0.85; }
.site-footer a:hover { color: var(--gold); opacity: 1; }
