/* ===============================
   AREA PANEL (MATCHED THEME)
================================ */

#area-panel {
   position: absolute;
   top: 110px;
   left: 15px;
   width: 300px;
   z-index: 1200;
   font-family: "Segoe UI", sans-serif;
}
#vacant-building-panel{
   position: absolute;
   bottom: 270px;
   left: 15px;
   width: 300px;
   z-index: 1200;
   font-family: "Segoe UI", sans-serif;
}
/* CARD */
.area-card {
   background: rgba(41, 51, 60, 0.9);
   border-radius: 8px;
   border: 1px solid rgba(255,255,255,0.08);
   backdrop-filter: blur(4px);
   box-shadow: 0 6px 20px rgba(0,0,0,0.5);
   overflow: hidden;
}

/* ===============================
   HEADER (MATCH TOP BAR GRADIENT)
================================ */
.area-title-bar {
   background: linear-gradient(90deg, #301c42, #50376c, #622e54);
   color: #fff;
   padding: 8px 10px;
   font-size: 13px;
   font-weight: 600;
   display: flex;
   justify-content: space-between;
   align-items: center;
   border-bottom: 1px solid rgba(255,255,255,0.08);
}

.area-title-bar i {
   cursor: pointer;
   font-size: 14px;
   transition: 0.25s;
}

.area-title-bar i:hover {
   color: #ff6b6b;
   transform: scale(1.1);
}

/* ===============================
   AREA LIST
================================ */
.area-list {
   max-height: 400px;
   overflow-y: auto;
   padding: 6px;
}

/* scrollbar */
.area-list::-webkit-scrollbar {
   width: 5px;
}
.area-list::-webkit-scrollbar-thumb {
   background: rgba(255,255,255,0.2);
   border-radius: 6px;
}

/* ===============================
   AREA ROW (LIKE SIDEBAR BUTTON)
================================ */
.area-row {
   background: rgba(255,255,255,0.04);
   border-radius: 6px;
   padding: 8px;
   margin-bottom: 6px;
   cursor: pointer;
   transition: all 0.25s ease;
   border: 1px solid transparent;
}

/* hover = SAME FEEL AS .menu a:hover */
.area-row:hover {
   background: linear-gradient(135deg,#3e0582,#0982ce);
   transform: translateY(-2px) scale(1.02);
   box-shadow: 0 6px 14px rgba(18,162,243,.35);
   border-color: #6eeffd;
}

/* ===============================
   ROW HEADER
================================ */
.area-row-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 4px;
}

.area-title {
   font-size: 12px;
   color: #fff;
   font-weight: 500;
}

.area-count {
   font-size: 11px;
   color: #cbd5e1;
}

/* ===============================
   PROGRESS BAR (MATCH ACCENT)
================================ */
.area-progress {
   width: 100%;
   height: 5px;
   background: rgba(255,255,255,0.08);
   border-radius: 10px;
   overflow: hidden;
}

.area-progress-fill {
   height: 100%;
   background: linear-gradient(135deg,#00e5ff,#0982ce);
   transition: width 0.4s ease;
}

/* ===============================
   TABLE WRAPPER
================================ */
#area-table-wrapper {
   padding: 8px;
}

/* HEADER */
.area-table-header {
   display: flex;
   flex-direction: column;
   gap: 6px;
   margin-bottom: 8px;
}

/* subtitle */
.area-subtitle {
   font-size: 11px;
   color: #cbd5e1;
}

/* back button (MATCH BUTTON STYLE) */
.area-table-header .btn {
   background: #29333c;
   border: 1px solid rgba(255,255,255,0.08);
   color: #fff;
   font-size: 11px;
   padding: 3px 8px;
   border-radius: 4px;
   transition: all 0.25s ease;
}

.area-table-header .btn:hover {
   background: linear-gradient(135deg,#3e0582,#0982ce);
   transform: scale(1.05);
   border-color: #6eeffd;
}

/* title */
#area-table-title {
   font-size: 12px;
   font-weight: 600;
   color: #fff;
}

/* ===============================
   TABLE (MATCH DARK THEME)
================================ */
#area-table-content {
   max-height: 320px;
   overflow: auto;
}

#area-table-content table {
   width: 100%;
   border-collapse: collapse;
   font-size: 12px;
   color: #fff;
}

#area-table-content th {
   background: #29333c;
   padding: 6px;
   font-weight: 500;
   border-bottom: 1px solid rgba(255,255,255,0.08);
}

#area-table-content td {
   padding: 6px;
   border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* hover row */
#area-table-content tr:hover {
   background: rgba(110,239,253,0.12);
}

/* ===============================
   PANEL ANIMATION (MATCH UI)
================================ */
#area-panel.expand,#vacant-building-panel.expand {
   animation: slidePanel 0.25s ease;
}

@keyframes slidePanel {
   from {
      opacity: 0;
      transform: translateX(20px);
   }
   to {
      opacity: 1;
      transform: translateX(0);
   }
}
/* CHANGE AUG-2026 */
/* ================= VACANT BUILDING ================= */

.vacant-building-section {
   margin-top: 4px;
}

.vacant-building-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   height: 35px;
   padding: 0 10px;
   background: var(--c-bg-card);
   color: #fff;
   border-radius: 6px 6px 0 0;
   font-size: 11px;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.05em;
}

