/* ==========================================================
   DESA TEMATIK GIS
========================================================== */


/* ==========================================================
   MAIN
========================================================== */

.desa-tematik-page {
    background: var(--desa-bg);
    overflow: hidden;
}


/* ==========================================================
   MAP WRAPPER
========================================================== */

.desa-map-wrapper {

    height: calc(100vh - 82px);

    display: grid;

    grid-template-columns:
        330px
        minmax(500px, 1fr)
        330px;

    position: relative;

    overflow: hidden;
}


/* ==========================================================
   LEFT SEARCH PANEL
========================================================== */

.desa-search-panel {

    background: rgba(255,255,255,.97);

    border-right: 1px solid var(--desa-border);

    z-index: 1000;

    display: flex;

    flex-direction: column;

    overflow-y: auto;
}


/* HEADER */

.desa-panel-header {

    padding: 28px 25px 20px;

    border-bottom: 1px solid var(--desa-border);
}

.desa-panel-eyebrow,
.theme-eyebrow {

    color: var(--desa-primary);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.3px;

    margin-bottom: 8px;

    display: flex;

    align-items: center;

    gap: 7px;
}

.desa-panel-header h2 {

    margin: 0;

    font-size: 26px;

    color: var(--desa-text);

    letter-spacing: -.5px;
}

.desa-panel-header p {

    margin: 8px 0 0;

    color: var(--desa-muted);

    line-height: 1.6;

    font-size: 13px;
}


/* ==========================================================
   SEARCH
========================================================== */

.desa-search-box {

    padding: 22px 22px 18px;
}

.desa-search-box label {

    display: block;

    font-size: 12px;

    font-weight: 800;

    color: var(--desa-text);

    margin-bottom: 8px;
}

.desa-search-input {

    height: 48px;

    border: 1px solid #d8e3e8;

    border-radius: 12px;

    display: flex;

    align-items: center;

    padding-left: 13px;

    background: #fff;

    transition: .2s;
}

.desa-search-input:focus-within {

    border-color: var(--desa-primary);

    box-shadow:
        0 0 0 4px rgba(11,110,142,.08);
}

.desa-search-input > i {

    color: #8ca0aa;

    font-size: 14px;
}

.desa-search-input input {

    border: none;

    outline: none;

    flex: 1;

    min-width: 0;

    padding: 0 10px;

    font-size: 13px;

    color: var(--desa-text);

    background: transparent;
}

.desa-search-input button {

    height: 40px;

    margin-right: 4px;

    padding: 0 17px;

    border: none;

    border-radius: 9px;

    background: var(--desa-primary);

    color: #fff;

    font-weight: 700;

    cursor: pointer;

    transition: .2s;
}

.desa-search-input button:hover {

    background: var(--desa-primary-dark);

    transform: translateY(-1px);
}

.search-example {

    margin-top: 7px;

    color: #98a7af;

    font-size: 11px;
}


/* ==========================================================
   RESULT
========================================================== */

.desa-result {

    padding: 0 22px;

    flex: 1;
}


/* EMPTY */

.empty-desa {

    margin-top: 10px;

    padding: 35px 18px;

    text-align: center;

    border: 1px dashed #d6e2e7;

    border-radius: 16px;

    background: #fbfdfe;
}

.empty-icon {

    width: 58px;

    height: 58px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 16px;

    background: var(--desa-primary-light);

    color: var(--desa-primary);

    font-size: 23px;
}

.empty-desa h3 {

    margin: 15px 0 5px;

    font-size: 15px;

    color: var(--desa-text);
}

.empty-desa p {

    margin: 0;

    color: var(--desa-muted);

    font-size: 12px;

    line-height: 1.5;
}


/* DESA RESULT CARD */

.desa-info-card {

    border: 1px solid var(--desa-border);

    border-radius: 16px;

    overflow: hidden;

    background: white;

    box-shadow: var(--shadow-soft);
}

.desa-info-cover {

    height: 75px;

    background:
        linear-gradient(
            135deg,
            #0b6e8e,
            #159ab7
        );

    position: relative;
}

.desa-info-cover::after {

    content: "";

    position: absolute;

    inset: 0;

    opacity: .15;

    background-image:
        radial-gradient(
            circle at 20% 20%,
            #fff 1px,
            transparent 1px
        );

    background-size: 18px 18px;
}

.desa-info-body {

    padding: 18px;
}

.desa-name {

    font-size: 20px;

    font-weight: 800;

    color: var(--desa-text);

    margin-bottom: 4px;
}

