﻿
html, body {
    height: 100%;
    margin: 0;
}

#map {
    width: 100%;
    height: 100%;
}
/* Offcanvas راست چین */
.offcanvas-end {
    direction: rtl;
    text-align: right;
}

    .offcanvas-end .offcanvas-body {
        padding-right: 1rem; /* فاصله مناسب */
        padding-left: 0;
    }

    /* اگر می‌خواهید تمام محتوای فرم‌ها راست‌چین شود */
    .offcanvas-end input,
    .offcanvas-end select,
    #suggestions {
        position: absolute;
        top: 45px;
        left: 50%;
        transform: translateX(-50%);
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 5px;
        width: 200px;
        max-height: 200px;
        overflow-y: auto;
        z-index: 1001;
        display: none;
    }

        #suggestions div {
            padding: 6px 10px;
            cursor: pointer;
        }

            #suggestions div:hover {
                background: #f0f0f0;
            }

/* ===== RTL & Leaflet Popups ===== */
.leaflet-popup-content-rtl {
    font-family: 'Vazir', Tahoma, sans-serif;
    text-align: right;
    direction: rtl;
}

.leaflet-popup-center {
    direction: rtl;
    text-align: center;
    transform: scale(0.85);
    transform-origin: top center;
}

.hotel-popup-xl {
    width: 100%;
    max-width: 400px; /* یا 420px مطابق JS */
    border-radius: 14px;
    background: #fff;
    font-family: IRANSans,Tahoma;
    overflow: hidden;

}

.popup-image-wrapper {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.popup-image-xl {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-content {
    padding: 14px;
}

.hotel-type {
    display: inline-block;
    background: #eef2ff;
    color: #3f51b5;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.hotel-name {
    font-size: 17px;
    font-weight: bold;
    margin: 6px 0;
}

.hotel-stars-center {
    color: #f5b50a;
    margin-bottom: 6px;
}

.hotel-address-center {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.hotel-popup-xl .btn {
    border-radius: 8px;
    font-size: 14px;
    color: white;
}

/* ===== Cards ===== */
.hotel-card {
    direction: rtl;
    text-align: right;
    background: #fff;
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    display: flex;
    cursor: pointer;
}

.hotel-thumb {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    margin-left: 10px;
}

.hotel-info h6 {
    margin-bottom: 4px;
    font-size: 14px;
}

.hotel-info .price {
    font-weight: 600;
    color: #28a745;
}

/* ===== Offcanvas ===== */
.offcanvas {
    direction: rtl;
    text-align: right;
}

.offcanvas-body {
    overflow-y: auto;
    max-height: calc(100vh - 70px);
    padding-bottom: 40px;
}

/* ===== Buttons ===== */
.position-fixed {
    z-index: 9999;
}
/* استایل اسم هتل روی marker */
.hotel-label {
    background-color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    color: black;
    border: 1px solid #888;
    box-shadow: 0 1px 2px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.la.la-star {
    color: #f5c518;
}

.form-check-input {
    border-color: darkgray;
}

.title {
    font-size: 1rem; /* اندازه معمولی */
    font-weight: 600; /* نه خیلی ضخیم */
}

.map-side-buttons {
    position: fixed;
    top: 50%;
    left: 10px; /* فاصله از لبه چپ */
    transform: translateY(-50%);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 10px; /* فاصله بین دکمه‌ها */
}

    .map-side-buttons .btn {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        padding: 0;
    }

sidebar-widget .title {
    font-size: 17px;
    margin-bottom: 20px;
    padding-bottom: 12px;
}

.stroke-shape {
    position: relative;
    display: inline-block;
}
/* Offcanvas دسکتاپ RTL */
.hotelSearchInputMobile {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    width: 250px;
    direction: rtl;
}
    /* راست چین کردن placeholder */
    .hotelSearchInputMobile::placeholder {
        text-align: right;
        direction: rtl;
        color: #888; /* رنگ دلخواه */
    }


}
