#map {
    height: 500px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.map-container {
    position: relative;
    overflow: hidden;
}

.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: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 20px;
    display: none;
    background-color: #fff;
}

.result-card .card-header {
    background: linear-gradient(135deg, #ff6725 0%, #e55b1e 100%);
    color: white;
    padding: 20px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-card .card-body {
    padding: 0;
}

/* Enhanced Loading Overlay Styles */
#loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    animation: fadeInLoader 0.3s ease-in;
}

@keyframes fadeInLoader {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loader-content {
    text-align: center;
    max-width: 300px;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 103, 37, 0.1);
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6725;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.loader-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
    line-height: 1.4;
}

.loader-dots::after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* Disabled map state */
.map-disabled {
    pointer-events: none;
    user-select: none;
}

.map-disabled .leaflet-container {
    cursor: wait !important;
}

/* Loading progress bar */
.loader-progress {
    width: 100%;
    height: 4px;
    background-color: #f0f0f0;
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6725, #e55b1e);
    border-radius: 2px;
    animation: progressAnimation 2s ease-in-out infinite;
    transform: translateX(-100%);
}

@keyframes progressAnimation {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
    }
}

.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 {
    background-color: #ff6725;
    border: 2px solid white;
    border-radius: 50%;
    width: 15px !important;
    height: 15px !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.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;
    cursor: url(../dashboard/images/icon/pointer.svg), auto !important;
    margin-bottom: 10px;
}

.location-button:hover {
    background-color: #ff6725;
    color: #fff;
}

.location-button.active {
    background-color: #ff6725;
    color: #fff;
}

.location-button:disabled {
    background-color: #ccc;
    color: #999;
    cursor: not-allowed;
}

/* Land Details Section */
.land-details-section {
    padding: 25px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.property-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.property-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6725 0%, #e55b1e 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-right: 15px;
}

.property-title {
    flex: 1;
}

.property-title h5 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.property-title p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.property-type-badge {
    background-color: #ff6725;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: start;
    transition: all 0.3s ease;
}

.info-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.info-item-icon {
    width: 36px;
    height: 36px;
    background-color: #ff67251a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6725;
    margin-right: 12px;
    flex-shrink: 0;
}

.info-item-content {
    flex: 1;
}

.info-item-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.info-item-value {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* Ownership Section */
.ownership-section {
    padding: 25px;
}

.ownership-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.ownership-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

.ownership-header i {
    margin-right: 10px;
    color: #ff6725;
}

.owner-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.owner-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.owner-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #ff6725 0%, #e55b1e 100%);
}

.owner-info {
    display: flex;
    align-items: start;
}

.owner-avatar {
    width: 50px;
    height: 50px;
    background-color: #ff67251a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6725;
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.owner-details h6 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.owner-details p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.owner-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ff6725;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

/* Additional Details */
.additional-details {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.additional-details h6 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
}

.detail-item i {
    color: #ff6725;
    margin-right: 8px;
    width: 16px;
}

.detail-item span {
    font-size: 14px;
    color: #666;
}

.detail-item strong {
    color: #333;
}

.no-ownership-info {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-ownership-info i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.no-ownership-info p {
    font-size: 16px;
    margin: 0;
}

/* Loading states */
#ownershipLoader {
    text-align: center;
    padding: 40px;
}

.survey-map-search-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    width: calc(100% - 100px);
    max-width: 400px;
}

.survey-map-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;
}

.survey-map-search-box:focus {
    outline: 2px solid rgba(255, 103, 37, 0.5);
    box-shadow: 0 0 3px 3px rgba(255, 103, 37, 0.25);
}

.survey-map-search-box:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.survey-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;
}

.survey-search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: url(../dashboard/images/icon/pointer.svg), auto !important;
}

.survey-search-result-item:hover {
    background-color: rgba(255, 103, 37, 0.1);
}

.survey-search-result-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
}

.survey-search-result-address {
    font-size: 12px;
    color: #777;
}

.map-controls-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* Street info */
.street-info {
    background-color: #e8f4fd;
    border-left: 4px solid #2196F3;
    padding: 12px 15px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.street-info i {
    color: #2196F3;
    margin-right: 10px;
}

/* Popup styling */
.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);
}

.leaflet-popup-content {
    margin: 12px 18px;
    line-height: 1.5;
}

.leaflet-popup-tip {
    background-color: rgba(255, 255, 255, 0.95);
}

