/* ═══════════════════════════════════════════════════════════════════════════
   Rezdy Agent — Interactive Map Styles v1.2.0
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Tokens ────────────────────────────────────────────────────────────────── */
.rzmap-shell {
    --rzmap-ink:        #0f1117;
    --rzmap-ink-soft:   #3d4250;
    --rzmap-ink-muted:  #7a8194;
    --rzmap-cream:      #f7f4ee;
    --rzmap-white:      #ffffff;
    --rzmap-accent:     #e8480c;
    --rzmap-gold:       #f5a623;
    --rzmap-green:      #1d9e6f;
    --rzmap-border:     rgba(15,17,23,.09);
    --rzmap-shadow-sm:  0 2px 8px rgba(0,0,0,.08);
    --rzmap-shadow-md:  0 8px 28px rgba(0,0,0,.15);
    --rzmap-shadow-lg:  0 20px 60px rgba(0,0,0,.22);
    --rzmap-radius:     12px;
    --rzmap-header-h:   62px;
    --rzmap-sidebar-w:  340px;
    --rzmap-font-head:  'Playfair Display', Georgia, serif;
    --rzmap-font-body:  'DM Sans', system-ui, -apple-system, sans-serif;
}

/* ── Shell ────────────────────────────────────────────────────────────────── */
.rzmap-shell {
    display: flex;
    flex-direction: column;
    height: var(--rzmap-height, 600px);
    font-family: var(--rzmap-font-body);
    border-radius: var(--rzmap-radius);
    overflow: hidden;
    box-shadow: var(--rzmap-shadow-lg);
    position: relative;
}
.rzmap-shell--fullscreen {
    border-radius: 0;
    position: relative;
    left: 0; right: 0;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.rzmap-header {
    display: flex;
    align-items: center;
    gap: 14px;
    height: var(--rzmap-header-h);
    background: var(--rzmap-ink);
    padding: 0 18px;
    flex-shrink: 0;
    z-index: 10;
    overflow: hidden;
}

.rzmap-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.rzmap-logo-icon {
    font-size: 22px;
    line-height: 1;
}
.rzmap-logo-text {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}
.rzmap-logo-text em {
    font-style: normal;
    color: var(--rzmap-gold);
}

.rzmap-header-div {
    width: 1px;
    height: 26px;
    background: rgba(255,255,255,.12);
    flex-shrink: 0;
}

/* Search bar */
.rzmap-search-bar {
    flex: 1;
    max-width: 380px;
    position: relative;
    display: flex;
    align-items: center;
}
.rzmap-search-icon {
    position: absolute;
    left: 10px;
    font-size: 14px;
    pointer-events: none;
}
.rzmap-search-input {
    width: 100%;
    height: 38px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 9px;
    color: #fff;
    font-family: var(--rzmap-font-body);
    font-size: 13px;
    padding: 0 34px 0 32px;
    outline: none;
    transition: background .2s, border-color .2s;
}
.rzmap-search-input::placeholder { color: rgba(255,255,255,.38); }
.rzmap-search-input:focus { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); }
.rzmap-search-clear {
    position: absolute;
    right: 9px;
    background: none;
    border: none;
    color: rgba(255,255,255,.45);
    cursor: pointer;
    font-size: 14px;
    padding: 2px;
    display: none;
    line-height: 1;
    transition: color .15s;
}
.rzmap-search-clear:hover { color: #fff; }

/* Category pills */
.rzmap-cats {
    display: flex;
    gap: 5px;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
    max-width: 380px;
}
.rzmap-cats::-webkit-scrollbar { display: none; }
.rzmap-cat {
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.18);
    background: transparent;
    color: rgba(255,255,255,.65);
    font-family: var(--rzmap-font-body);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all .17s;
    flex-shrink: 0;
}
.rzmap-cat:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.rzmap-cat--active { background: var(--rzmap-accent); border-color: var(--rzmap-accent); color: #fff; }

/* Count pill */
.rzmap-count-pill {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    background: rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 4px 10px;
}
.rzmap-count-num  { font-size: 14px; font-weight: 800; color: #fff; }
.rzmap-count-label{ font-size: 11px; color: rgba(255,255,255,.4); }

/* ── Body ─────────────────────────────────────────────────────────────────── */
.rzmap-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.rzmap-sidebar {
    width: var(--rzmap-sidebar-w);
    background: var(--rzmap-cream);
    border-right: 1px solid var(--rzmap-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
    transition: width .3s ease, opacity .3s ease;
}
.rzmap-sidebar--hidden {
    width: 0;
    opacity: 0;
    pointer-events: none;
}
.rzmap-sidebar-head {
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--rzmap-border);
    flex-shrink: 0;
}
.rzmap-sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--rzmap-ink);
    margin-bottom: 1px;
}
.rzmap-sidebar-sub {
    font-size: 11px;
    color: var(--rzmap-ink-muted);
}
.rzmap-sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.08) transparent;
}

