:root {
    --primary-color: #005696;
    --secondary-color: #f2a900;
    --accent-color: #00a8e8;
    --text-color: #333;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.mapaplus-tours-wrapper {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--text-color);
    padding: 20px 0;
    width: 100% !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
}

.mapaplus-tours-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 30px !important;
    padding: 20px 0 !important;
    width: 100% !important;
}

.mapaplus-tour-card {
    flex: 0 0 calc(33.333% - 30px) !important;
    min-width: 300px !important;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid #eee;
    margin-bottom: 30px;
}

.mapaplus-tour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.mapaplus-tour-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.mapaplus-tour-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease;
    /* Gracefully handles broken images */
    background-color: #005696;
    color: transparent;
}

.mapaplus-tour-image img[alt]::after {
    content: '\2708  ' attr(alt);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #005696, #00a8e8);
    color: white;
    font-size: 0.9rem;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

.mapaplus-tour-card:hover .mapaplus-tour-image img {
    transform: scale(1.1);
}

.mapaplus-tour-price-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.mapaplus-tour-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mapaplus-tour-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    color: var(--primary-color);
    line-height: 1.4;
}

.mapaplus-tour-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.mapaplus-open-form {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    text-align: center;
    width: 100%;
}

.mapaplus-open-form:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Modal Styles */
.mapaplus-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.mapaplus-modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mapaplus-close-modal {
    color: #aaa;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.mapaplus-close-modal:hover {
    color: var(--primary-color);
}

/* Modern Form Styles */
.modern-form h2 {
    margin-top: 0;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

.tour-selection {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 5px solid var(--secondary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group.row {
    display: flex;
    gap: 20px;
}

.col {
    flex: 1;
}

.modern-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.modern-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.modern-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 86, 150, 0.1);
}

.form-actions {
    margin-top: 30px;
}

.btn-submit {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    width: 100%;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #e19d00;
}

#form-response-message {
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
}

.success-message {
    color: #28a745;
}

.error-message {
    color: #dc3545;
}

@media (max-width: 600px) {
    .form-group.row {
        flex-direction: column;
        gap: 0;
    }

    .mapaplus-tour-card {
        flex: 0 0 100% !important;
    }
}