/* ============================================================================
   MAIN.CSS - Application-specific styles
   ============================================================================ */

/* ============================================================================
   ABOUT PAGE STYLES
   ============================================================================ */

.about-solution-card {
    border: none;
    background: linear-gradient(135deg, #F4F4F4 0%, white 100%);
    padding: 2rem;
    border-radius: var(--border-radius-xl);
}

.about-lead-text {
    color: var(--brand-blue);
    font-weight: 600;
}

.about-body-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-highlight-text {
    color: var(--brand-yellow-dark);
}

.about-success-alert {
    border-left: 0.3125rem solid var(--brand-accent-success);
    border-radius: var(--border-radius-md);
}

.about-cta-alert {
    border-radius: var(--border-radius-lg);
    border: none;
    background: var(--brand-accent-success-light);
    color: var(--brand-accent-success-dark);
    font-size: 1.1rem;
    padding: 1.5rem;
}

/* ============================================================================
   TOAST NOTIFICATIONS
   ============================================================================ */

.toast-container {
    position: fixed;
    top: 5rem;
    right: 1.25rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 25rem;
}

.toast-notification {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.15);
    animation: toastSlideIn 0.4s ease-out;
    min-width: 18.75rem;
    backdrop-filter: blur(0.625rem);
}

.toast-notification.toast-hiding {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.875rem;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.toast-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0;
}

.toast-message {
    font-size: 0.8125rem;
    margin: 0;
    opacity: 0.9;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.6;
    transition: opacity 0.2s;
    font-size: 1rem;
}

.toast-close:hover {
    opacity: 1;
    background: none;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 0.1875rem;
    border-radius: 0 0 0.75rem 0.75rem;
    animation: toastProgress 5s linear forwards;
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Toast Types */
.toast-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left: 4px solid #10b981;
    color: #065f46;
}
.toast-success .toast-icon {
    background: #10b981;
    color: white;
}
.toast-success .toast-progress {
    background: #10b981;
}

.toast-error, .toast-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid #ef4444;
    color: #991b1b;
}
.toast-error .toast-icon, .toast-danger .toast-icon {
    background: #ef4444;
    color: white;
}
.toast-error .toast-progress, .toast-danger .toast-progress {
    background: #ef4444;
}

.toast-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    color: #92400e;
}
.toast-warning .toast-icon {
    background: #f59e0b;
    color: white;
}
.toast-warning .toast-progress {
    background: #f59e0b;
}

.toast-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}
.toast-info .toast-icon {
    background: #3b82f6;
    color: white;
}
.toast-info .toast-progress {
    background: #3b82f6;
}

/* ============================================================================
   BUTTON HOVER STATES
   ============================================================================ */

.btn:hover {
    background-color: var(--brand-grey-300);
    color: rgb(0, 0, 0);
}

/* ============================================================================
   PROPERTY IMAGE WRAPPER
   ============================================================================ */

.property-img-wrapper {
    width: 9.375rem;
    height: 9.375rem;
    margin-bottom: 1rem;
    border-radius: 0.625rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.property-img-wrapper:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0.625rem rgba(0, 0, 0, 0.1);
}

/* ============================================================================
   RESPONSIVE UTILITIES
   ============================================================================ */

@media (max-width: 576px) {
    .toast-container {
        top: auto;
        bottom: 1.25rem;
        right: 0.625rem;
        left: 0.625rem;
        max-width: none;
    }
    .toast-notification {
        min-width: auto;
    }
    .responsive-btn {
        padding: 0.25rem 0.5rem;
        font-size: x-small;
        border: none;
        text-decoration: none;
        cursor: pointer;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }
    p {
        font-size: small;
    }
}

/* ============================================================================
   PAGE HERO SECTIONS
   ============================================================================ */

