/* ==========================================================
   Zephyr JPB Food Review
   Master Stylesheet
   ========================================================== */

/* Core */

@import url("core/reset.css");
@import url("core/variables.css");
@import url("core/layout.css");
@import url("core/typography.css");
@import url("core/utilities.css");
@import url("core/animations.css");

/* Components */

@import url("components/buttons.css");
@import url("components/cards.css");
@import url("components/forms.css");
@import url("components/navigation.css");
@import url("components/tables.css");
@import url("components/badges.css");
@import url("components/alerts.css");
@import url("components/modal.css");
@import url("components/pagination.css");
@import url("components/rating.css");
@import url("components/gallery.css");
@import url("components/map.css");

/* Pages */

@import url("pages/home.css");
@import url("./pages/hub.css");

@import url("./pages/post.css");

@import url("./pages/profile.css");

@import url("./pages/maps.css");

@import url("./pages/buzz.css");

@import url("./pages/diary.css");

/* JPB Food Review visual identity */
@import url("./themes/warm-food.css");

/* ==========================================================
   MAP POPUPS
   Restaurant information must appear above Leaflet controls.
   ========================================================== */

.leaflet-popup-pane {
    z-index: 1200 !important;
}

.leaflet-tooltip-pane {
    z-index: 1190 !important;
}


/* ==========================================================
   LEAFLET LAYER ORDER
   Venue popup must appear in front of map controls.
   ========================================================== */

.leaflet-map-pane {
    z-index: 1;
}

.leaflet-popup-pane {
    z-index: 2000 !important;
}

.leaflet-control-container {
    position: relative;
    z-index: 1000 !important;
}

.leaflet-popup {
    z-index: 2001 !important;
}


/* ==========================================================
   FINAL LEAFLET STACKING ORDER
   Restaurant popup above Street/Alternative map controls.
   ========================================================== */

/* Undo earlier container stacking override */
.leaflet-map-pane {
    z-index: auto !important;
}

.leaflet-control-container {
    position: static !important;
    z-index: auto !important;
}

/* Leaflet normally gives these controls z-index 1000.
   Put them below the popup pane instead. */
.leaflet-top,
.leaflet-bottom {
    z-index: 650 !important;
}

/* Restaurant popup stays above all map controls */
.leaflet-popup-pane {
    z-index: 900 !important;
}

.leaflet-popup {
    z-index: 901 !important;
}


/* ==========================================================
   MAP LOCATION FINDER ALIGNMENT
   ========================================================== */

.jpb-location-selector > button {
    height: 46px !important;
    min-height: 46px !important;
}

.jpb-location-selector {
    align-self: flex-start;
}


/* ==========================================================
   MAP FINDER - FINAL ALIGNMENT
   ========================================================== */

.maps-search input[type="search"],
.maps-search input[type="text"],
.jpb-location-selector > button {
    height: 46px !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
}

.jpb-location-selector > button {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}


/* ==========================================================
   MAP LOCATION BAR - CLEAN FINAL LAYOUT
   ========================================================== */

/* Old maps.js status - no longer displayed */
#maps-location-status {
    display: none !important;
}

/* Venue finder and Location button identical height */
#maps-search,
.jpb-location-selector > button {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    box-sizing: border-box !important;
}

/* Keep Location text vertically centred */
.jpb-location-selector > button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}



/* ==========================================================
   SIGNED-IN USER NAV AVATAR
   ========================================================== */

.jpb-nav-avatar-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.jpb-nav-avatar {
    display: flex;
    width: 34px;
    height: 34px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #d9531e;
    border-radius: 50%;
    background: #f6e8d9;
    object-fit: cover;
}

.jpb-nav-avatar-fallback {
    color: #231f1c;
    font-size: 14px;
    font-weight: 900;
}