.vacant-building-list {
   display: flex;
   flex-direction: column;
   gap: 1px;
   background: rgba(255, 255, 255, 0.05);
}

.vacant-building-row {
   min-height: 40px;
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 7px 10px;
   background: rgba(40, 51, 61, 0.88);
   border-bottom: 1px solid rgba(255, 255, 255, 0.08);
   cursor: pointer;
   transition: all .2s ease;
}

.vacant-building-row:hover {
   background: rgba(51, 67, 78, 0.95);
}

.vacant-building-name {
   color: #f1f5f9;
   font-size: 12px;
   font-weight: 600;
   line-height: 18px;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
   max-width: 205px;
}

.vacant-building-info {
   display: flex;
   align-items: center;
   min-width: 0;
}

.vacant-building-icon {
   width: 7px;
   height: 7px;
   min-width: 7px;
   display: flex;
   align-items: center;
   justify-content: center;
   margin-right: 8px;
   color: #29d3f2;
   background: #29d3f2;

   border: 1px solid rgba(41, 211, 242, 0.25);
   border-radius: 6px;

   font-size: 13px;

   box-shadow: 0 0 6px rgba(41, 211, 242, 0.08);
}

.vacant-building-icon i {
   line-height: 1;
}

.vacant-building-count {
   min-width: 28px;
   height: 28px;
   display: flex;
   align-items: center;
   justify-content: center;
   margin-left: 8px;
   border: 1px solid rgba(255, 255, 255, 0.75);
   border-radius: 50%;
   color: #fff;
   font-size: 12px;
   font-weight: 500;
   background: rgba(255, 255, 255, 0.05);
}

.vacant-building-arrow {
   display: none;
}
.bg-header-info{
   background: linear-gradient( 90deg, rgb(103 120 126 / 95%), rgb(44 120 151 / 95%) );
}

/* ================= DISCLAIMER TOOLTIP ================= */

.disclaimer-wrapper {
   position: relative;
   display: inline-flex;
   align-items: center;
   gap: 6px;
   cursor: pointer;
   color: #cbd5e1;
   font-size: 12px;
   user-select: none;
}

.disclaimer-wrapper i.bi-info-circle-fill {
   color: #29d3f2;
   font-size: 14px;
}

.disclaimer-wrapper .disclaimer-text {
   font-weight: 600;
   letter-spacing: 0.02em;
   text-decoration: underline dotted rgba(203, 213, 225, 0.4);
   text-underline-offset: 3px;
}

.disclaimer-wrapper:hover .disclaimer-text {
   color: #fff;
}

.disclaimer-wrapper {
   position: relative;
   display: inline-flex;
   align-items: center;
   gap: 6px;
   cursor: pointer;
   color: #cbd5e1;
   font-size: 12px;
   user-select: none;
}
 
/* stops any native browser title-tooltip / Bootstrap hover-tooltip
   from firing off the icon itself and fighting with our click toggle */
.disclaimer-wrapper i.bi-info-circle-fill {
   color: #29d3f2;
   font-size: 14px;
   pointer-events: none;
}
 
.disclaimer-wrapper .disclaimer-text {
   font-weight: 600;
   letter-spacing: 0.02em;
   text-decoration: underline dotted rgba(203, 213, 225, 0.4);
   text-underline-offset: 3px;
   pointer-events: none;
}
 
/* ---- tooltip panel ---- */
.custom-tooltip {
   position: absolute;
   bottom: calc(100% + 12px);
   right: 0;
   width: 400px;
   max-width: 75vw;
   background: #182028;
   border: 1px solid rgba(41, 211, 242, 0.25);
   border-radius: 10px;
   box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
   z-index: 1000;
 
   opacity: 0;
   visibility: hidden;
   pointer-events: none;
   transform: translateY(6px);
   transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
   cursor: default;
}
 
.custom-tooltip.show {
   opacity: 1;
   visibility: visible;
   pointer-events: auto;
   transform: translateY(0);
}
 
.custom-tooltip::after {
   content: "";
   position: absolute;
   top: 100%;
   right: 14px;
   width: 10px;
   height: 10px;
   background: #182028;
   border-right: 1px solid rgba(41, 211, 242, 0.25);
   border-bottom: 1px solid rgba(41, 211, 242, 0.25);
   transform: translateY(-50%) rotate(45deg);
}
 
.custom-tooltip .tooltip-header {
   padding: 8px 12px;
   font-size: 10px;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.06em;
   color: #fff;
   background: linear-gradient(90deg, rgba(41, 211, 242, 0.25), rgba(20, 30, 38, 0.95));
   border-radius: 10px 10px 0 0;
   border-left: 3px solid #29d3f2;
}
 
.custom-tooltip .tooltip-body {
   padding: 10px 12px 12px;
   font-size: 10px;
   line-height: 1.5;
   color: #cbd5e1;
   max-height: 200px;
   overflow-y: auto;
}
 
.custom-tooltip .tooltip-body::-webkit-scrollbar {
   width: 5px;
}
 
.custom-tooltip .tooltip-body::-webkit-scrollbar-thumb {
   background: rgba(41, 211, 242, 0.4);
   border-radius: 3px;
}
 
/* if the wrapper sits near the left edge of the screen,
   add this modifier class via JS and it'll flip the tooltip/arrow to the left */
.custom-tooltip.align-left {
   right: auto;
   left: 0;
}
 
.custom-tooltip.align-left::after {
   right: auto;
   left: 14px;
}