/**
Theme Name: Aladdin's
Author: Fred Dawli
Author URI: http://vivdigital/
Description: Custom Child Theme for Aladdin's Eatery and parent theme is Astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: VIVDigital
Template: astra
*/



.section-locations {
    width: 100%;
    height: calc(100vh - 110px);
    position: relative;
}
.admin-bar .section-locations {
    height: calc(100vh - 142px);
}

.locations-sidebar {
    position: absolute;
    width: 30%;
    min-width: 400px;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
}

.locations-search {
    background-image: url(assets/images/bg-pattern.png);
    background-color: #973921;
    height: 110px;
    padding: 30px;
    box-sizing: border-box;
}

.locations-search form {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
}

.locations-search input[type="text"] {
    margin: 0;
    width: calc(100% - 46px);
    height: 46px;
    box-sizing: border-box;
    border-radius: 6px 0 0 6px;
    border: none;
}

.locations-search button {
    margin: 0;
    width: 46px;
    min-width: auto;
    height: 46px;
    padding: 10px;
    text-align: center;
    border-radius: 0 6px 6px 0;
}

.locations-search button i {
    font-size: 16px;
    margin: 0;
}

.locations-list {
    padding: 30px 20px 30px 30px;
    height: calc(100% - 110px);
    box-sizing: border-box;
}
.locations-list:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 40px);
    height: 200px;
    background-image: linear-gradient(transparent, #fff);
    pointer-events: none;
}

.locations-list-container {
    overflow-y: scroll;
    padding-right: 20px;
    height: 100%;
    scrollbar-color: #973921 transparent;
    scrollbar-width: thin;
}
.locations-list-container:after {
    content: '';
    display: block;
    height: 200px;
}
.locations-list-container::-webkit-scrollbar {
    width: 6px;
}
.locations-list-container::-webkit-scrollbar-thumb {
    border-radius: 2px;
    background-color: #a1b982;
}
.locations-list-container::-webkit-scrollbar-thumb:hover {
    background-color: #728a75;
}

.locations-list-container.loading * {
    visibility: hidden;
}

.locations-item {
    font-size: 14px;
    line-height: 1.5em;
    color: #222;
    margin-bottom: 30px;
}

.locations-item .location-details {
    transition: padding-left 300ms ease;
}
/* List view & detail view: show only address; hide title & distance */
.locations-list-container .locations-item .location-details > h2,
.locations-list-container .locations-item .location-details > .location-distance,
.location-detail-view .location-details h2,
.location-detail-view .location-details .location-distance {
    display: none;
}
.locations-item.highlight .location-details {
    border-left: 3px #973921 solid;
    padding-left: 16px;
}

.locations-item h2 {
    font-size: 20px;
    margin: 10px 0;
    cursor: pointer;
}

.location-distance {
    font-size: 12px;
    font-weight: 600;
    color: #728a75;
    margin: -6px 0;
}

.location-address {
    margin: 10px 0 0 0;
}

.location-address .address-line-1,
.location-full-address .address-line-1 {
    font-weight: 700;
    color: #973921;
    text-decoration: underline;
    font-size: 22px;
    font-family: "Interstate Condensed Bold", "Interstate Condensed", sans-serif;
    margin-bottom: 8px;
}

.location-times {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 10px;
    row-gap: 10px;
    font-size: 12px;
    line-height: 1.5em;
    margin: 10px 0;
}

.address-line-2 {
    font-size: 20px;
}

.location-times h3 {
    font-size: inherit;
    line-height: 1.5em;
    font-weight: 600;
    color: #728a75;
    margin: 0;
}

.location-phone i {
    font-size: 12px;
    color: #892c36;
    margin-right: 6px;
}

.location-phone a {
    color: #222;
    text-decoration: none;
}
.location-phone a:hover {
    color: #892c36;
}

.location-buttons {
    display: flex;
    margin: 10px -5px;
}

.location-buttons .btn {
    display: block;
    min-width: calc(50% - 10px);
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    padding: 10px 20px;
    margin: 0 5px;
}

.location-buttons .btn.btn-order {
    display: none;
}
.ordering .location-buttons .btn.btn-order {
    display: block;
}

.locations-map {
    position: absolute;
    width: 70%;
    height: 100%;
    top: 0;
    right: 0;
    background-color: #aadaff;
}

.page-template-page-locations footer {
    margin-top: 0;
}

.ordering-notice {
	background-color: #eee;
	font-size: 14px;
	line-height: 1.5em;
	color: #222;
	border-radius: 6px;
    padding: 20px;
    margin: 0 0 30px 0;
    display: flex;
    align-items: center;
}
.ordering-notice.hidden {
    display: none;
}

.ordering-notice i {
    margin-right: 16px;
    color: #728a75;
    font-size: 16px;
}

.ordering-notice strong {
    color: #882c36;
}

