﻿/**
*    Custom CSS
*    ==========================
*    Author : Tathagata Basu
**/

/* General */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Map and List. Keep chapel list same hieght as map */
.map-and-list {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0; /* allows children with overflow to scroll properly */
}

/* Google Map */
form#searchFilter {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#searchFilter {

}

#searchFilter div .tbSmall {
    width:100px;
}
#searchFilter div .ddlSmall {
    width:221px;
}
#map {
    height: 100%;
    width: 100%;
}

.container-fluid {
    display: flex;
    flex-direction: column;
    height: 100%;
}


.gm-style-iw {
   width: 300px !important;
   top: 15px !important;
   left: 115px !important;
   background-color: #fff;
   box-shadow: 0 1px 6px rgba(178, 178, 178, 0.6);
   border: 1px solid rgba(72, 181, 233, 0.6);
   border-radius: 10px 10px 10px 10px; // apply 10px to the bottom corners of the infowindow
}
.googleInfoBox .infoBoxTitle {
   font-family: 'Open Sans Condensed', sans-serif;
   font-size: 16px;
   font-weight: 400;
   padding: 2px 10px;
   background-color: #48b5e9;
   color: white;
   margin: 0px ;
   float:left;
   border-radius: 9px 9px 0 0; /* In accordance with the rounding of the default infowindow corners. */
}
.googleInfoBox .infoBoxContent {
    margin:1px;
}
.googleInfoBox .infoBoxContent p {
    box-shadow: 0px 2px 4px #ececec;
}
.googleInfoBox .infoBoxContent .fa {
    width: 20px;
    height: 20px;
    color: #48b5e9;
    text-align: center;
    font-size: 15px;
    vertical-align: middle;
    border-radius: 13px;
    padding: 2px;
    box-shadow: 2px 2px 2px #dcdcdc;
    margin: 0px 10px 5px 0px;
}

/*.iw-bottom-gradient {
    position: absolute;
    width: 326px;
    height: 25px;
    bottom: 10px;
    right: 16px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
    background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    background: -moz-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    background: -ms-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
}*/
.txt_right {
        font-weight:bold;
    }

/* DESKTOP ONLY */
@media all and (min-width: 992px) {
    /* Make the page a full-height flex column */
    html, body {
        height: 100%;
    }

    .container-fluid {
        min-height: 100vh; /* full viewport height */
        display: flex;
        flex-direction: column;
    }

    /* Header/controls sit naturally at top, don't grow */
    form#searchFilter {
        flex: 0 0 auto;
    }

    /* Map area fills the remaining space between header and footer */
    #mapContainer {
        flex: 1 1 auto; /* grow to fill leftover space */
        min-height: 400px; /* safety floor */
    }

    /* Map fills its container */
    #map {
        height: 100%;
        width: 100%;
        display: block;
    }

    .txt_right {
        text-align: right;
        font-weight: bold;
    }
}


/*  THIS IS FOR PHONES */
@media (max-width: 991px) {
    /* Hardcoded phone map height */
    #mapContainer {
        min-height: 420px;
    }

    #map {
        height: 420px !important; /* adjust as needed */
        width: 100%;
        display: block;
    }

    .container-fluid,
    form#searchFilter {
        height: auto;
    }
}

.radio-wrap {
    display: inline-block;
    margin-right: 10px;
    white-space: nowrap;
}

/* Sizes on the phone (I guess) */
.responsive-input {
    font-size: 1.2em;
}
.select2-container .select2-selection--single {
    height: 35px !important;
    font-size: 1.25em !important;
    width: 400px !important;
}
.responsive-date {
    font-size: 1.25em;
    max-width: 150px;
}
.responsive-btn {
    font-size: 1.2em;
    padding: 10px 20px;
}
.responsive-checkbox input[type="checkbox"] {
    width: 25px;
    height: 25px;
}
.responsive-radio input[type="radio"] {
    width: 25px;
    height: 25px;
    margin-right: 6px; /* Optional: space between circle and label */
    vertical-align: middle;
}

