/* contact-style.css - With Interactive Map Controls */

/* Contact Content */
.contact-content {
    max-width: 1200px;
    margin: 100px auto 60px;
    padding: 0 20px;
}

.contact-content h1 {
    font-size: 3rem;
    color: #222;
    margin-bottom: 50px;
    font-weight: 700;
    text-align: left;
}

/* Contact Grid - Three Columns Side-by-Side */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Contact Column */
.contact-column {
    display: flex;
    flex-direction: column;
}

.contact-column h2 {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffcc00;
}

.contact-column h2 i {
    color: #c52c2c;
    font-size: 1.3rem;
}

/* Contact Cards */
.contact-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #c52c2c;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hours-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #ffcc00;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-card p {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}

.contact-card p + p {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Hours Info */
.hour-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.hour-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hour-row:first-child {
    padding-top: 0;
}

.day {
    font-weight: 600;
    color: #222;
    font-size: 1rem;
}

.time {
    color: #666;
    font-weight: 500;
    font-size: 1rem;
}

/* Divider */
.divider {
    height: 1px;
    background: #ddd;
    margin: 40px 0;
}

/* Map Section */
.map-section {
    margin-top: 40px;
}

.map-section h3 {
    font-size: 1.8rem;
    color: #222;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.map-section h3 i {
    color: #c52c2c;
    font-size: 1.5rem;
}

/* Map Container */
.map-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Map Controls Bar */
.map-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.map-type-toggle {
    display: flex;
    gap: 10px;
}

.map-type-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.map-type-btn.active {
    background: #c52c2c;
    border-color: #c52c2c;
    color: white;
}

.map-type-btn:hover:not(.active) {
    border-color: #c52c2c;
    color: #c52c2c;
}

.directions-btn {
    padding: 8px 20px;
    background: #4CAF50;
    border: none;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.directions-btn:hover {
    background: #388E3C;
}

/* Map Display */
.map-display {
    position: relative;
    height: 400px;
    background: #f0f0f0;
}

#mapFrame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Map Overlay */
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.location-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
}

.marker-dot {
    width: 12px;
    height: 12px;
    background: #c52c2c;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.marker-label {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.location-marker:hover .marker-label {
    opacity: 1;
}

/* Location List */
.location-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1px;
    background: #f0f0f0;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.location-item:hover {
    background: #f9f9f9;
}

.location-item.active {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
}

.location-icon {
    font-size: 1.2rem;
    color: #c52c2c;
    width: 24px;
    text-align: center;
}

.location-name {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #222;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 20px;
}

/* Directions Form */
.directions-form .form-group {
    margin-bottom: 20px;
}

.directions-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.directions-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.directions-form input:focus {
    outline: none;
    border-color: #c52c2c;
}

.transport-options {
    display: flex;
    gap: 10px;
}

.transport-btn {
    flex: 1;
    padding: 10px;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.transport-btn.active {
    background: #c52c2c;
    border-color: #c52c2c;
    color: white;
}

.directions-result {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.directions-result h4 {
    margin: 0 0 15px 0;
    color: #222;
}

.directions-steps {
    margin: 0 0 15px 0;
    padding-left: 20px;
}

.directions-steps li {
    margin-bottom: 8px;
    color: #555;
}

.estimated-time {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    margin: 0;
}

.estimated-time strong {
    color: #222;
}

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

/* Simple Footer */
.simple-footer {
    background: #222;
    color: #ddd;
    padding: 30px 20px;
    text-align: center;
    margin-top: 60px;
}

.simple-footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .contact-column:nth-child(3) {
        grid-column: span 2;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .location-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-content {
        margin-top: 80px;
    }
    
    .contact-content h1 {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-column:nth-child(3) {
        grid-column: 1;
        max-width: 100%;
    }
    
    .map-controls-bar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .map-type-toggle {
        justify-content: center;
    }
    
    .location-list {
        grid-template-columns: 1fr;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-content h1 {
        font-size: 2rem;
    }
    
    .contact-column h2 {
        font-size: 1.3rem;
    }
    
    .contact-card p {
        font-size: 1rem;
    }
    
    .hour-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        text-align: left;
    }
    
    .day, .time {
        width: 100%;
    }
    
    .map-type-toggle {
        flex-direction: column;
    }
    
    .transport-options {
        flex-direction: column;
    }
}