/* Tofoland Page Specific Styles */

/* Override body styles for this page */
.tofoland-body {
    height: auto;
    overflow-y: auto;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--light-blue) 100%);
}

/* Header adjustments */
.header {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-green);
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--radius-medium);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.nav-link:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Main content */
.tofoland-main {
    padding-top: 2rem;
}

/* Hero Section */
.tofoland-hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    color: var(--text-light);
    padding: 1.5rem 0;
    margin-bottom: 3rem;
}

.tofoland-hero .hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

.tofoland-hero .hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tofoland-hero .hero-title i {
    color: var(--yellow);
    animation: pulse 2s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
    margin: 0;
    text-align: right;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Introduction Section - Improved Alignment and Spacing */
.intro-section {
    background: var(--bg-white);
    padding: 1.2rem 0 1.5rem 0; /* Further reduce vertical padding */
    margin-bottom: 1.2rem; /* Less margin below */
    box-shadow: var(--shadow-soft);
}

.intro-content {
    text-align: left; /* Align content left */
    max-width: 1200px; /* Match header/container width */
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    justify-content: flex-start; /* Align title left */
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem; /* Reduce space below title */
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title i {
    color: var(--primary-blue);
}

.intro-text {
    max-width: 100%; /* Allow wider content */
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 1.2rem; /* Reduce space below text */
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    background: var(--bg-section);
    padding: 2rem;
    border-radius: var(--radius-large);
    text-align: left;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-green);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    display: block;
}

.feature-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Maps Section */
.maps-section {
    padding: 4rem 0;
    background: var(--bg-white);
    margin-bottom: 3rem;
}

.plots-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

/* Plot Cards */
.plot-card {
    background: var(--bg-light);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 500px;
}

.plot-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-blue);
}

.plot-card:nth-child(1) {
    border-color: var(--red);
}

.plot-card:nth-child(2) {
    border-color: var(--primary-blue);
}

.plot-card:nth-child(1):hover {
    border-color: var(--red);
}

.plot-card:nth-child(2):hover {
    border-color: var(--primary-blue);
}

.plot-info {
    padding: 2rem;
    background: var(--bg-white);
}

.plot-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plot-title::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-green);
}

.plot-card:nth-child(1) .plot-title::before {
    background: var(--red);
}

.plot-card:nth-child(2) .plot-title::before {
    background: var(--primary-blue);
}

.plot-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: var(--text-gray);
}

.detail-item i {
    color: var(--primary-green);
    width: 20px;
    text-align: center;
}

.detail-item strong {
    color: var(--text-dark);
}

/* Map Container */
.map-container {
    height: 500px;
    border-radius: 0 var(--radius-large) var(--radius-large) 0;
    overflow: hidden;
    position: relative;
}

.map {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    min-height: 300px;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--purple) 0%, var(--primary-blue) 100%);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-section .section-title {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.contact-section .section-title i {
    color: var(--yellow);
}

.contact-section p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.7;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-medium);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.contact-btn.primary {
    background: var(--yellow);
    color: var(--text-dark);
}

.contact-btn.primary:hover {
    background: #ffd700;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.contact-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.contact-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .tofoland-hero .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .tofoland-hero .hero-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-subtitle {
        text-align: center;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .plots-container {
        gap: 2rem;
    }
    
    .plot-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .map-container {
        height: 350px;
        border-radius: 0 0 var(--radius-large) var(--radius-large);
        /* Ensure maps render properly on mobile */
        min-height: 300px;
        position: relative;
    }
    
    .map {
        /* Force proper dimensions on mobile */
        width: 100% !important;
        height: 100% !important;
        min-height: 300px;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .tofoland-hero {
        padding: 1rem 0;
    }
    
    .tofoland-hero .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .plot-info {
        padding: 1.5rem;
    }
}

/* Animation for map loading */
.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    background: var(--bg-section);
    color: var(--text-gray);
    font-size: 1.1rem;
}

.map-loading i {
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Large screens optimization */
@media (min-width: 1200px) {
    .plot-card {
        grid-template-columns: 350px 1fr;
    }
    
    .map-container {
        height: 600px;
    }
    
    .map-loading {
        height: 600px;
    }
}

/* Green border for Plot 1 */
.plot-card-green {
    border-color: var(--primary-green) !important;
}
.plot-card-green .plot-title::before {
    background: var(--primary-green) !important;
}

/* Red status label for Pending */
.status-label.status-pending {
    background: var(--red);
    color: #fff;
    padding: 0.2em 0.7em;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1em;
    margin-left: 0.5em;
    display: inline-block;
    letter-spacing: 1px;
}
