/*==========================
Temple Card homw page
===========================*/
/* ==================================
   TEMPLE HOME CARDS
================================== */

/* Card grid */
.tbm-temple-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}


/* Main card */
.tbm-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.tbm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}


/* Full clickable area */
.tbm-card a,
.tbm-card-link {
    display: block;
    height: 100%;
    color: #222222;
    text-decoration: none !important;
}


/* Temple image */
.tbm-image {
    width: 100%;
    height: 145px;
    overflow: hidden;
    background: #eeeeee;
}

.tbm-image img {
    display: block;
    width: 100%;
    height: 145px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tbm-card:hover .tbm-image img {
    transform: scale(1.06);
}


/* Card content */
.tbm-content {
    padding: 13px 14px 15px;
}


/* Temple name */
.tbm-title {
    margin: 0 0 7px;
    color: #222222;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;

    /* Maximum 2 lines */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}


/* Temple description */
.tbm-description {
    margin: 0 0 14px;
    color: #777777;
    font-size: 12px;
    line-height: 1.5;

    /* Keep description to 2 lines */
    min-height: 36px;
    overflow: hidden;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


/* View details button */
.tbm-btn {
    display: block;
    width: 100%;
    padding: 10px 8px;

    color: #ffffff !important;
    background: #f15501;

    border-radius: 4px;

    text-align: center;
    text-transform: uppercase;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: 0.3px;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.tbm-card:hover .tbm-btn {
    color: #ffffff !important;
    background: #d94c00;
}


/* ==================================
   TABLET
================================== */

@media screen and (max-width: 1100px) {

    .tbm-temple-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* ==================================
   SMALL TABLET
================================== */

@media screen and (max-width: 768px) {

    .tbm-temple-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .tbm-image,
    .tbm-image img {
        height: 180px;
    }

}


/* ==================================
   MOBILE
================================== */

@media screen and (max-width: 480px) {

    .tbm-temple-grid {
        grid-template-columns: 1fr;
    }

    .tbm-image,
    .tbm-image img {
        height: 210px;
    }

    .tbm-title {
        font-size: 18px;
    }

}

/* =====================================================
   TEMPLE BOOKING MANAGER - TEMPLE DETAILS PAGE
===================================================== */

/* Main page */
.tbm-booking-page {
    width: 100%;
    background: #f5f7fb;
    color: #263747;
    padding-bottom: 60px;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

.tbm-booking-page *,
.tbm-booking-page *::before,
.tbm-booking-page *::after {
    box-sizing: border-box;
}


/* =====================================================
   HERO SECTION
===================================================== */

.tbm-hero {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #102c3d;
}

.tbm-hero > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark overlay */
.tbm-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 55px 7%;
    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.82) 0%,
            rgba(0, 0, 0, 0.40) 45%,
            rgba(0, 0, 0, 0.08) 100%
        );
}

.tbm-overlay > div {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.tbm-overlay h1 {
    margin: 0;
    color: #ffffff;
    font-size: 46px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.65);
}

.tbm-overlay p {
    color: #ffffff !important;
    font-size: 19px !important;
    line-height: 1.6;
    margin: 12px 0 0 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}


/* =====================================================
   MAIN CONTENT
===================================================== */

.tbm-container {
    width: 92%;
    max-width: 1200px;
    margin: 45px auto 0;
}


/* =====================================================
   COMMON CARD
===================================================== */

.tbm-card {
    width: 100%;
    margin-bottom: 25px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e6eaf0;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(15, 61, 85, 0.08);
}

.tbm-card h2 {
    display: flex;
    align-items: center;
    margin: 0 0 20px;
    padding-bottom: 14px;
    color: #0f3d55;
    font-size: 26px;
    line-height: 1.3;
    font-weight: 700;
    border-bottom: 2px solid #f1f3f6;
}

.tbm-card h3 {
    margin: 0 0 8px;
    color: #263747;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
}

.tbm-card p {
    margin: 0 0 14px;
    color: #52616f;
    font-size: 16px;
    line-height: 1.8;
}

.tbm-card p:last-child {
    margin-bottom: 0;
}

.tbm-card strong {
    color: #243746;
}

.tbm-card a {
    color: #f15501;
    font-weight: 600;
    text-decoration: none;
}

.tbm-card a:hover {
    color: #c84200;
    text-decoration: underline;
}


/* =====================================================
   BASIC INFORMATION
===================================================== */

.tbm-card:first-child {
    border-top: 4px solid #f15501;
}

.tbm-card:first-child p {
    max-width: 100%;
}


/* =====================================================
   LOCATION
===================================================== */

.tbm-card:nth-child(2) p {
    white-space: normal;
}

.tbm-card:nth-child(2) a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 17px;
    color: #ffffff;
    background: #0f3d55;
    border-radius: 7px;
    transition: 0.25s ease;
}

.tbm-card:nth-child(2) a:hover {
    color: #ffffff;
    background: #092d40;
    text-decoration: none;
    transform: translateY(-2px);
}


/* =====================================================
   TEMPLE TIMINGS
===================================================== */

.tbm-card:nth-child(3) p {
    display: inline-block;
    margin: 0;
    padding: 13px 22px;
    color: #0f3d55;
    background: #eef7fa;
    border-left: 4px solid #f15501;
    border-radius: 6px;
}


/* =====================================================
   POOJA CARDS
===================================================== */

.tbm-pooja {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 25px;
    padding: 22px;
    margin-bottom: 15px;
    background: #fafbfd;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.tbm-pooja:last-child {
    margin-bottom: 0;
}

.tbm-pooja:hover {
    transform: translateY(-3px);
    border-color: #f15501;
    box-shadow: 0 8px 22px rgba(15, 61, 85, 0.10);
}

.tbm-pooja h3 {
    margin: 0 0 6px;
    color: #0f3d55;
    font-size: 19px;
}

.tbm-pooja small {
    display: block;
    color: #6b7785;
    font-size: 14px;
}

.tbm-pooja > div:nth-child(2) strong {
    display: inline-block;
    min-width: 90px;
    color: #f15501;
    font-size: 20px;
    text-align: center;
}

.tbm-book-btn {
    min-width: 125px;
    padding: 13px 22px;
    color: #ffffff;
    background: #f15501;
    border: 0;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.tbm-book-btn:hover {
    background: #cf4600;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(241, 85, 1, 0.25);
}

.tbm-book-btn:focus {
    outline: 3px solid rgba(241, 85, 1, 0.20);
    outline-offset: 2px;
}


/* =====================================================
   FESTIVAL
===================================================== */

.tbm-card h2 + h3 {
    color: #0f3d55;
}


/* =====================================================
   DONATION
===================================================== */

.tbm-card p strong {
    font-weight: 700;
}

.tbm-card p:has(strong) {
    margin-bottom: 10px;
}


/* =====================================================
   GALLERY
===================================================== */

/* Overrides the inline gallery styles */
.tbm-card > div[style*="display:flex"] {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px !important;
}

.tbm-card > div[style*="display:flex"] img {
    display: block;
    width: 100% !important;
    height: 210px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    border: 1px solid #e5e8ed;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.tbm-card > div[style*="display:flex"] img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(15, 61, 85, 0.18);
}


/* =====================================================
   VISITOR INFORMATION
===================================================== */

.tbm-card ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tbm-card ul li {
    position: relative;
    padding: 14px 16px 14px 42px;
    color: #52616f;
    background: #fafbfd;
    border: 1px solid #e8ebef;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
}

.tbm-card ul li::before {
    content: "✓";
    position: absolute;
    top: 13px;
    left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    color: #ffffff;
    background: #0f3d55;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}


/* =====================================================
   CONTACT
===================================================== */

.tbm-card:last-child p {
    padding: 13px 17px;
    background: #fafbfd;
    border-left: 4px solid #0f3d55;
    border-radius: 5px;
}

.tbm-card:last-child p strong {
    display: inline-block;
    min-width: 80px;
}


/* =====================================================
   TABLET
===================================================== */

@media screen and (max-width: 1024px) {

    .tbm-hero {
        height: 430px;
    }

    .tbm-overlay h1 {
        font-size: 38px;
    }

    .tbm-card > div[style*="display:flex"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media screen and (max-width: 767px) {

    .tbm-booking-page {
        padding-bottom: 35px;
    }

    .tbm-hero {
        height: 360px;
    }

    .tbm-overlay {
        align-items: flex-end;
        padding: 35px 22px;
    }

    .tbm-overlay h1 {
        font-size: 30px;
    }

    .tbm-overlay p {
        font-size: 16px !important;
    }

    .tbm-container {
        width: 92%;
        margin-top: 25px;
    }

    .tbm-card {
        padding: 21px 17px;
        margin-bottom: 17px;
        border-radius: 12px;
    }

    .tbm-card h2 {
        margin-bottom: 16px;
        padding-bottom: 11px;
        font-size: 22px;
    }

    .tbm-card h3 {
        font-size: 18px;
    }

    .tbm-card p {
        font-size: 15px;
        line-height: 1.7;
    }

    /* Pooja mobile */
    .tbm-pooja {
        grid-template-columns: 1fr;
        gap: 13px;
        padding: 18px;
    }

    .tbm-pooja > div:nth-child(2) strong {
        min-width: auto;
        text-align: left;
    }

    .tbm-book-btn {
        width: 100%;
    }

    /* Gallery mobile */
    .tbm-card > div[style*="display:flex"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px !important;
    }

    .tbm-card > div[style*="display:flex"] img {
        height: 150px !important;
    }

    /* Visitor information mobile */
    .tbm-card ul {
        grid-template-columns: 1fr;
    }

    .tbm-card:last-child p strong {
        min-width: 65px;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media screen and (max-width: 480px) {

    .tbm-hero {
        height: 310px;
    }

    .tbm-overlay h1 {
        font-size: 26px;
    }

    .tbm-overlay p {
        font-size: 14px !important;
    }

    .tbm-card > div[style*="display:flex"] {
        grid-template-columns: 1fr;
    }

    .tbm-card > div[style*="display:flex"] img {
        height: 220px !important;
    }

}