/* Modern Theme 4 Styles */
:root {
    --primary-color: #e91e63;
    --text-color: #333;
    --bg-color: #f4f4f4;
    --card-bg: #fff;
    --modal-overlay: rgba(0, 0, 0, 0.7);
}

body {
    font-family: 'Outfit', 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Tour Cards Grid */
.tour-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tour-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tour-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.tour-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tour-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #222;
}

.tour-card-price {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: auto;
    margin-bottom: 1rem;
}

.tour-info-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: white;
    color: #A67C52;
    border: 2px solid #A67C52;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    margin-top: 0.5rem;
}

.tour-info-btn:hover {
    background-color: #A67C52;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(166, 124, 82, 0.3);
}

/* Modal Styles */
.theme4-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--modal-overlay);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme4-modal.show {
    display: block;
    opacity: 1;
}

.theme4-modal-content {
    background-color: #fff;
    margin: 3% auto;
    padding: 0;
    border-radius: 12px;
    width: 85%;
    max-width: 750px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.theme4-modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    border-radius: 12px 12px 0 0;
}

.theme4-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.theme4-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.theme4-modal-close:hover {
    color: #000;
}

.theme4-modal-body {
    padding: 2rem;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
}

/* Adjustments for content inside modal */
#reserva {
    padding: 0 !important;
    background: transparent !important;
}

.reserva .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

/* Hide original elements that are now in cards or modal */
.portada,
.banner_separador {
    display: none !important;
}

/* Ensure form elements look good in modal */
.reserva .izquierda,
.reserva .derecha {
    padding: 0 15px;
}

@media (max-width: 768px) {
    .theme4-modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-width: none;
    }

    .theme4-modal-body {
        height: calc(100% - 60px);
    }
}

/* Wizard Styles */
.wizard-step {
    display: none;
    animation: fadeIn 0.5s;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.wizard-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.wizard-btn-prev {
    background-color: #e0e0e0;
    color: #333;
}

.wizard-btn-prev:hover {
    background-color: #d5d5d5;
}

.wizard-btn-next {
    background-color: var(--primary-color);
    color: #fff;
}

.wizard-btn-next:hover {
    opacity: 0.9;
}

.wizard-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}