/* Soil Type Detector 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.hard-rock .card-header {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}
.result-card.shale .card-header {
    background: linear-gradient(135deg, #795548, #5d4037);
    color: white;
}
.result-card.clay .card-header {
    background: linear-gradient(135deg, #ff7043, #e64a19);
    color: white;
}
.result-card.sand .card-header {
    background: linear-gradient(135deg, #fdd835, #f9a825);
    color: #333;
}
.result-card.mixed .card-header {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: white;
}
.result-card.unmapped .card-header {
    background: linear-gradient(135deg, #607d8b, #455a64);
    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;
}
.soil-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.soil-type-badge.hard-rock {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}
.soil-type-badge.shale {
    background-color: #efebe9;
    color: #5d4037;
    border: 1px solid #d7ccc8;
}
.soil-type-badge.clay {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}
.soil-type-badge.sand {
    background-color: #fffde7;
    color: #f57f17;
    border: 1px solid #fff9c4;
}
.soil-type-badge.mixed {
    background-color: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}
.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.hard-rock { background-color: #6c757d; }
.custom-marker.shale { background-color: #795548; }
.custom-marker.clay { background-color: #ff7043; }
.custom-marker.sand { background-color: #fdd835; }
.custom-marker.mixed { background-color: #9c27b0; }
.custom-marker.unmapped { background-color: #607d8b; }
.soil-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: 20px;
    margin-right: 8px;
    border-radius: 3px;
    border: 1px solid #ccc;
}
.legend-color.hard-rock { background-color: #6c757d; }
.legend-color.shale { background-color: #795548; }
.legend-color.clay { background-color: #ff7043; }
.legend-color.sand { background-color: #fdd835; }
.legend-color.laterite-sandstone { background-color: #ff9800; }
.legend-color.clay-shale { background-color: #9c27b0; }
.property-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}
.property-list li {
    background-color: #f8f9fa;
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 4px;
    border-left: 3px solid #007bff;
    font-size: 14px;
}
.property-list.advantages li {
    border-left-color: #28a745;
    background-color: #f1f8f4;
}
.property-list.disadvantages li {
    border-left-color: #dc3545;
    background-color: #fef5f5;
}
.property-list.suitable li {
    border-left-color: #17a2b8;
    background-color: #f0f8fa;
}
.property-list.notes li {
    border-left-color: #ffc107;
    background-color: #fffcf5;
}
.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;
}
.soil-search-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    width: calc(100% - 100px);
    max-width: 400px;
}
.soil-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;
}
.soil-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;
}
.soil-search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}
.soil-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.hard-rock { color: #6c757d; }
.place-popup-title.shale { color: #795548; }
.place-popup-title.clay { color: #ff7043; }
.place-popup-title.sand { color: #fdd835; }
.place-popup-title.mixed { color: #9c27b0; }
.place-popup-title.unmapped { color: #607d8b; }
.technical-properties {
    background-color: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
}
.technical-properties h6 {
    color: #004085;
    margin-bottom: 5px;
}
.technical-properties p {
    margin: 3px 0;
    color: #004085;
    font-size: 13px;
}

/* FAQ */
.soil-faq-section { margin-top: 30px; }
.soil-faq-item { border: 1px solid #e9ecef; border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.soil-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; }
.soil-faq-question:hover { background: #fff3ec; }
.soil-faq-question .faq-icon { transition: transform 0.3s; font-size: 12px; color: #ff6725; }
.soil-faq-question.open .faq-icon { transform: rotate(180deg); }
.soil-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; }
.soil-faq-answer.open { padding: 15px 20px; max-height: 500px; }