.leaflet-popup-close-button {
    color: #ff6725 !important;
}

/* Close button styling */
#closeResult {
    background-color: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: 8px;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

#closeResult:hover {
    background-color: rgba(255,255,255,0.3);
}

/* FMB Button */
.fmb-button {
    background: linear-gradient(135deg, #ff6725 0%, #e55b1e 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: url(../dashboard/images/icon/pointer.svg), auto !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgb(230, 69, 0, 0.3);
}

.fmb-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgb(230, 69, 0, 0.4);
}

.fmb-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.fmb-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background-color: #f0f0f0;
    color: #666;
}

.fmb-status.available {
    background-color: #ffede5;
    color: #FF6725;
}

.fmb-status.not-available {
    background-color: #ffebee;
    color: #c62828;
}

/* FMB Modal */
.fmb-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 199999;
    overflow: auto;
}

.fmb-modal-content {
    position: relative;
    background-color: #fff;
    margin: 20px auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.fmb-modal-header {
    background: linear-gradient(135deg, #ff6725 0%, #e55b1e 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fmb-modal-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.fmb-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: url(../dashboard/images/icon/pointer.svg), auto !important;
    padding: 0 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.fmb-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.fmb-modal-body {
    padding: 20px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fmb-pdf-container {
    width: 100%;
    height: 600px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.fmb-loading {
    text-align: center;
    padding: 40px;
}

.fmb-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    color: #ff6725;
}

.fmb-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.fmb-download-btn {
    background-color: #ff6725;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: url(../dashboard/images/icon/pointer.svg), auto !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.fmb-download-btn:hover {
    background-color: #e64500;
}

/* Pulse animation for location marker */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 103, 37, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 103, 37, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 103, 37, 0);
    }
}

/* Loading animation */
.ownership-section {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subdivision Modal */
.subdivision-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    overflow: auto;
}

.subdivision-modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.subdivision-modal-header {
    background: linear-gradient(135deg, #ff6725 0%, #e55b1e 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
}

.subdivision-modal-header h5 {
    margin: 0;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.subdivision-modal-header p {
    margin: 5px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.subdivision-modal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.subdivision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.subdivision-item {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: url(../dashboard/images/icon/pointer.svg), auto !important;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #333;
}

.subdivision-item:hover {
    background-color: #ff67251a;
    border-color: #ff6725;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.subdivision-item.selected {
    background-color: #ff6725;
    color: white;
    border-color: #ff6725;
}

.subdivision-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.subdivision-cancel-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: url(../dashboard/images/icon/pointer.svg), auto !important;
    font-size: 14px;
    transition: all 0.3s ease;
}

.subdivision-cancel-btn:hover {
    background-color: #5a6268;
}

.subdivision-confirm-btn {
    background-color: #ff6725;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: url(../dashboard/images/icon/pointer.svg), auto !important;
    font-size: 14px;
    transition: all 0.3s ease;
}

.subdivision-confirm-btn:hover {
    background-color: #e55b1e;
}

.subdivision-confirm-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.subdivision-info {
    background-color: #ffcab3;
    border-left: 4px solid #e64500;
    padding: 12px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 15px;
    font-size: 14px;
}

.subdivision-info i {
    color: #e64500;
    margin-right: 8px;
}

.leaflet-grab{
    cursor: url(../dashboard/images/icon/pointer.svg), auto !important;
}

/* Simple AI Summary Section Styles */
.ai-summary-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.ai-summary-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #ff6725;
}

.ai-summary-header {
    margin-bottom: 15px;
}

.ai-summary-header h5 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-summary-header h5 i {
    color: #ff6725;
    font-size: 18px;
}

.ai-summary-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ai-summary-content p {
    color: #495057;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
    text-align: justify;
}

/* Highlight important information */
.ai-summary-content strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .loader-content {
        padding: 20px;
        max-width: 250px;
    }

    .loader-title {
        font-size: 16px;
    }

    .loader-subtitle {
        font-size: 13px;
    }

    .loader-spinner {
        width: 40px;
        height: 40px;
        margin-bottom: 15px;
    }

    .ai-summary-section {
        padding: 15px;
    }

    .ai-summary-content {
        padding: 15px;
    }

    .ai-summary-content p {
        font-size: 13px;
        line-height: 1.7;
        text-align: left;
    }

    .survey-map-search-container {
        width: calc(100% - 60px);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}