.desa-location {

    color: var(--desa-muted);

    font-size: 12px;

    line-height: 1.6;
}

.desa-id {

    display: inline-flex;

    margin-top: 10px;

    padding: 5px 9px;

    border-radius: 7px;

    background: #eef7fa;

    color: var(--desa-primary);

    font-size: 11px;

    font-weight: 700;
}


/* DATA */

.desa-data-grid {

    margin-top: 16px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;
}

.desa-data-item {

    background: #f7fafb;

    padding: 11px;

    border-radius: 10px;
}

.desa-data-item span {

    display: block;

    font-size: 10px;

    color: #8798a1;

    margin-bottom: 3px;
}

.desa-data-item strong {

    font-size: 13px;

    color: var(--desa-text);
}


/* ==========================================================
   MINI STATS
========================================================== */

.desa-mini-stats {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    padding: 20px 22px;
}

.mini-stat {

    padding: 13px;

    border: 1px solid var(--desa-border);

    background: white;

    border-radius: 12px;

    display: flex;

    gap: 10px;

    align-items: center;
}

.mini-stat-icon {

    width: 34px;

    height: 34px;

    border-radius: 9px;

    background: var(--desa-primary-light);

    color: var(--desa-primary);

    display: flex;

    align-items: center;

    justify-content: center;
}

.mini-stat span {

    display: block;

    color: #8b9aa2;

    font-size: 9px;
}

.mini-stat strong {

    font-size: 13px;

    color: var(--desa-text);
}


/* ==========================================================
   MAP
========================================================== */

.desa-map-area {

    position: relative;

    min-width: 0;
}

#map {

    width: 100%;

    height: 100%;

    background: #dfe9ed;
}


/* MAP TITLE */

.map-floating-title {

    position: absolute;

    left: 20px;

    top: 20px;

    z-index: 800;

    background: rgba(255,255,255,.94);

    backdrop-filter: blur(10px);

    padding: 12px 16px;

    border-radius: 13px;

    display: flex;

    align-items: center;

    gap: 11px;

    box-shadow:
        0 8px 30px rgba(0,0,0,.12);
}

.map-title-icon {

    width: 36px;

    height: 36px;

    border-radius: 10px;

    background: var(--desa-primary);

    color: #fff;

    display: flex;

    align-items: center;

    justify-content: center;
}

.map-floating-title strong {

    display: block;

    font-size: 13px;

    color: var(--desa-text);
}

.map-floating-title span {

    display: block;

    font-size: 10px;

    color: var(--desa-muted);

    margin-top: 2px;
}


/* STATUS */

.map-status {

    position: absolute;

    right: 18px;

    top: 20px;

    z-index: 800;

    background: rgba(255,255,255,.95);

    padding: 9px 13px;

    border-radius: 30px;

    font-size: 11px;

    color: #50616b;

    box-shadow:
        0 5px 20px rgba(0,0,0,.1);

    display: flex;

    align-items: center;

    gap: 7px;
}

.status-dot {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #20b486;
}


/* HELP */

.map-help {

    position: absolute;

    bottom: 18px;

    left: 20px;

    z-index: 800;

    background: rgba(255,255,255,.92);

    padding: 8px 12px;

    border-radius: 9px;

    font-size: 10px;

    color: #71818a;

    box-shadow: 0 5px 18px rgba(0,0,0,.08);
}

.map-help i {

    color: var(--desa-primary);

    margin-right: 5px;
}


/* ==========================================================
   RIGHT THEMATIC PANEL
========================================================== */

.desa-theme-panel {

    background: rgba(255,255,255,.98);

    border-left: 1px solid var(--desa-border);

    z-index: 1000;

    display: flex;

    flex-direction: column;

    overflow-y: auto;
}

.theme-header {

    padding: 27px 22px 18px;

    border-bottom: 1px solid var(--desa-border);
}

.theme-header h2 {

    margin: 0;

    color: var(--desa-text);

    font-size: 23px;
}

.theme-header p {

    color: var(--desa-muted);

    font-size: 12px;

    line-height: 1.5;

    margin: 7px 0 0;
}


/* THEME LIST */

.theme-list {

    padding: 14px;
}


/* CARD */

.theme-card {

    width: 100%;

    border: 1px solid transparent;

    background: #fff;

    padding: 10px;

    border-radius: 13px;

    display: flex;

    align-items: center;

    text-align: left;

    gap: 11px;

    cursor: pointer;

    transition: all .2s;

    margin-bottom: 5px;
}

