/* EC By Location - Complete Styles */
/* Matches VerifyMyLand styling exactly */

/* Root Variables - Same as VerifyMyLand */
:root {
    --primary-color: #ff6725;
    --primary-hover: #e55510;
    --primary-light: #ff8a50;
    --primary-bg: #fff5f0;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #333;
    --gray-color: #666;
    --light-gray: #999;
    --bg-gray: #f8f9fa;
    --border-gray: #e9ecef;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-orange: 0 15px 40px rgba(255, 103, 37, 0.25);
    --transition: all 0.3s ease;
}

/* Header Section - Same as VerifyMyLand */
.ec-loc-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 50px 0;
    margin-bottom: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-orange);
    position: relative;
    overflow: hidden;
}

.ec-loc-header-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

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

.ec-loc-header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.header-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.header-icon-wrapper i {
    font-size: 40px;
    color: white;
}

.ec-loc-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease;
}

.ec-loc-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    animation: fadeInUp 0.6s ease 0.2s;
    animation-fill-mode: both;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

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

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.badge-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.9rem;
    color: white;
    animation: slideInDown 0.5s ease;
}

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

.badge-item i {
    margin-right: 8px;
}

/* Section Titles - Same as VerifyMyLand */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--dark-color);
    position: relative;
    padding-left: 30px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background: var(--primary-color);
    border-radius: 3px;
}

/* Map Section - Same as VerifyMyLand */
.map-section {
    padding: 30px;
    background: white;
}

.map-container {
    position: relative;
    height: 550px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #f0f0f0;
}

#ecLocationMap {
    height: 100%;
    width: 100%;
    z-index: 1;
}

/* Map Search - Same as VerifyMyLand */
.verify-map-search-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 900;
    width: 350px;
}

.verify-search-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
    font-size: 16px;
}

.verify-map-search-input {
    width: 100%;
    padding: 14px 45px 14px 45px;
    border: none;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    transition: var(--transition);
    background: white;
}

.verify-map-search-input:focus {
    outline: none;
    box-shadow: 0 8px 30px rgba(255, 103, 37, 0.25);
    transform: translateY(-2px);
}

.clear-search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--light-gray);
    cursor: url(../dashboard/images/icon/pointer.svg), pointer !important;
    padding: 5px;
    transition: color 0.3s ease;
}

.clear-search-btn:hover {
    color: var(--primary-color);
}

.verify-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    max-height: 350px;
    overflow-y: auto;
    display: none;
    z-index: 1002;
}

.search-result-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-gray);
    cursor: url(../dashboard/images/icon/pointer.svg), pointer !important;
    transition: var(--transition);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-gray);
}

.search-result-item .result-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.search-result-item .result-address {
    font-size: 0.85rem;
    color: var(--gray-color);
}

/* Map Controls - Same as VerifyMyLand */
.map-controls {
    position: absolute;
    bottom: 30px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 900;
}

.map-control-btn {
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: url(../dashboard/images/icon/pointer.svg), pointer !important;
    transition: var(--transition);
}

.map-control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 103, 37, 0.3);
}

.map-control-btn i {
    color: var(--primary-color);
    font-size: 20px;
}

/* Map Loading - Same as VerifyMyLand */
.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.97);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 999;
}

.loading-animation {
    display: flex;
    gap: 8px;
}

.loading-circle {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: loadingBounce 1.4s infinite ease-in-out both;
}

.loading-circle:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-circle:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loadingBounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.loading-text {
    color: var(--gray-color);
    font-weight: 500;
    margin-top: 20px;
}

/* Property Details Grid */
.property-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.detail-card {
    background: var(--bg-gray);
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: var(--transition);
}

.detail-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.detail-label {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-bottom: 5px;
    font-weight: 500;
}

.detail-value {
    font-size: 1.1rem;
    color: var(--dark-color);
    font-weight: 700;
}

/* Edit Notice */
.edit-notice {
    background: #fff3cd;
    color: #856404;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ffc107;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-notice i {
    flex-shrink: 0;
}

/* Form Section */
.form-section {
    background: var(--bg-gray);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
}