.hero-section {
    background: var(--gradient-accent);
    padding: 4rem 0;
    color: white;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-section h1 {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: white !important;
    color: white !important;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 50rem;
    margin: 0 auto;
}

/* ============================================================================
   SECTION TITLES
   ============================================================================ */

.section-title {
    color: var(--brand-blue);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 5rem;
    height: 0.25rem;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ============================================================================
   FEATURE CARDS
   ============================================================================ */

.feature-card {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    height: 100%;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover), var(--shadow-yellow);
    border-color: var(--brand-yellow);
}

.feature-icon {
    width: 4.375rem;
    height: 4.375rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    color: var(--brand-blue);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================================
   TIMELINE ITEMS
   ============================================================================ */

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-item::after {
    content: '\2713';
    position: absolute;
    left: 0.8125rem;
    top: 0.5rem;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.timeline-item h4 {
    color: var(--brand-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
}

/* ============================================================================
   STATS CARDS
   ============================================================================ */

.stats-card {
    background: var(--gradient-accent);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.stats-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ============================================================================
   CONTACT CARDS
   ============================================================================ */

.contact-card {
    background: white;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: none;
}

.contact-card .card-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border: none;
}

.contact-card .card-header h3 {
    color: white !important;
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
}

.contact-card .card-body {
    padding: 2.5rem;
}

.contact-card .form-label {
    color: var(--brand-blue) !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-card .form-control {
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1rem;
    transition: all var(--transition-base);
}

.contact-card .form-control:focus {
    border-color: var(--brand-yellow);
    box-shadow: 0 0 0 0.25rem rgba(243, 193, 48, 0.15);
}

/* ============================================================================
   SUBMIT BUTTONS
   ============================================================================ */

.btn-submit {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.875rem 3rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-yellow);
}

/* ============================================================================
   MISSION BOX
   ============================================================================ */

.mission-box {
    background: linear-gradient(135deg, #FFFAE0 0%, #FFF5F5 100%);
    border-left: 0.3125rem solid var(--brand-yellow);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 3rem;
}

.mission-box p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 0;
}

.mission-box strong {
    color: var(--brand-blue);
    font-weight: 700;
}

/* ============================================================================
   ERROR PAGES (404, 500)
   ============================================================================ */

.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ============================================================================
   SERVICE ICONS
   ============================================================================ */

.service-icon {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
}

/* ============================================================================
   PROPERTY MAP PAGE STYLES
   ============================================================================ */

.map-page-container {
    padding: 1.5rem 0;
}

.map-header {
    margin-bottom: 1.5rem;
}

.map-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.map-header p {
    color: #666;
    margin-bottom: 0;
}

.map-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.map-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.map-stat-badge i {
    color: #F3C130;
}

.map-stat-badge strong {
    color: #333;
}

/* Main map container */
.property-map-wrapper {
    display: flex;
    gap: 1rem;
    height: calc(100vh - 250px);
    min-height: 31.25rem;
}

.map-main {
    flex: 1;
    position: relative;
}

#property-map {
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
    border: 1px solid #dee2e6;
}

/* Zone sidebar */
.zone-sidebar {
    width: 18.75rem;
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid #dee2e6;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.zone-sidebar-header {
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.zone-sidebar-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.zone-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.zone-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.zone-item:hover {
    background: #f8f9fa;
}

.zone-item.active {
    background: #fff3cd;
}

.zone-color {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.zone-info {
    flex: 1;
    min-width: 0;
}

.zone-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zone-count {
    font-size: 0.75rem;
    color: #666;
}

/* Map controls */
.map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map-control-btn {
    width: 2.5rem;
    height: 2.5rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.map-control-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.map-control-btn.active {
    background: #F3C130;
    color: #000;
    border-color: #F3C130;
}

/* Legend */
.map-legend {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 10;
    background: rgba(255,255,255,0.95);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.legend-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-marker {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #F3C130;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.legend-polygon {
    width: 1rem;
    height: 0.75rem;
    background: rgba(243, 193, 48, 0.3);
    border: 1px solid #F3C130;
    border-radius: 0.125rem;
}

/* Custom popup styles */
.property-popup {
    max-width: 15.625rem;
}

.property-popup-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.property-popup-code {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.property-popup-info {
    font-size: 0.8125rem;
    color: #555;
}

.property-popup-info i {
    width: 1rem;
    color: #F3C130;
}

/* Property marker style */
.property-marker {
    width: 1.5rem;
    height: 1.5rem;
    background: #F3C130;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 991px) {
    .property-map-wrapper {
        flex-direction: column;
        height: auto;
    }

    .map-main {
        height: 25rem;
    }

    .zone-sidebar {
        width: 100%;
        max-height: 15.625rem;
    }
}

@media (max-width: 576px) {
    .map-stats {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .map-main {
        height: 18.75rem;
    }
}
