/* Standart CSS - Tailwind Derleyicisinden Bagimsiz Yerlesim Kurallari */
.wall-segment,
.wall-item {
    position: absolute !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    cursor: pointer;
    z-index: 30;
}

.wall-segment.area-segment,
.wall-item.area-segment {
    z-index: 10 !important;
}

.wall-segment.unsellable,
.wall-item.unsellable {
    z-index: 15 !important;
}

.wall-segment.column,
.wall-item.column {
    z-index: 35 !important;
}

.wall-segment.fire_exit,
.wall-item.fire_exit {
    z-index: 40 !important;
}

.material-symbols-outlined {
    font-variation-settings:
        "FILL" 0,
        "wght" 400,
        "GRAD" 0,
        "opsz" 24;
}

.blueprint-grid {
    background-size: 30px 30px;
    background-image: radial-gradient(circle, #cbd5e1 0.8px, transparent 0.8px);
}

.dark .blueprint-grid {
    background-image: radial-gradient(circle, #334155 0.8px, transparent 0.8px);
}

/* Kose Belirtecleri */
.wall-segment::after,
.wall-segment::before,
.wall-item::after,
.wall-item::before {
    content: "";
    position: absolute;
    background-color: #cbd5e1;
}
.dark .wall-segment::after,
.dark .wall-segment::before,
.dark .wall-item::after,
.dark .wall-item::before {
    background-color: #475569;
}

.wall-segment.horizontal::after,
.wall-item.horizontal::after {
    width: 1px;
    height: 10px;
    top: -2px;
    left: 0;
}
.wall-segment.horizontal::before,
.wall-item.horizontal::before {
    width: 1px;
    height: 10px;
    top: -2px;
    right: 0;
}
.wall-segment.vertical::after,
.wall-item.vertical::after {
    height: 1px;
    width: 10px;
    left: -2px;
    top: 0;
}
.wall-segment.vertical::before,
.wall-item.vertical::before {
    height: 1px;
    width: 10px;
    left: -2px;
    bottom: 0;
}

/* Durum Renkleri */
.wall-segment.available,
.wall-item.available {
    background-color: #cbd5e1;
}
.wall-segment:hover,
.wall-item:hover {
    filter: brightness(0.95) contrast(1.1);
    transition: all 0.2s;
}
.wall-segment.selected,
.wall-item.selected,
.wall-segment.sibling-selected,
.wall-item.sibling-selected {
    background-color: #ffd700 !important;
    border-color: #ffd700 !important;
    z-index: 100 !important;
    color: #000 !important;
    box-shadow: none !important;
}
.wall-segment.area-segment.selected,
.wall-item.area-segment.selected,
.wall-segment.area-segment.available.selected,
.wall-item.area-segment.available.selected {
    background-color: #fef08a !important;
    background: #fef08a !important;
    border: 3.5px solid #d97706 !important;
    opacity: 1 !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.35), 0 8px 20px rgba(217, 119, 6, 0.25) !important;
    z-index: 60 !important;
    transform: scale(1.02);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.wall-segment.area-segment.selected .stand-avail-badge,
.wall-item.area-segment.selected .stand-avail-badge {
    display: none !important;
}
.wall-segment.area-segment.selected .stand-selected-badge,
.wall-item.area-segment.selected .stand-selected-badge {
    display: inline-flex !important;
}
.wall-segment.off-sale,
.wall-item.off-sale {
    background-color: #f1f5f9;
    cursor: not-allowed !important;
}

.wall-segment.sold,
.wall-item.sold {
    background-color: #dc2626 !important;
    cursor: not-allowed !important;
}
.wall-segment.reserved,
.wall-item.reserved {
    background-color: #f97316;
    cursor: wait !important;
}

/* Shared Wall Faces */
.side-a {
    border-radius: 2px 0 0 2px;
    border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
}
.side-b {
    border-radius: 0 2px 2px 0;
    border-left: 1px solid rgba(0, 0, 0, 0.1) !important;
}
.horizontal.side-a {
    border-radius: 2px 2px 0 0;
    border-right: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}
.horizontal.side-b {
    border-radius: 0 0 2px 2px;
    border-left: none !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Ozel Ogeler */
.column,
.wall-item.column {
    background-color: #475569;
    border: 2px solid #1e293b;
    border-radius: 2px;
}
.fire_exit,
.wall-item.fire_exit {
    background-color: #e11d48;
    border: 2px solid #ffffff;
    border-radius: 2px;
}
.unsellable,
.wall-item.unsellable {
    background-color: rgba(191, 219, 254, 0.4) !important;
    border: 2px dashed #60a5fa !important;
    opacity: 0.9 !important;
}
.dark .unsellable {
    background-color: rgba(30, 58, 138, 0.4) !important;
}

/* Tooltip Styles */
#ui-tooltip {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    display: none;
    line-height: 1.5;
    min-width: 180px;
    max-width: 300px;
}
#ui-tooltip .tooltip-header {
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 6px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
}
#ui-tooltip .tooltip-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 2px;
}
#ui-tooltip .tooltip-label {
    color: #94a3b8;
}
#ui-tooltip .tooltip-value {
    font-weight: 700;
    color: #f8fafc;
}

/* Labels z-index */
.wall-segment.label,
.wall-item.label {
    z-index: 50 !important;
}

/* Map builder ozel */
body.map-builder-page {
    overflow: hidden;
}
.wall-item.draggable {
    user-select: none;
}
.selection-box {
    position: absolute;
    border: 1px dashed #137fec;
    background: rgba(19, 127, 236, 0.1);
    pointer-events: none;
    z-index: 9999;
    display: none;
}

/* Area Segment Ozel */
.wall-segment.area-segment.available:not(.selected),
.wall-item.area-segment.available:not(.selected) {
    background-color: rgba(240, 249, 255, 0.88);
}