.form-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-gray);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    padding: 10px 15px;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 103, 37, 0.1);
    outline: none;
}

.form-control:read-only {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Survey Subdivision Section */
.survey-subdivision-section {
    margin-top: 20px;
}

.survey-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.survey-input-group .form-control {
    flex: 1;
}

.survey-input-group .separator {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-color);
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--gray-color);
}

/* Date Info */
.date-info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #17a2b8;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-info i {
    flex-shrink: 0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-reset {
    background: var(--gray-color);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: url(../dashboard/images/icon/pointer.svg), pointer !important;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-reset:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-get-ec {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: url(../dashboard/images/icon/pointer.svg), pointer !important;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-get-ec:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-orange);
}

.btn-get-ec:disabled {
    background: var(--light-gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Steps Container */
.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.step-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 15px;
    box-shadow: var(--shadow-sm);
}

.step-content h5 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    padding: 30px 0;
}

.feature-card {
    text-align: center;
    padding: 25px 15px;
    border-radius: 12px;
    background: var(--bg-gray);
    transition: var(--transition);
    border: 1px solid var(--border-gray);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
    box-shadow: var(--shadow-sm);
}

.feature-card h5 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin: 0;
}

/* Notifications */
.ec-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 350px;
    transition: right 0.3s ease-in-out;
    border: 1px solid var(--border-gray);
}

.ec-notification.show {
    right: 20px;
}

.ec-notification-error {
    border: 1px solid var(--danger-color);
}

.ec-notification-error i {
    color: var(--danger-color);
    font-size: 1.3rem;
}

.ec-notification-info {
    border: 1px solid var(--info-color);
}

.ec-notification-info i {
    color: var(--info-color);
    font-size: 1.3rem;
}

.ec-notification span {
    color: var(--dark-color);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ec-loc-header h1 {
        font-size: 2rem;
    }

    .ec-loc-header p {
        font-size: 1rem;
    }

    .trust-badges {
        flex-direction: column;
        gap: 10px;
    }
    .coordinate-input-panel {
        position: static;
        margin-top: 15px;
        max-width: 100%;
    }

    .input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-search-coords {
        width: 100%;
    }

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

    .steps-container {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-reset,
    .btn-get-ec {
        width: 100%;
        justify-content: center;
    }

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

    .survey-input-group {
        flex-direction: column;
    }

    .survey-input-group .separator {
        display: none;
    }
}

@media (max-width: 576px) {
    .map-section {
        padding: 15px;
    }

    .coordinate-input-panel {
        padding: 15px;
    }

    .form-section {
        padding: 15px;
    }

    .steps-container {
        padding: 20px 10px;
    }
}

/* Custom Map Marker - Same as VerifyMyLand */
.custom-marker {
    background: transparent;
    border: none;
}

.marker-inner {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(255, 103, 37, 0.5);
    position: relative;
}

.marker-inner::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.animate-marker {
    animation: markerDrop 0.5s ease;
}

@keyframes markerDrop {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* User Location Marker - Pulsing blue dot with orange ring */
.user-location-marker {
    background: transparent;
    border: none;
}

.user-location-dot {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 3px solid white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(255, 103, 37, 0.5);
    z-index: 2;
}

.user-location-ring {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    animation: userLocationPulse 2s infinite;
    z-index: 1;
}

@keyframes userLocationPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.5;
    }
}

/* Subdivision Modal Styles - Same as VerifyMyLand */
.subdivision-info {
    background: var(--bg-gray);
    border-radius: 10px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-color);
    font-size: 14px;
}

.subdivision-info i {
    color: var(--primary-color);
}

.subdivision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
}

.subdivision-item {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    cursor: url(../dashboard/images/icon/pointer.svg), pointer !important;
    transition: var(--transition);
    border: 2px solid transparent;
    font-weight: 500;
    font-size: 16px;
}

.subdivision-item:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.subdivision-item.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 103, 37, 0.3);
}

/* Subdivision Grid Scrollbar */
.subdivision-grid::-webkit-scrollbar {
    width: 8px;
}

.subdivision-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.subdivision-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.subdivision-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Responsive Subdivision Grid */
@media (max-width: 768px) {
    .subdivision-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}