/* List cards */
.rzcard {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--rzmap-white);
    border-radius: 9px;
    border: 1.5px solid transparent;
    padding: 9px 10px;
    cursor: pointer;
    transition: border-color .17s, transform .17s, box-shadow .17s;
    animation: rzcard-in .3s ease both;
}
.rzcard:hover {
    border-color: var(--rzmap-accent);
    transform: translateX(3px);
    box-shadow: var(--rzmap-shadow-sm);
}
.rzcard--active {
    border-color: var(--rzmap-accent);
    box-shadow: 0 0 0 3px rgba(232,72,12,.12);
}
@keyframes rzcard-in {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}
.rzcard__thumb {
    width: 60px; height: 60px;
    border-radius: 7px;
    object-fit: cover;
    flex-shrink: 0;
}
.rzcard__thumb--placeholder {
    width: 60px; height: 60px;
    border-radius: 7px;
    background: linear-gradient(135deg, #e8e5de, #d5d2cc);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.rzcard__body { flex: 1; min-width: 0; }
.rzcard__cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--rzmap-accent);
    margin-bottom: 2px;
}
.rzcard__name {
    font-size: 12px;
    font-weight: 700;
    color: var(--rzmap-ink);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.rzcard__meta {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--rzmap-ink-muted);
}
.rzcard__price {
    font-size: 13px;
    font-weight: 800;
    color: var(--rzmap-ink);
    flex-shrink: 0;
    white-space: nowrap;
}
.rzcard__price span { font-size: 10px; color: var(--rzmap-ink-muted); font-weight: 400; }

.rzmap-empty-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 32px 16px;
    color: var(--rzmap-ink-muted);
    font-size: 13px;
    text-align: center;
}
.rzmap-empty-list span:first-child { font-size: 32px; }

/* ── Canvas area ──────────────────────────────────────────────────────────── */
.rzmap-canvas-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
}
.rzmap-canvas {
    width: 100%;
    height: 100%;
}