.theme-card:hover {

    background: #f5fafc;

    border-color: #dcecf1;

    transform: translateX(-2px);
}

.theme-card.active {

    background: #eaf7fa;

    border-color: #b9e0e8;

    box-shadow:
        inset 3px 0 0 var(--desa-primary);
}


/* ICON */

.theme-icon {

    width: 43px;

    height: 43px;

    flex: 0 0 43px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 18px;
}

.theme-agri {
    background: #edf8e9;
    color: #4b9a48;
}

.theme-plant {
    background: #e9f8f0;
    color: #269466;
}

.theme-food {
    background: #fff4e5;
    color: #db8b25;
}

.theme-animal {
    background: #f4eefc;
    color: #8754b8;
}

.theme-tourism {
    background: #e8f4ff;
    color: #2777b9;
}

.theme-culinary {
    background: #fff0ef;
    color: #d45d57;
}

.theme-fashion {
    background: #f8eef7;
    color: #a24a98;
}

.theme-business {
    background: #edf2ff;
    color: #4e68bb;
}


/* CONTENT */

.theme-content {

    min-width: 0;

    flex: 1;
}

.theme-content strong {

    display: block;

    color: var(--desa-text);

    font-size: 12px;

    margin-bottom: 3px;
}

.theme-content span {

    display: block;

    color: #8a999f;

    font-size: 9px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.theme-arrow {

    font-size: 10px;

    color: #b4c0c5;
}


/* FOOTER */

.theme-footer {

    margin: auto 14px 15px;

    padding: 12px;

    background: #f4f9fb;

    border-radius: 11px;

    font-size: 10px;

    line-height: 1.5;

    color: #72848d;
}

.theme-footer i {

    color: var(--desa-primary);

    margin-right: 5px;
}


/* ==========================================================
   LEAFLET
========================================================== */

.leaflet-control-zoom {

    border: none !important;

    box-shadow:
        0 5px 20px rgba(0,0,0,.1) !important;
}

.leaflet-control-zoom a {

    border: none !important;

    color: var(--desa-primary) !important;
}

.desa-marker {

    width: 38px;

    height: 38px;

    border-radius: 50% 50% 50% 0;

    transform: rotate(-45deg);

    background: var(--desa-primary);

    border: 3px solid #fff;

    box-shadow:
        0 4px 14px rgba(0,0,0,.25);

    display: flex;

    align-items: center;

    justify-content: center;
}

.desa-marker i {

    transform: rotate(45deg);

    color: white;

    font-size: 15px;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1200px) {

    .desa-map-wrapper {

        grid-template-columns:
            300px
            minmax(400px, 1fr)
            290px;
    }

}


@media (max-width: 950px) {

    .desa-map-wrapper {

        grid-template-columns:
            280px
            1fr;
    }

    .desa-theme-panel {

        display: none;
    }

}


@media (max-width: 700px) {

    .desa-map-wrapper {

        display: block;

        height: auto;

        overflow: visible;
    }

    .desa-search-panel {

        height: auto;

        max-height: none;
    }

    .desa-map-area {

        height: 550px;
    }

    .desa-theme-panel {

        display: flex;
    }

}

/* ==========================================================
   THEMATIC MAP MARKER
========================================================== */

.thematic-marker-wrapper {

    background: transparent !important;

    border: none !important;
}


/*
|--------------------------------------------------------------------------
| PIN
|--------------------------------------------------------------------------
*/

.thematic-marker {

    width: 42px;

    height: 42px;

    border-radius: 50% 50% 50% 0;

    background: var(--marker-color);

    border: 3px solid #ffffff;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, .28);

    display: flex;

    align-items: center;

    justify-content: center;

    transform:
        rotate(-45deg);

    position: relative;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


/*
|--------------------------------------------------------------------------
| ICON
|--------------------------------------------------------------------------
*/

.thematic-marker i {

    color: #ffffff;

    font-size: 17px;

    transform:
        rotate(45deg);
}


/*
|--------------------------------------------------------------------------
| HOVER
|--------------------------------------------------------------------------
*/

.thematic-marker:hover {

    transform:
        rotate(-45deg)
        scale(1.12);

    box-shadow:
        0 7px 20px rgba(0, 0, 0, .35);
}


/*
|--------------------------------------------------------------------------
| SMALL WHITE DOT
|--------------------------------------------------------------------------
*/

.thematic-marker::after {

    content: "";

    position: absolute;

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: rgba(255,255,255,.28);

    top: 5px;

    left: 7px;
}