@media (max-width: 767px) {
    .section-locations {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    /* Map on top */
    .locations-map {
        position: relative;
        width: 100%;
        height: 55vh;
        min-height: 260px;
        order: 1;
    }

    /* Sidebar below map */
    .locations-sidebar {
        position: relative;
        width: 100%;
        min-width: 100%;
        height: auto;
        order: 2;
    }

    .locations-search {
        height: auto;
        padding: 20px;
    }

    .locations-list {
        height: auto;
        padding: 20px;
    }

    .locations-list-container {
        height: auto;
        max-height: 60vh;
        overflow-y: auto;
    }

    /* Remove gradient overlay */
    .locations-list:after {
        display: none;
    }
}


.location-details-hidden {
    display: none !important;
} 

.location-item-active .location-details-hidden {
    display: block !important;
}

.locations-item {
    font-size: 14px;
    line-height: 1.5em;
    color: #222;
    margin-bottom: 30px;
    cursor: pointer;
	padding: 5px;
    transition: 0.5s ease;
}

.location-item{
	margin-block: 8px;
    padding-bottom: 8px;
}

.location-details .location-full-address {
    margin-bottom: 12px;
}

.locations-item:hover {
    /* No motion or background on hover */
}


/* Location Detail View */
/* .location-detail-view {
    padding: 30px 20px 30px 30px;
    height: calc(100% - 110px);
    box-sizing: border-box;
    overflow-y: auto;
    scrollbar-color: #a1b982 transparent;
    scrollbar-width: thin;
} */

.location-detail-view::-webkit-scrollbar {
    width: 6px;
}

.location-detail-view::-webkit-scrollbar-thumb {
    border-radius: 2px;
    background-color: #a1b982;
}

.location-detail-view::-webkit-scrollbar-thumb:hover {
    background-color: #728a75;
}
.location-detail-view{
	overflow-y:inherit !important;
}
.location-back-button {
    display: flex;
	  color:#b59460;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 0;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.location-back-button:hover {
    background:transparent;
	color:#b59460;
}

.location-back-button i {
    font-size: 16px;
}

.location-detail-content {
    font-size: 14px;
    line-height: 1.5em;
    color: #222;
}

.location-detail-content .location-details {
    margin: 0;
}

.ordering .location-buttons .btn.btn-order,
.location-detail-view.ordering .location-buttons .btn.btn-order {
    display: block;
}
.btn.btn-order{
	padding-left:0;
}
.location-details h2 ~*{
	padding-bottom:5px;
	font-family: 'Chaparral Pro';
	font-weight: 400;
  font-style: normal;
}
.location-details > h2{
	margin:10px 0;
	font-size:20px;
	font-family: 'Interstate Condensed Bold', 'Interstate Condensed', sans-serif;
	font-weight: 700;
  font-style: normal;
}
.locations-sidebar{
	min-width:unset;
}

/* Location Detail View */
.location-detail-view {
/*     padding: 30px 20px 30px 30px; */
    height: calc(100% - 110px);
    box-sizing: border-box;
    overflow-y: auto;
    scrollbar-color: #a1b982 transparent;
    scrollbar-width: thin;
    position: relative;
}

.location-detail-view::-webkit-scrollbar {
    width: 6px;
}

.location-detail-view::-webkit-scrollbar-thumb {
    border-radius: 2px;
    background-color: #a1b982;
}

.location-detail-view::-webkit-scrollbar-thumb:hover {
    background-color: #728a75;
}

.location-close-button {
    position: absolute;
    top: -20px;
    right: -3px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    color: #728a75;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.location-close-button:hover {
    background: #892c36;
    color: #fff;
    border-color: #892c36;
    transform: scale(1.1);
}

.location-close-button i {
    font-size: 16px;
    line-height: 1;
}

.location-detail-content {
    font-size: 14px;
    line-height: 1.5em;
    color: #222;
    padding-top: 10px;
}

.location-detail-content .location-details {
    margin: 0;
}


.location-buttons {
    display: block;
    margin: 10px 0;
}

.location-buttons .btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background-color: transparent;
    font-family: "Interstate Condensed Bold", Sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: capitalize;
    line-height: 100%;
    color: #892c36;
    border-style: solid;
    border-width: 1px;
    border-color: #892c36;
    border-radius: 50px;
    padding: 12px 24px;
    margin: 0 0 10px 0;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}
a.btn.btn-order{
	background-color: #892c36 ;
	color:white;
}
.location-buttons .btn:last-child {
    margin-bottom: 0;
}

.location-buttons .btn:hover {
    background-color: #892c36;
    color: #fff;
}
a.btn.btn-order:hover{
	color:#892c36;
	background-color:transparent;
}
.locations-search{
	background-color: #973921;
}
.locations-search button:hover{
	background-color:#b59460;
}
.locations-item{
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	padding-bottom: 8px;
	margin-bottom: 8px;
}
.locations-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}
.locations-item:hover{
	/* No motion on hover */
}

/* ================================
   Mobile layout (<= 767px)
   Map on top, sidebar below
================================ */
@media (max-width: 767px) {
    .section-locations {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    /* Map on top */
    .locations-map {
        position: relative;
        width: 100%;
        height: 55vh;
        min-height: 260px;
        order: 1;
    }

    /* Sidebar below map */
    .locations-sidebar {
        position: relative;
        width: 100%;
        min-width: 100%;
        height: auto;
        order: 2;
    }

    .locations-search {
        height: auto;
        padding: 20px;
    }

    .locations-list {
        height: auto;
        padding: 20px;
    }

    .locations-list-container {
        height: auto;
        max-height: 60vh;
        overflow-y: auto;
    }

    /* Remove gradient overlay */
    .locations-list:after {
        display: none;
    }
}


#elementor-popup-modal-31821 .dialog-widget-content{
	border-radius: 20px !important;
}