/* ==========================================================
   1. THEME & SHARED VARIABLES
   ========================================================== */
:root {
    --theme-red: #450601;
    --theme-gold: #d4af37;
    --theme-dark-red: #8B0000;
    --light-gray: #f8f9fa;
    --border-gray: #dee2e6;
}

.text-theme {
    color: var(--theme-red);
}

/* ==========================================================
   2. STEPPER & NAVIGATION
   ========================================================== */
.stepper .step {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-bottom: 3px solid var(--border-gray);
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.stepper .step.active {
    border-color: var(--theme-red);
    color: var(--theme-red);
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

/* ==========================================================
   3. FORM ELEMENTS (Bootstrap Select & Labels)
   ========================================================== */
.form-label {
    margin-bottom: 0px !important;
}

.bootstrap-select>.dropdown-toggle {
    outline: none !important;
    background-color: #EFF0F2 !important;
    height: 60px !important;
    /* Adjusted from 60px for better vertical balance */
    width: 100% !important;
    line-height: 20px !important;
    font-size: 16px !important;
    border: 2px solid #EFF0F2 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.bootstrap-select .dropdown-toggle .filter-option {
    height: auto !important;
}

.bootstrap-select .dropdown-menu .inner li a {
    white-space: normal !important;
    word-wrap: break-word !important;
}

/* ==========================================================
   4. PHOTO CARDS & IMAGE PREVIEWS
   ========================================================== */
.photo-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    border: 2px dashed var(--border-gray);
    background: var(--light-gray);
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

/* Specific size for profile card while maintaining square ratio */
.profile-card {
    max-height: 200px;
    max-width: 200px;
    margin: 0 auto;
}

.photo-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-card:hover .photo-preview {
    transform: scale(1.05);
}

.photo-input {
    display: none;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    text-align: center;
    font-size: 12px;
    padding: 6px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.remove-photo {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
}

.remove-photo:hover {
    background: #bb2d3b;
    transform: scale(1.1);
}

/* ==========================================================
   5. UI DATEPICKER CUSTOMIZATION
   ========================================================== */
/* ==========================================================
   DATEPICKER RESCUE PROTOCOL (Aggressive Overrides)
   ========================================================== */

/* 1. Fix the main container width and background */
.ui-datepicker {
    width: 17em !important;
    /* Force a standard width */
    padding: .2em .2em 0 !important;
    display: none;
    z-index: 9999 !important;
    background: #ffffff !important;
    border: 1px solid #ccc !important;
}

/* 2. Fix the header area (where the dropdowns live) */
.ui-datepicker .ui-datepicker-header {
    position: relative !important;
    padding: .2em 0 !important;
    background: #f8f9fa !important;
    /* Light grey header */
    border-bottom: 1px solid #ddd !important;
}

/* 3. Rescue the Select Dropdowns from Bootstrap/Xoomcare */
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    width: 45% !important;
    /* Side by side */
    display: inline-block !important;
    height: 30px !important;
    /* Normal height */
    padding: 2px 5px !important;
    font-size: 14px !important;
    border: 1px solid #ccc !important;
    background-color: #fff !important;
    color: #333 !important;
    margin-right: 2% !important;
    border-radius: 4px !important;
    /* Resetting Bootstrap overrides */
    line-height: normal !important;
    appearance: menulist !important;
    -webkit-appearance: menulist !important;
}

/* 4. Fix the calendar table */
.ui-datepicker table {
    width: 100% !important;
    font-size: .9em !important;
    border-collapse: collapse !important;
    margin: 0 0 .4em !important;
}

.ui-datepicker th {
    padding: .7em .3em !important;
    text-align: center !important;
    font-weight: bold !important;
    border: 0 !important;
}

.ui-datepicker td {
    border: 0 !important;
    padding: 1px !important;
}

/* 5. Fix the day buttons */
.ui-datepicker td span,
.ui-datepicker td a {
    display: block !important;
    padding: .2em !important;
    text-align: right !important;
    text-decoration: none !important;
    color: #333 !important;
    background: #eee !important;
    border: 1px solid #ccc !important;
}

.ui-datepicker td a:hover {
    background: #d4af37 !important;
    /* Your theme gold */
    color: #000 !important;
}

/* ==========================================================
   6. CONTACT & TEMPLE CARDS
   ========================================================== */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item {
    background: #f8f8f8;
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s ease;
}

.contact-item:hover {
    background: var(--theme-gold);
}

.contact-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.contact-phone {
    text-decoration: none;
    font-size: 14px;
    color: #000;
    font-weight: 500;
}

.temple-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.temple-image img {
    width: 100%;
    display: block;
}

.temple-location {
    background: var(--theme-gold);
    text-align: center;
    padding: 14px 0;
}

.temple-location a {
    color: #000;
    font-weight: 600;
    text-decoration: none;
}

.temple-location:hover {
    background: #000;
}

.temple-location:hover a {
    color: #fff;
}

/* ==========================================================
   7. UTILITIES & TRANSLATION
   ========================================================== */
.translate-wrapper {
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 9999;
}

.goog-te-gadget {
    font-size: 0 !important;
}

.goog-te-gadget select {
    background: var(--theme-dark-red);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.blink-text {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ==========================================================
   XC PHOTO CARDS ROW
   ========================================================== */

.xc-photo-cards-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.xc-photo-card {
    flex: 1 1 120px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.13);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.xc-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* Image wrapper */
.xc-photo-card__img-wrap {
    position: relative;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
}

.xc-photo-card__img-wrap img {
    width: 100%;
    height: 230px;
    display: block;
    transition: transform 0.35s ease;
}

.xc-photo-card:hover .xc-photo-card__img-wrap img {
    transform: scale(1.06);
}

/* Zoom hint overlay */
.xc-photo-card__zoom-hint {
    position: absolute;
    inset: 0;
    background: rgba(69, 6, 1, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.xc-photo-card__zoom-hint i {
    font-size: 28px;
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.xc-photo-card__img-wrap:hover .xc-photo-card__zoom-hint {
    opacity: 1;
}

/* Info bar */
.xc-photo-card__info {
    padding: 10px 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.xc-photo-card__title {
    font-size: 13px;
    font-weight: 700;
    color: #292929;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xc-photo-card__location {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #450601;
    background: #f9f0e1;
    border-radius: 20px;
    padding: 4px 10px;
    text-decoration: none;
    width: fit-content;
    transition: background 0.2s ease, color 0.2s ease;
}

.xc-photo-card__location i {
    font-size: 11px;
    color: #d4af37;
}

.xc-photo-card__location:hover {
    background: #450601;
    color: #fff;
}

.xc-photo-card__location:hover i {
    color: #d4af37;
}

/* ==========================================================
   LIGHTBOX MODAL
   — appended to <body> via JS so position:fixed always works
   ========================================================== */

/* Prevent background scroll when lightbox is open */
body.xc-no-scroll {
    overflow: hidden !important;
}

.xc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    /* above header, nav, everything */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.93);

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.xc-lightbox.xc-lightbox--open {
    opacity: 1;
    visibility: visible;
}

/* Close button */
.xc-lightbox__close {
    position: fixed;
    /* fixed so it stays top-right regardless of image size */
    top: 18px;
    right: 22px;
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.xc-lightbox__close:hover {
    background: #450601;
    border-color: #450601;
    transform: scale(1.1) rotate(90deg);
}

/* Content — spring scale-in animation */
.xc-lightbox__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transform: scale(0.88);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.xc-lightbox--open .xc-lightbox__content {
    transform: scale(1);
}

/* Full image — never cropped, fits viewport */
.xc-lightbox__content img {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    display: block;
    user-select: none;
}

/* Caption */
.xc-lightbox__caption {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-align: center;
    margin: 0;
    letter-spacing: 0.04em;
}

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

@media (max-width: 991px) {
    .xc-photo-cards-row {
        gap: 10px;
    }
}

@media (max-width: 575px) {
    .xc-photo-cards-row {
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .xc-photo-card {
        flex: 0 0 42vw;
        min-width: 130px;
    }

    .xc-photo-card__title {
        font-size: 11px;
    }

    .xc-photo-card__location {
        font-size: 10px;
        padding: 3px 8px;
    }

    .xc-lightbox__content img {
        max-width: 96vw;
        max-height: 80vh;
    }

    .xc-lightbox__close {
        top: 10px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}

/* mobile menu outside */
.notranslate {
    unicode-bidi: isolate;
}

/* Header Icons */
.header-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 18px;
    text-decoration: none;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid #fff;
}

.header-icon img {
    width: 22px;
}

.header-icon i {
    font-size: 18px;
    color: #fff;
}

.header-icon span {
    font-size: 16px;
    color: #fff;
}

/* Mobile View */
@media (max-width:1199px) {

    .header-icon {
        border: 1px solid #fff;
        height: 25px;
        width: 25px;
        border-radius: 5px;

        display: flex;
        align-items: center;
        /* vertical center */
        justify-content: center;
        /* horizontal center */

        text-align: center;
    }

    .header-icon span {
        display: none;
    }

    .header-icon {
        margin-left: 10px;
    }

    .header-icon img,
    .header-icon i {
        font-size: 14px;
        width: 18px;
    }

}