﻿

.labeltext {
    font-family: iransans, tahoma, sans-serif;
    border-width: 1px;
    font-size: 12px;
    width: 100px;
    text-align: center;
    font-weight:normal;
    background-color: white;
    direction: rtl;
    right: -40px !important;
}

.leaflet-label:before {
    border-right: none;
}

.open-state {
    background-color: #DCEDC8;
    color: #212121;
}

.close-state {
    background-color: #FFCCBC;
    color: #212121;
}

/* Kish restaurant finder */
.restaurant-map-modal {
    width: 100% !important;
    padding: 20px !important;
}

.restaurant-map-modal .modal-dialog {
    width: min(1120px, calc(100vw - 32px));
    max-width: 1120px;
    margin: 0 auto;
}

.restaurant-map-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: #f7faf9;
    box-shadow: 0 28px 80px rgba(10, 35, 31, .28);
}

.restaurant-map-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px 18px;
    color: #fff;
    direction: rtl;
    background: linear-gradient(125deg, #087f6d 0%, #0da585 58%, #25b99b 100%);
}

.restaurant-map-eyebrow {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 11px;
    letter-spacing: .04em;
    opacity: .8;
}

.restaurant-map-header h4 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.restaurant-map-header p {
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: 12px;
}

.restaurant-map-close {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 12px;
    color: #fff;
    background: rgba(255,255,255,.12);
    font-size: 28px;
    line-height: 35px;
    cursor: pointer;
}

.restaurant-map-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-bottom: 1px solid #e4ece9;
    direction: rtl;
    background: #fff;
}

.restaurant-map-filters {
    display: flex;
    gap: 5px;
    padding: 4px;
    border-radius: 12px;
    background: #edf4f2;
}

.restaurant-map-filters button,
.restaurant-map-reset {
    border: 0;
    border-radius: 9px;
    padding: 8px 13px;
    color: #526560;
    background: transparent;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

.restaurant-map-filters button.active {
    color: #087f6d;
    background: #fff;
    box-shadow: 0 2px 9px rgba(17, 73, 63, .1);
    font-weight: 700;
}

.restaurant-map-summary {
    margin-left: auto;
    color: #60736e;
    font-size: 12px;
}

.restaurant-map-reset {
    border: 1px solid #cfe0db;
    color: #087f6d;
    background: #f8fbfa;
}

.restaurant-map-body {
    position: relative;
}

.restaurant-map-body #map {
    width: 100%;
    height: min(68vh, 650px) !important;
    min-height: 430px;
    margin: 0 !important;
    background: #dce9e6;
}

.restaurant-map-loading,
.restaurant-map-error {
    position: absolute;
    z-index: 800;
    top: 18px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border-radius: 12px;
    color: #31554d;
    background: rgba(255,255,255,.95);
    box-shadow: 0 6px 20px rgba(16, 56, 48, .14);
    font-size: 12px;
    direction: rtl;
}

.restaurant-map-loading span {
    width: 15px;
    height: 15px;
    border: 2px solid #b8ddd4;
    border-top-color: #0c987d;
    border-radius: 50%;
    animation: restaurant-map-spin .75s linear infinite;
}

.restaurant-map-error { color: #9c3c2e; }
.restaurant-map-error[hidden] { display: none; }

@keyframes restaurant-map-spin { to { transform: rotate(360deg); } }

.kish-restaurant-marker {
    position: relative;
    width: 190px !important;
    height: 46px !important;
    margin-top: -46px !important;
    margin-left: -95px !important;
    border: 0;
    background: transparent;
}

.kish-restaurant-marker .marker-card {
    position: absolute;
    right: 50%;
    bottom: 25px;
    transform: translateX(50%);
    display: flex;
    align-items: center;
    max-width: 185px;
    padding: 6px 10px;
    border: 1px solid rgba(12, 126, 105, .22);
    border-radius: 11px;
    color: #173c35;
    background: rgba(255,255,255,.96);
    box-shadow: 0 5px 16px rgba(17, 68, 58, .18);
    white-space: nowrap;
    font-family: iransans, tahoma, sans-serif;
    font-size: 11px;
    font-weight: 700;
    direction: rtl;
}

.kish-restaurant-marker .marker-pin {
    position: absolute;
    right: 50%;
    bottom: 7px;
    width: 20px;
    height: 20px;
    transform: translateX(50%);
    border: 2px solid #fff;
    border-radius: 50%;
    background: #19aa83;
    box-shadow: 0 2px 7px rgba(17, 68, 58, .35);
}

.kish-restaurant-marker .marker-pin::after {
    content: "";
    position: absolute;
    left: 3px;
    bottom: -7px;
    width: 0;
    height: 0;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    border-top: 8px solid #19aa83;
}

.kish-restaurant-marker .marker-pin-dot {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

.kish-restaurant-marker.closed .marker-card { opacity: .82; border-color: rgba(204, 81, 55, .25); }
.kish-restaurant-marker.closed .marker-pin { background: #e0644b; }
.kish-restaurant-marker.closed .marker-pin::after { border-top-color: #e0644b; }
.kish-restaurant-marker .marker-name { overflow: hidden; text-overflow: ellipsis; }
.kish-restaurant-marker:hover .marker-card { transform: translateX(50%) translateY(-3px); box-shadow: 0 9px 22px rgba(17, 68, 58, .25); }

@media (max-width: 767px) {
    .restaurant-map-modal { padding: 8px !important; }
    .restaurant-map-modal .modal-dialog { width: calc(100vw - 16px); margin: 0 auto; }
    .restaurant-map-modal .modal-content { border-radius: 18px; }
    .restaurant-map-header { padding: 17px 18px 14px; }
    .restaurant-map-header h4 { font-size: 18px; }
    .restaurant-map-header p { display: none; }
    .restaurant-map-toolbar { flex-wrap: wrap; padding: 10px 12px; }
    .restaurant-map-summary { order: 3; width: 100%; margin: 0; text-align: center; }
    .restaurant-map-body #map { height: 66vh !important; min-height: 390px; }
    .kish-restaurant-marker .marker-card { max-width: 145px; padding: 6px 8px; font-size: 10px; }
}

