/* Main wrapper uses full browser viewport */
html, body {
    height: 100%;
    margin: 0;
    background-image: none !important;
    background-color: #fff !important;
}

.content {
    width: 100%;
    /* height: calc(96dvh - var(--phoenix-navbar-top-height)); */
    height: auto !important;
    min-height: auto !important;
    background-image: none;
	background-color: #fff;
    padding: 16px !important;
    
}

.navbar-top {
    position: relative !important;
}

.main-area {
    border-radius: 20px;
    position: relative;
    background-color: #f1f1f1;
    width: 100%;
    height: calc(96dvh - var(--phoenix-navbar-top-height));
    overflow: hidden;
    display: flex;
}

/* map sits beside the sidebar */
.map-area {
    background-color: #5b5e66;
    padding: 10px;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
}

.sidebar {
    position: relative;
    width: 500px;
    background-color: #e2e4e8;
    border-radius: 20px 0 0 20px;
    padding: 15px;
    flex: 0 0 auto;
    height: 100%;
    box-sizing: border-box;
    
}

.sidebar.collapsed {
    width: 0;
    padding: 0;
    border-radius: 0;
}

.sidebar.collapsed .sidebar-content {
    display: none;
}

.sidebar-content {
    padding: 0 10px 0 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    width: 100%;
    margin-bottom: 10px;
}

.num-results {
    white-space: nowrap;
    font-weight: 600;
    font-size: 20px;    
}

.all-locations-link a {
    white-space: nowrap;
    font-weight: 600;
    font-size: 16px;
}

.search-input input {
    position: relative;
    padding: 10px 12px 10px 60px;
    width: 100%;
    height: 60px;
    border: #A1A4AF 1px solid;
    border-radius: 30px;
    outline: none;
    font-size: 16px;
    line-height: 1;
    background-color: #fff;
    background-image: url('/assets/img/views/local/main/search.svg');
    background-repeat: no-repeat;
    background-size: 24px;
    background-position: 20px center; /* left padding aligns with this */
    margin-bottom: 10px;
}

.search-clear {
    position: absolute;
    right: 20px;
    top: 40%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #888;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

/* style the scrollbar for the .locations-list-container */
.locations-list-container::-webkit-scrollbar {
    width: 8px;
}

.locations-list-container::-webkit-scrollbar-track {
    background: transparent;
}

.locations-list-container::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
}

