/*
  EmirasHotel v17.1 - Leaflet local layout fallback.
  This file intentionally contains Leaflet's critical structural rules so
  the map still renders correctly if the CDN stylesheet is blocked or rejected.
*/

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
    position: absolute;
    left: 0;
    top: 0;
}

.leaflet-container {
    overflow: hidden;
    position: relative;
    outline-offset: 1px;
    background: #ddd;
    -webkit-tap-highlight-color: transparent;
}

.leaflet-container,
.leaflet-container * {
    box-sizing: content-box;
}

.leaflet-container .leaflet-overlay-pane svg {
    max-width: none !important;
    max-height: none !important;
}

.leaflet-container img,
.leaflet-container .leaflet-tile,
.leaflet-container .leaflet-marker-icon,
.leaflet-container .leaflet-marker-shadow {
    max-width: none !important;
    max-height: none !important;
    width: auto;
    height: auto;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

.leaflet-tile {
    width: 256px;
    height: 256px;
    visibility: hidden;
    user-select: none;
    -webkit-user-drag: none;
}

.leaflet-tile-loaded {
    visibility: inherit;
}

.leaflet-map-pane canvas {
    z-index: 100;
}

.leaflet-map-pane svg {
    z-index: 200;
}

.leaflet-tile-pane {
    z-index: 200;
}

.leaflet-overlay-pane {
    z-index: 400;
}

.leaflet-shadow-pane {
    z-index: 500;
}

.leaflet-marker-pane {
    z-index: 600;
}

.leaflet-tooltip-pane {
    z-index: 650;
}

.leaflet-popup-pane {
    z-index: 700;
}

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

.leaflet-map-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
    transform-origin: 0 0;
}

.leaflet-zoom-animated {
    transform-origin: 0 0;
}

.leaflet-zoom-box {
    width: 0;
    height: 0;
    box-sizing: border-box;
    z-index: 800;
}

.leaflet-control {
    position: relative;
    z-index: 800;
    pointer-events: auto;
    float: left;
    clear: both;
}

.leaflet-top,
.leaflet-bottom {
    position: absolute;
    z-index: 1000;
    pointer-events: none;
}

.leaflet-top {
    top: 0;
}

.leaflet-right {
    right: 0;
}

.leaflet-bottom {
    bottom: 0;
}

.leaflet-left {
    left: 0;
}

.leaflet-top .leaflet-control {
    margin-top: 10px;
}

.leaflet-bottom .leaflet-control {
    margin-bottom: 10px;
}

.leaflet-left .leaflet-control {
    margin-left: 10px;
}

.leaflet-right .leaflet-control {
    margin-right: 10px;
}

.leaflet-control-zoom {
    border: 1px solid #d6e1e5;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.leaflet-control-zoom a {
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    text-decoration: none;
    background: #fff;
    color: #24495c;
    font: bold 18px/30px Arial, sans-serif;
    border-bottom: 1px solid #e2e8eb;
}

.leaflet-control-zoom a:last-child {
    border-bottom: 0;
}

.leaflet-control-attribution {
    margin: 0 !important;
    padding: 2px 5px;
    background: rgba(255,255,255,.85);
    color: #526674;
    font: 10px/1.4 Arial, sans-serif;
}

.leaflet-control-attribution a {
    color: #007c83;
    text-decoration: none;
}

.leaflet-grab {
    cursor: grab;
}

.leaflet-dragging .leaflet-grab {
    cursor: grabbing;
}

/* Emiras custom pin: avoids Leaflet's external marker image dependency. */
.emiras-map-pin {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% 50% 50% 0;
    background: #008a90;
    border: 3px solid #fff !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.28);
    transform: rotate(-45deg);
}

.emiras-map-pin::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    left: 7px;
    top: 7px;
}

/* Project-specific hardening against generic img rules. */
.geo-map.leaflet-container img {
    max-width: none !important;
    max-height: none !important;
    object-fit: initial !important;
}
