* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

.navigation {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    position: relative;
}

/* Menu hamburger removido - usando menu fixo otimizado */



.nav-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.nav-btn {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.nav-btn.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    padding: 20px;
}

.header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 300;
    letter-spacing: 2px;
}

.header p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    opacity: 0.9;
    font-style: italic;
}

.day-card {
    background: white;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.day-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.day-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.day-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.day-header h2 {
    font-size: clamp(1.3rem, 4vw, 2rem);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

.day-header .date-info {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    opacity: 0.9;
    position: relative;
    z-index: 1;
    font-style: italic;
}

.activities {
    padding: 25px;
}

.activity {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
    flex-wrap: wrap;
    gap: 10px;
}

.activity:last-child {
    border-bottom: none;
}

.activity:hover {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding-left: 15px;
    margin: 0 -10px;
}


.activity-time {
    font-weight: bold;
    color: #2c3e50;
    min-width: 70px;
    margin-right: 15px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    flex-shrink: 0;
}

.activity-icon {
    margin-right: 10px;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.activity-text {
    flex: 1;
    font-size: clamp(0.9rem, 2.2vw, 1rem);
    min-width: 200px;
}

.activity-details {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 5px;
    justify-content: flex-end;
}

.activity-duration {
    color: #666;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-style: italic;
}

.booking-required {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: clamp(0.7rem, 1.8vw, 0.8rem);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price {
    color: #27ae60;
    font-weight: bold;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.info-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.info-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.reserved-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
}

.reserved-btn:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: scale(1.02);
}
.pending-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}
.pending-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: scale(1.02);
}

/*
LEGENDA REMOVIDA PARA ECONOMIA DE ESPAÇO
Mantido comentado para compatibilidade futura

.legend {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #e8e8e8;
}

.legend h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 300;
    text-align: center;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    padding: 8px;
    background: #f8f9fa;
    border-radius: 10px;
}

.legend-item i {
    margin-right: 8px;
    width: 20px;
}
*/

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid #e8e8e8;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.budget-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid #e8e8e8;
}

.budget-section h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    text-align: center;
    font-weight: 300;
}

.budget-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    gap: 10px;
}

.toggle-btn {
    background: #ecf0f1;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 2.2vw, 1rem);
    font-weight: bold;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
}

.budget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.budget-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    border-left: 5px solid #2c3e50;
}

.budget-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    display: flex;
    align-items: center;
    gap: 10px;
}

.budget-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.budget-total {
    border-top: 2px solid #2c3e50;
    padding-top: 10px;
    margin-top: 15px;
    font-weight: bold;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}


/* Estilos para o modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

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

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .navigation {
        padding: 15px 10px;
    }

    .nav-links {
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding: 0 5px;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
        border-radius: 15px;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: auto;
    }

    /* Melhoria para mobile: manter horário + ícone + texto na mesma linha */
    .activity {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    /* Container principal da atividade - primeira linha */
    .activity-main {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .activity-time {
        min-width: 60px;
        margin-right: 10px;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .activity-icon {
        margin-right: 6px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .activity-text {
        flex: 1;
        font-size: 0.9rem;
        line-height: 1.3;
        min-width: 0; /* Permite quebra de texto */
    }

    /* Detalhes ficam na linha de baixo */
    .activity-details {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
        margin-left: 0; /* Remove alinhamento para permitir posicionamento à direita */
    }

    .budget-toggle {
        flex-direction: column;
        align-items: center;
    }

    .toggle-btn {
        width: 200px;
    }
}

/* Media queries para tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .navigation {
        padding: 18px 15px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-btn {
        padding: 10px 18px;
        font-size: 0.8rem;
        border-radius: 18px;
    }
}

@media (max-width: 480px) {
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .budget-grid {
        grid-template-columns: 1fr;
    }

    .navigation {
        padding: 12px 8px;
    }

    .nav-links {
        gap: 6px;
        padding: 0 3px;
    }

    .nav-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
        border-radius: 12px;
    }
}