@media (min-width: 900px) {
    .responsive-input {
        font-size: 1em;
    }
    .select2-container .select2-selection--single {
        height: 35px !important;
        font-size: 1em !important;
        width: 400px !important;
    }

    .responsive-date {
        font-size: 1em;
        max-width: 120px;
    }
    .responsive-btn {
        font-size: 1em;
        padding: 6px 12px;
    }
    .responsive-checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }


    .responsive-radio input[type="radio"] {
        width: 16px;
        height: 16px;
    }
}
/* Mobile: make sticky possible and pin the map */
/* MOBILE */
@media (max-width: 576px) {
    /* ensure NO ancestor blocks sticky */
    .container-fluid, .row, .col-lg-9, .map-and-list {
        overflow: visible !important;
    }

    .map-and-list {
        display: block;
        min-height: 0;
    }
    /* stack instead of flex */
    .col-lg-9 {
        height: auto;
    }
    /* avoid height traps */

    /* map sticks at the very top */
    #mapContainer {
        position: sticky;
        top: 0; /* if you have a fixed header, use its height here */
        z-index: 10;
        background: #fff;
        overscroll-behavior: contain; /* 👈 key line: prevents page scroll when touching map area */
    }

    /* visible map height */
    #map {
        height: 45vh;
    }

    /* list gets its own scroll beneath the pinned map */
    #chapelListContainer {
        max-height: calc(100vh - 45vh - 12px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain; /* 👈 blocks scroll chaining at list edges */
    }
}

.bp-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.6;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #1e40af;
}

/* Stronger + larger checkbox for the In-bounds filter only */
#chkInBounds.form-check-input {
    width: 1.25rem; /* bigger box */
    height: 1.25rem;
    border-color: #495057; /* darker gray border */
}

    #chkInBounds.form-check-input:checked {
        background-color: #198754; /* Bootstrap 'success' green */
        border-color: #198754;
    }

    #chkInBounds.form-check-input:focus {
        box-shadow: 0 0 0 .2rem rgba(25,135,84,.25); /* clearer focus ring */
    }

/* === Step 1: Presentation polish for video demos === */

/* 1) Form container spacing (desktop gets slightly tighter) */
form#searchFilter {
    --asrv-gap: 10px; /* central knob for vertical rhythm */
    --asrv-label: 600; /* label weight */
    --asrv-font: clamp(14px, 1.1vw, 17px);
}

    form#searchFilter .form-group,
    form#searchFilter .row > [class*="col"] {
        margin-bottom: var(--asrv-gap);
    }

    /* 2) Labels: clearer hierarchy without being heavy */
    form#searchFilter label {
        font-weight: var(--asrv-label);
        line-height: 1.25;
        letter-spacing: .15px;
    }

    /* 3) Inputs/selects/buttons: consistent height & readable size on camera */
    form#searchFilter input[type="text"],
    form#searchFilter input[type="search"],
    form#searchFilter input[type="tel"],
    form#searchFilter input[type="number"],
    form#searchFilter input[type="date"],
    form#searchFilter select,
    .select2-container .select2-selection--single {
        font-size: var(--asrv-font);
        line-height: 1.15;
        height: 42px; /* visually consistent control height */
        padding: 8px 12px;
    }

/* Select2 alignment help */
.select2-container .select2-selection--single {
    display: flex;
    align-items: center;
    height: 42px;
}


/* 4) Micro-spacing for stacked radio/checkbox groups */
form#searchFilter .form-check,
form#searchFilter .radio,
form#searchFilter .checkbox {
    margin-bottom: 6px;
}

/* 5) Mobile vs desktop rhythm */
@media (max-width: 575.98px) {
    form#searchFilter {
        --asrv-gap: 12px;
    }
}

@media (min-width: 992px) {
    form#searchFilter {
        --asrv-gap: 8px;
    }
    /* a hair tighter on desktop */
}

/* 6) Subtly increase breathing room around the map container (no layout change) */
#mapContainer {
    scroll-margin-top: 12px;
}

/* === Badge links (reusing bp-badge look for nav items) === */
.badge-link {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    background: #f3f4f6; /* light gray background */
    color: #111; /* dark text */
    transition: background .2s, color .2s;
}

    .badge-link:hover {
        background: #2563eb; /* blue */
        color: #fff;
    }

.header-band {
    background: #fafafa; /* same light gray as quicktips */
    border-bottom: 1px solid #e5e7eb;
}
