/* Proposed Road Widening Check Styles */

#map {
    height: 500px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
}
.map-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    font-size: 12px;
}
.result-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 20px;
    display: none;
}
.result-card.category-1 .card-header {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}
.result-card.category-2 .card-header {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: white;
}
.result-card.category-3 .card-header {
    background: linear-gradient(135deg, #dc3545, #bd2130);
    color: white;
}
.result-card.not-in-widening .card-header {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}
.result-card .card-header {
    padding: 15px;
    font-weight: 600;
}
.result-card .card-body {
    padding: 20px;
}
.result-info {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
}
.result-info:last-child {
    border-bottom: none;
}
.info-label {
    font-weight: 600;
    color: #555;
}
.info-value {
    color: #333;
}
.widening-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.widening-status.category-1 {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.widening-status.category-2 {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}
.widening-status.category-3 {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.widening-status.not-affected {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}
.loader {
    display: none;
    text-align: center;
    padding: 20px;
}
.loader .spinner-border {
    width: 3rem;
    height: 3rem;
    color: #FF6725;
}
.map-instruction {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 400;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 20px;
    border-radius: 30px;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.map-instruction.visible {
    opacity: 1;
}
.custom-marker {
    border: 2px solid white;
    border-radius: 50%;
    width: 15px !important;
    height: 15px !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.custom-marker.category-1 { background-color: #28a745; }
.custom-marker.category-2 { background-color: #ffc107; }
.custom-marker.category-3 { background-color: #dc3545; }
.custom-marker.not-affected { background-color: #6c757d; }
.widening-legend {
    position: absolute;
    bottom: 24px;
    left: 10px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 12px;
}
.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}
.legend-item:last-child { margin-bottom: 0; }
.legend-color {
    width: 20px;
    height: 3px;
    margin-right: 8px;
}
.legend-color.category-1 { background-color: #28a745; }
.legend-color.category-2 { background-color: #ffc107; }
.legend-color.category-3 { background-color: #dc3545; }
.impacts-list, .regulations-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}
.impacts-list li, .regulations-list li {
    background-color: #f8f9fa;
    padding: 6px 10px;
    margin: 3px 0;
    border-radius: 4px;
    border-left: 3px solid #007bff;
    font-size: 13px;
}
.location-button {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 18px;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    margin-bottom: 10px;
}
.location-button:hover {
    background-color: #FF6725;
    color: #fff;
}
.location-button.active {
    background-color: #FF6725;
    color: #fff;
}
.widening-search-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    width: calc(100% - 100px);
    max-width: 400px;
}
.widening-search-box {
    width: 100%;
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 14px;
}
.widening-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1001;
}
.widening-search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}
.widening-search-result-item:hover {
    background-color: rgba(255, 103, 37, 0.1);
}
.map-controls-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
.place-popup-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 5px;
}
.place-popup-title.category-1 { color: #28a745; }
.place-popup-title.category-2 { color: #ffc107; }
.place-popup-title.category-3 { color: #dc3545; }
.place-popup-title.not-affected { color: #6c757d; }
.setback-info {
    background-color: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
}
.setback-info h6 {
    color: #004085;
    margin-bottom: 5px;
}
.setback-info p {
    margin: 0;
    color: #004085;
}

/* FAQ */
.prw-faq-section { margin-top: 30px; }
.prw-faq-item { border: 1px solid #e9ecef; border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.prw-faq-question { padding: 15px 20px; font-weight: 600; font-size: 15px; cursor: url(../dashboard/images/icon/pointer.svg), pointer; display: flex; justify-content: space-between; align-items: center; background: #f8f9fa; transition: background 0.2s; }
.prw-faq-question:hover { background: #fff3ec; }
.prw-faq-question .faq-icon { transition: transform 0.3s; font-size: 12px; color: #ff6725; }
.prw-faq-question.open .faq-icon { transform: rotate(180deg); }
.prw-faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s, padding 0.3s; font-size: 14px; color: #495057; line-height: 1.6; }
.prw-faq-answer.open { padding: 15px 20px; max-height: 500px; }