.locations-list-container {
    scrollbar-color: rgba(0,0,0,0.3) transparent; /* for firefox */
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

ul.locations-list {
    list-style-type: none;
    padding-left: 0;
    padding-right: 0 !important;
    margin-left: 0;
    margin-bottom: 0 !important;
}

ul.locations-list > li .location-item {
  position: relative;
}

ul.locations-list > li:last-child .location-item {
  margin-bottom: 0;
}

/* border for location item that matches $location_slug */
ul.locations-list > li.current > .location-item {
  border: #3996da 2px solid;
}

ul.locations-list > li.nearest > .location-item {
  border: #698ba7 2px solid;
}

/* border for location item that's selected or focused on map: THIS MUST BE LAST */
ul.locations-list > li.active > .location-item {
  border: #95cb39 2px solid;
}

/* tag for location item that matches $location_slug */
.location-item-tag-current {
    z-index: 10000;
    position: absolute;
    top: -1px;
    right: 0;
    background-color: #3996da;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 5px 2px 8px;
    border-radius: 0 8px 0 4px;
    line-height: 1.4;
}

/* tag for location item that's selected or focused on map */
.location-item-tag-active {
    z-index: 10001;
    position: absolute;
    top: -1px;
    right: 0;
    background-color: #95cb39;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 5px 2px 8px;
    border-radius: 0 8px 0 4px;
    line-height: 1.4;
}

/* tag for location item that's nearest to the user's detected location */
.location-item-tag-nearest {
    z-index: 10000;
    position: absolute;
    top: -1px;
    right: 0;
    background-color: #698ba7;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 5px 2px 8px;
    border-radius: 0 8px 0 4px;
    line-height: 1.4;
}

.location-item {
    display: flex;
    border-radius: 10px;
    border: #e2e4e8 2px solid;
    background-color: #fff;
    padding: 10px;
    gap: 12px;
    margin-bottom: 10px;
    cursor: pointer;
}

.location-item-left {
    width: 100px;
}

.location-item-left .loc-image-container {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 4px;
}

.location-item-left .loc-phase {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 24px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
}

/* web phases */
.location-item-left .loc-phase.phase0 {
    color: #fff;
    background-color: #820c06;
}

.location-item-left .loc-phase.phase1 {
    color: #000;
    background-color: #ffc108;
}

.location-item-left .loc-phase.phase2 {
    color: #fff;
    background-color: #3369ff;
}

.location-item-left .loc-phase.phase3 {
    color: #fff;
    background-color: #7baa29;
}

.location-item-right {
    width: 346px;
}

.location-item-right ul {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
    gap: 5px;
    padding-bottom: 10px;
}

.location-item-right ul li {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.location-item-right ul li:last-child {
    padding-bottom: 15px;
}

.location-item-right ul li a {
    color: #000;
}

.location-item-right ul li a.loc-title {
    font-size: 18px;
    font-weight: 600;
}

.location-item-right ul li:nth-child(2) {
    align-items: flex-start; /* for marker icon and long addresses */
}

.location-item-right ul li .icon {
    position: relative;
    top: 0;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}

.location-item-right ul li .text {
    line-height: 18px;
    font-size: 14px;
}

.location-item-right .loc-buttons {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;
    right: 0;
    bottom: 0;
    gap: 1px;
}

.location-item-right .loc-buttons a {
    display: block;
    color: #fff;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    height: 32px;
    padding: 5px 10px;
    background-color: #9e9fa2;
    transition: filter 0.15s ease;
}

.location-item-right .loc-buttons a:hover,
.location-item-right .loc-buttons a:active {
    text-decoration: none;
}

a.loc-book {
    border-radius: 8px 0 0 0;
    
}

a.loc-page {
    border-radius: 0;
}

a.loc-map {
    padding: 5px 4px;
    border-radius: 0 0 6px 0;
}

@media (hover: hover) and (pointer: fine) {
  .location-item-right .loc-buttons a:hover {
    filter: brightness(0.90);
  }
}

ul.locations-list > li.nearest a.loc-map {
    background-color: #698ba7;
}

ul.locations-list > li.current a.loc-map {
    background-color: #3996da;
}

ul.locations-list > li.active a.loc-map {
    background-color: #95cb39;
}

/* marker --------------------------------------------*/
ul.marker-item {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    border: transparent 1px solid;
    background-color: #fff;
    padding: 10px;
    padding-top: 20px;
    gap: 5px;
    margin-bottom: 0px;
}

ul.marker-item .marker-title {
    color: #000;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

ul.marker-item li {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

ul.marker-item li a {
    color: #000;
    outline: none !important;
}

ul.marker-item li .icon {
    display: inline;
    width: 16px;
}

ul.marker-item li .icon img {
    max-width: none !important;
}

ul.marker-item li .text {
    display: inline;
    font-size: 14px;
}

ul.marker-item li .button-area {
    width: 100%;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

a.button-set, a.button-book, a.button-home {
    box-shadow: none !important;
    font-size: 12px;
    min-width: 200px;
}

a.button-set:hover, a.button-set:active {
    background-color: #689022 !important;
}

a.button-book {
    background-color: #3996da;
}

a.button-book:hover, a.button-book:active {
    background-color: #276896 !important;
}

/* remove the default top padding on InfoWindow containers */
.gm-style-iw-chr {
  margin-bottom: -40px !important;
}

/* The button floats over the map, aligned to the sidebar bottom edge */
.sidebar-toggle {
    position: absolute;
    background-color: #e2e4e8;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 75px;
    border: 0;
    border-radius: 0 5px 5px 0;
    z-index: 5;
    left: 100%;
    bottom: 50%;
    cursor: pointer;
    transform: rotate(0deg);
    transform-origin: center;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

@media (hover: hover) and (pointer: fine) {
    .sidebar-toggle:hover {
        background-color: #c5c7cb;
    }
}

.sidebar-toggle.collapsed {
    background-color: #fff;
    left: 0;
}

/* responsive UI behavior */
@media (max-width: 1024px) {
    .sidebar {
        width: 450px;
        background-color: #e2e4e8;
        border-radius: 20px 0 0 20px;
        padding: 15px;
        flex: 0 0 auto;
        height: 100%;
        box-sizing: border-box;
    }

    .map-area {
        padding: 0;
        height: 100vh;
    }

    .num-results,
    .all-locations-link a {
        font-size: 16px;
    }

    .search-input input {
        padding: 10px 12px 10px 30px;
        width: 100%;
        height: 40px;
        border-radius: 10px;
        font-size: 14px;
        background-size: 15px;
        background-position: 10px center; /* left padding aligns with this */
        margin-bottom: 10px;
    }

    .search-clear {
        right: 13px;
        top: 38%;
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .content {
        padding-top: 0;
        padding-left: 10px;
        padding-right: 10px;
    }

    .main-area {
        border-radius: 0;
        background-color: #fff;
        height: 100%;
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: 50dvh;
        padding: 12px;
        border-radius: 12px 12px 0 0;
    }

    .sidebar-toggle {
        transform: rotate(90deg);
        transform-origin: center;
        left: 50%;
        bottom: -46px;
        box-shadow: 2px -2px 0 rgba(0, 0, 0, 0.3);
    }

    .sidebar-toggle.collapsed {
        left: 50%;
    }

    .map-area {
        padding: 0;
        height: 40dvh;
    }

    .sidebar.collapsed {
        width: 100%;
        height: 0dvh;
    }

    .map-area.expanded {
        height: 90dvh;
    }

    .sidebar-top {
        margin-top: 10px;
        margin-bottom: 5px;
    }

    .results-text {
        display: inline;
    }

    .location-item-right ul li .text,
    ul.marker-item li .text {
        font-size: 14px !important;
        line-height: 16px;
    }

    .location-item-right ul li:first-child {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 0;
        padding-bottom: 10px;
    }
    
    .results-text {
        display: none;
    }

    .locations-list-container {
        overflow-x: hidden;
    }

    .location-item-left {
        display: none;
    }
}

@media (max-width: 320px) { 

    .num-results,
    .all-locations-link a {
        font-size: 14px;
    }

    .location-item-right .loc-title,
    ul.marker-item .marker-title {
        font-size: 16px;
    }

    .location-item-right ul li .text,
    ul.marker-item li .text {
        font-size: 13px !important;
        line-height: 16px;
    }

    .location-item-right ul li:first-child {
        align-items: flex-start;
    }

    ul.marker-item {
        padding: 0;
        padding-top: 5px;
    }

    ul.marker-item li {
        gap: 8px;
    }

    a.button-set,
    a.button-home {
        font-size: 12px;
    }
}

/* Remove focus outline from the InfoWindow */
.gm-style .gm-style-iw-c:focus,
.gm-style .gm-style-iw-d:focus {
  outline: none;
}

/* move templated views off-screen */
.off-screen {
  position: absolute;
  left: -99999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* loading spinners */
.loading-spinner-map,
.loading-spinner-locations {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 20px;
}

.loading-spinner-locations {
    margin-bottom: 10px;
}

.loading-spinner-map {
    height: 100%;
}