/* ── Floating map search overlay ──────────────────────────────────────────── */
.rzmap-map-search {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    background: var(--rzmap-white);
    border-radius: 10px;
    box-shadow: var(--rzmap-shadow-lg);
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    width: 300px;
    max-width: calc(100% - 80px);
    font-family: var(--rzmap-font-body);
    font-size: 13px;
    color: var(--rzmap-ink-muted);
}
.rzmap-map-search-input {
    flex: 1;
    height: 32px;
    border: none;
    background: none;
    font-family: var(--rzmap-font-body);
    font-size: 13px;
    color: var(--rzmap-ink);
    outline: none;
    padding: 0 4px;
}
.rzmap-map-search-input::placeholder { color: var(--rzmap-ink-muted); }
.rzmap-map-search-btn {
    width: 32px; height: 32px;
    background: var(--rzmap-accent);
    border: none;
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    transition: background .17s;
    flex-shrink: 0;
}
.rzmap-map-search-btn:hover { background: #c93c0a; }

/* ── FAB buttons ──────────────────────────────────────────────────────────── */
.rzmap-fab-group {
    position: absolute;
    right: 14px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    z-index: 500;
}
.rzmap-fab {
    width: 40px; height: 40px;
    background: var(--rzmap-white);
    border: 1px solid var(--rzmap-border);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 18px;
    box-shadow: var(--rzmap-shadow-sm);
    transition: all .17s;
}
.rzmap-fab:hover { background: var(--rzmap-ink); color: #fff; }
.rzmap-fab--active { background: var(--rzmap-accent); color: #fff; border-color: var(--rzmap-accent); }

/* ── Toast ────────────────────────────────────────────────────────────────── */
.rzmap-toast {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background: var(--rzmap-ink);
    color: #fff;
    padding: 9px 18px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    z-index: 900;
    opacity: 0;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s;
    pointer-events: none;
    white-space: nowrap;
}
.rzmap-toast--show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ── Leaflet overrides ────────────────────────────────────────────────────── */
.rzmap-shell .leaflet-control-zoom {
    border: none !important;
    box-shadow: var(--rzmap-shadow-md) !important;
}
.rzmap-shell .leaflet-control-zoom a {
    background: var(--rzmap-white) !important;
    color: var(--rzmap-ink) !important;
    border-color: var(--rzmap-border) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
}
.rzmap-shell .leaflet-control-zoom a:hover {
    background: var(--rzmap-ink) !important;
    color: #fff !important;
}
.rzmap-shell .leaflet-control-attribution {
    background: rgba(255,255,255,.7) !important;
    font-size: 10px !important;
}
.rzmap-shell .leaflet-popup-content-wrapper {
    padding: 0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: var(--rzmap-shadow-lg) !important;
    border: 1px solid var(--rzmap-border) !important;
}
.rzmap-shell .leaflet-popup-content {
    margin: 0 !important;
    width: 300px !important;
}
.rzmap-shell .leaflet-popup-tip-container { display: none !important; }
.rzmap-shell .leaflet-popup-close-button {
    top: 8px !important;
    right: 8px !important;
    width: 26px !important;
    height: 26px !important;
    background: rgba(0,0,0,.45) !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    line-height: 1 !important;
    padding: 0 !important;
    text-indent: 0 !important;
}
.rzmap-shell .leaflet-popup-close-button:hover { background: rgba(0,0,0,.7) !important; }

/* ── Custom pins ──────────────────────────────────────────────────────────── */
.rzpin {
    position: relative;
    cursor: pointer;
    user-select: none;
}
.rzpin__hot {
    position: absolute;
    top: -3px; right: -3px;
    width: 9px; height: 9px;
    background: var(--rzmap-accent);
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 1;
}
.rzpin__bubble {
    position: relative;
    background: var(--rzmap-white);
    border: 2px solid var(--rzmap-ink);
    border-radius: 20px;
    padding: 6px 12px;
    white-space: nowrap;
    font-family: var(--rzmap-font-body);
    font-size: 12px;
    font-weight: 800;
    color: var(--rzmap-ink);
    box-shadow: var(--rzmap-shadow-md);
    transition: all .22s cubic-bezier(.34,1.56,.64,1);
    transform-origin: bottom center;
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rzpin__emoji { font-size: 13px; flex-shrink: 0; }
.rzpin__tail {
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border: 5px solid transparent;
    border-top-color: var(--rzmap-ink);
    transition: border-top-color .22s;
}
.rzpin:hover .rzpin__bubble,
.rzpin--active .rzpin__bubble {
    background: var(--rzmap-accent);
    border-color: var(--rzmap-accent);
    color: #fff;
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 8px 24px rgba(232,72,12,.4);
}
.rzpin:hover .rzpin__tail,
.rzpin--active .rzpin__tail {
    border-top-color: var(--rzmap-accent);
}

/* ── Popup ────────────────────────────────────────────────────────────────── */
.rzpopup { font-family: var(--rzmap-font-body); }
.rzpopup__img-wrap {
    position: relative;
    height: 155px;
    overflow: hidden;
}
.rzpopup__img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.rzpopup__img-wrap:hover .rzpopup__img { transform: scale(1.04); }
.rzpopup__img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d4a3e 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 48px;
}
.rzpopup__img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 55%);
}
.rzpopup__badges {
    position: absolute;
    top: 9px; left: 9px;
    display: flex; gap: 5px;
}
.rzpopup__badge {
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    backdrop-filter: blur(8px);
}
.rzpopup__badge--cat { background: rgba(255,255,255,.88); color: var(--rzmap-ink); }
.rzpopup__badge--hot { background: var(--rzmap-accent); color: #fff; }

.rzpopup__body { padding: 13px 15px 15px; }
.rzpopup__name {
    font-family: var(--rzmap-font-head);
    font-size: 15px;
    font-weight: 700;
    color: var(--rzmap-ink);
    line-height: 1.3;
    margin-bottom: 7px;
}
.rzpopup__chips {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 7px;
}
.rzpopup__chip {
    font-size: 11px;
    color: var(--rzmap-ink-soft);
    display: flex; align-items: center; gap: 3px;
}
.rzpopup__rating-row {
    display: flex; align-items: center; gap: 5px;
    margin-bottom: 7px;
    font-size: 12px;
}
.rzpopup__stars { color: var(--rzmap-gold); }
.rzpopup__rating-val { font-weight: 700; color: var(--rzmap-ink); }
.rzpopup__reviews { color: var(--rzmap-ink-muted); }
.rzpopup__desc {
    font-size: 12px;
    color: var(--rzmap-ink-soft);
    line-height: 1.5;
    margin-bottom: 11px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rzpopup__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.rzpopup__price-block {}
.rzpopup__price-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--rzmap-ink-muted);
    font-weight: 500;
}
.rzpopup__price {
    font-size: 20px;
    font-weight: 900;
    color: var(--rzmap-ink);
    line-height: 1;
}
.rzpopup__price-per { font-size: 11px; color: var(--rzmap-ink-muted); font-weight: 400; }
.rzpopup__book-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--rzmap-accent);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-family: var(--rzmap-font-body);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .15s;
    white-space: nowrap;
}
.rzpopup__book-btn:hover { background: #c93c0a; transform: translateY(-1px); color: #fff; }
.rzpopup__arrow { transition: transform .2s; }
.rzpopup__book-btn:hover .rzpopup__arrow { transform: translateX(3px); }

/* ── Empty state ──────────────────────────────────────────────────────────── */
.rzmap-empty { padding: 24px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .rzmap-sidebar { display: none; }
    .rzmap-sidebar.rzmap-sidebar--mobile-open {
        display: flex;
        position: absolute;
        left: 0; top: 0; bottom: 0;
        z-index: 600;
        width: min(340px, 90vw);
        box-shadow: var(--rzmap-shadow-lg);
    }
    .rzmap-cats { max-width: 260px; }
}
@media (max-width: 560px) {
    .rzmap-logo-text { display: none; }
    .rzmap-count-pill { display: none; }
    .rzmap-search-bar { max-width: 200px; }
}

/* ── Google Fonts load ────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@400;500;700;800&display=swap');
