#map {
    height: 500px;
    width: 100%;
    margin-bottom: 20px;
    position: relative;
}

.map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
    background: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.radio-group {
    margin: 0;
}

.radio-group p {
    margin: 5px 0;
}

.popup-content {
    padding: 10px;
    min-width: 180px;
    max-width: 300px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    word-wrap: break-word;
}

.popup-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.popup-header h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-header h4:before {
    content: "🏗️";
    font-size: 1rem;
}

.popup-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.foto-detail-container {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
}

.foto-container {
    flex: 0 0 90px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.foto-sarpras {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
}

.detail-container {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
    padding: 6px 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px;
    border-left: 3px solid #3498db;
}

.info-item i {
    color: #3498db;
    font-size: 0.9rem;
    margin-right: 8px;
    margin-top: 2px;
}

.info-content {
    flex: 1;
}

.info-content label {
    display: block;
    color: #6c757d;
    font-size: 0.7rem;
    margin-bottom: 2px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-content p {
    margin: 0;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.8rem;
    line-height: 1.3;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    max-width: 100%;
}

.popup-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #f0f0f0;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
    width: 100% !important;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Style untuk tabel kondisi */
.kondisi-list {
    margin-top: 10px;
    padding: 12px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.kondisi-list h5 {
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.kondisi-list .table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.kondisi-list .table th,
.kondisi-list .table td {
    padding: 8px;
    border: 1px solid #e9ecef;
}

.kondisi-list .table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
}

.kondisi-list .table td {
    color: #495057;
}

.kondisi-empty {
    padding: 15px;
    text-align: center;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 13px;
}

.text-success {
    color: #28a745 !important;
    font-weight: 600;
}

.text-warning {
    color: #ffc107 !important;
    font-weight: 600;
}

.text-danger {
    color: #dc3545 !important;
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 4px;
    color: #fff;
}

.badge.light-green.accent-2 {
    background-color: #76ff03;
    color: #000;
}

.badge.lime.accent-2 {
    background-color: #eeff41;
    color: #000;
}

.badge.amber.darken-2 {
    background-color: #ff8f00;
    color: #fff;
}

.badge.red.darken-2 {
    background-color: #d32f2f;
    color: #fff;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-sm td,
.table-sm th {
    padding: 6px;
}

#popup {
    background-color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    bottom: 12px;
    left: -50px;
    min-width: 280px;
    max-width: 420px;
}

#popup:after {
    border-width: 8px;
    left: 48px;
    margin-left: -8px;
    border-top-color: white;
}

#popup:before {
    border-width: 9px;
    left: 48px;
    margin-left: -9px;
    border-top-color: #e0e0e0;
}

#popup-closer {
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#popup-closer:hover {
    background: rgba(0,0,0,0.2);
    transform: scale(1.1);
}

#popup-closer:after {
    font-size: 14px;
    color: #666;
}

.ol-popup {
    position: absolute;
    background-color: white;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #cccccc;
    bottom: 12px;
    left: -50px;
    min-width: 180px;
}

.ol-popup:after, .ol-popup:before {
    top: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.ol-popup:after {
    border-top-color: white;
    border-width: 10px;
    left: 48px;
    margin-left: -10px;
}

.ol-popup:before {
    border-top-color: #cccccc;
    border-width: 11px;
    left: 48px;
    margin-left: -11px;
}

.ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: 6px;
    right: 6px;
    cursor: pointer;
    z-index: 1;
}

.ol-popup-closer:after {
    content: "✖";
    background-color: #fff;
    color: #666;
    font-size: 16px;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 4px;
}

.ol-popup-closer:hover:after {
    color: #333;
    background-color: #f0f0f0;
}
