:root {
    --primary: #3498db;
    --dark: #333333;
    --light: #767676;
    --border: #EBEBEB;
    --accent: #2ecc71;
    --warning: #e74c3c;
    --bg-light: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, Roboto, Helvetica Neue, sans-serif;
}

body {
    color: var(--dark);
    line-height: 1.6;
    padding-bottom: 70px; /* Space for tab bar */
    background-color: var(--bg-light);
}

/* Adjust body padding for iOS and mobile */
@supports (-webkit-touch-callout: none) {
    /* iOS specific styles */
    body {
        padding-bottom: 85px; /* Increased space for iOS tab bar with home indicator */
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 75px; /* Slightly more padding on mobile */
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

.full-width-container {
    width: 100%;
    padding: 0;
    margin: 0;
}

header {
    background-color: var(--primary);
    color: white;
    padding: 10px 0;
    text-align: center;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.language-switcher {
    position: absolute;
    top: 10px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.language-switcher button {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    transition: all 0.2s ease;
}

.language-switcher button.active {
    font-weight: bold;
    background-color: white;
    color: var(--primary);
    border-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.welcome-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-top: 16px;
    border-radius: 12px;
}

.section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

h1 {
    margin: 0;
    font-size: 24px;
}

h2 {
    margin: 0 0 16px 0;
    font-size: 20px;
    color: var(--primary);
}

h3 {
    font-size: 18px;
    margin: 16px 0 8px 0;
}

.wifi-card {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    border-left: 4px solid var(--primary);
}

.wifi-password {
    font-family: monospace;
    font-size: 18px;
    background: #f1f1f1;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    margin: 8px 0;
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: block;
    margin: 0 auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.info-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.info-card i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 12px;
}

.important {
    color: var(--warning);
    font-weight: bold;
}

.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* Specific styles for iOS devices to accommodate the home indicator */
@supports (-webkit-touch-callout: none) {
    /* iOS specific styles */
    .tab-bar {
        padding-bottom: 25px; /* Extra padding for iOS home indicator */
        background-color: white; /* Ensure background is white */
    }
    
    /* Add a white safe area below the tab bar for iOS */
    .tab-bar::after {
        content: '';
        position: absolute;
        bottom: -10px; /* Extend below the visible area */
        left: 0;
        right: 0;
        height: 10px;
        background-color: white;
        z-index: 999;
    }
}

/* For all mobile devices, add slightly more breathing space */
@media (max-width: 768px) {
    .tab-bar {
        padding-bottom: 15px; /* More padding on mobile */
        background-color: white; /* Ensure background is white */
    }
}

.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light);
    text-decoration: none;
    font-size: 10px;
}

.tab i {
    font-size: 20px;
    margin-bottom: 4px;
}

.tab.active {
    color: var(--primary);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.contact-card {
    display: flex;
    align-items: center;
    margin: 16px 0;
    background: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Ajustes para espaçamento uniforme no cartão de contato */
.contact-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.contact-card p {
    margin-top: 4px;
    margin-bottom: 4px;
}

.contact-card > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.contact-card .contact-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 8px;
    gap: 8px;
}

.contact-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-right: 16px;
    object-fit: cover;
}

.contact-action {
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 85px;
    max-width: 110px;
    transition: all 0.2s ease;
    margin: 0;
}

.contact-action:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.contact-action i {
    margin-right: 5px;
    font-size: 14px;
}

.whatsapp-action {
    background: #25D366; /* WhatsApp brand color */
}

.map {
    width: 100vw;
    height: 400px;
    margin-left: calc(-50vw + 50%);
    position: relative;
    left: 0;
    right: 0;
    border-radius: 0;
    margin-top: 16px;
    margin-bottom: 16px;
}

.attractions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.attraction-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.attraction-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.attraction-info {
    padding: 16px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 8px 0;
}

.device-instructions {
    margin: 16px 0;
}

.step {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.step-number {
    position: absolute;
    left: 0;
    top: 2px;
    background: var(--primary);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.divider {
    height: 1px;
    background-color: var(--border);
    margin: 24px 0;
}

.hosts-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hosts-container .contact-card {
    flex: 1;
    min-width: 250px;
}

/* Heading size adjustments for host information */
.section h2.host-info-title {
    font-size: 18px;
    margin-bottom: 12px;
}

/* Botões de navegação rápida */
.quick-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    margin: 15px 0 25px 0;
    justify-content: space-between;
    flex-direction: row;
    width: 100%;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: auto;
    padding: 8px 4px;
    background-color: var(--primary);
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-size: 0.75em;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.quick-btn:hover, .quick-btn:focus {
    transform: translateY(-3px);
    background-color: #2980b9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.quick-btn:active {
    transform: translateY(-1px);
    background-color: #2573a7;
}

.quick-btn i {
    font-size: 1.3em;
    margin-bottom: 4px;
}

.quick-btn span {
    display: block;
    font-weight: 500;
    white-space: nowrap;
    font-size: 0.9em;
}

/* Estilos específicos para ícones */
.icon-small {
    font-size: 0.85em;
}

/* Media queries para responsividade */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    /* Ajustes para botões de navegação rápida em dispositivos móveis */
    .quick-nav {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .quick-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: 10px 12px;
        width: 100%; /* Um botão por linha */
        min-width: 100%;
        margin-bottom: 5px;
    }
    
    .quick-btn i {
        margin-bottom: 0;
        margin-right: 12px;
        min-width: 24px;
        text-align: center;
        font-size: 1.2em; /* Ícone um pouco maior para melhor visibilidade em lista */
    }
    
    .quick-btn span {
        text-align: left;
        white-space: normal;
        font-size: 1em; /* Texto um pouco maior para melhor legibilidade */
    }
    
    /* Additional mobile adjustments */
    .section h2.host-info-title {
        font-size: 16px;
    }
    
    .contact-card {
        font-size: 14px;
    }
    
    .contact-card h3 {
        font-size: 16px;
    }
    
    .contact-actions {
        flex-direction: column;
        width: 100%;
        gap: 6px;
    }
    
    .contact-action {
        padding: 5px 10px;
        font-size: 11px;
        min-width: 80px;
        width: 100%;
        max-width: none;
    }
    
    .contact-action i {
        font-size: 12px;
        margin-right: 4px;
    }
    
    .map {
        height: 300px;
    }
}

/* Estilos para o calendário */
.calendar-container {
    margin-top: 20px;
}

.calendar-headline {
    text-align: center;
    margin-bottom: 16px;
    color: var(--primary);
    font-size: 18px;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.legend-color {
    width: 15px;
    height: 15px;
    margin-right: 5px;
    border-radius: 3px;
}

.legend-available {
    background-color: #2ecc71;
}

.legend-booked {
    background-color: #e74c3c;
}

.legend-today {
    background-color: #3498db;
}

/* Adicionando estilo para dias indisponíveis (sem dados) */
.unavailable {
    background-color: #95a5a6 !important; /* Cinza para dias sem dados disponíveis */
}

.past-date {
    background-color: #bdc3c7 !important; /* Cinza claro para datas passadas */
    color: #7f8c8d !important;
}

/* Navegação do calendário */
.calendar-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.calendar-current-period {
    font-weight: bold;
    font-size: 1.1em;
    min-width: 150px;
    text-align: center;
}

.calendar-nav-btn {
    border: 1px solid #ddd;
    background-color: white;
    color: #333;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-nav-btn:hover {
    background-color: #f5f5f5;
}

.calendar-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.calendar-months {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.calendar-month {
    flex: 1;
}

.calendar-month h3 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary);
}

.calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
}

.calendar-table th {
    padding: 8px;
    text-align: center;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.85em;
    text-transform: uppercase;
}

.calendar-table td {
    width: 14.28%;
    height: 35px;
    text-align: center;
    padding: 5px;
    border-radius: 3px;
    cursor: default;
    transition: background-color 0.2s;
}

.calendar-table td.empty {
    background-color: transparent;
    cursor: default;
}

.calendar-table td.available {
    background-color: #2ecc71;
    color: white;
}

.calendar-table td.booked {
    background-color: #e74c3c;
    color: white;
}

/* Update today cell styling to include diagonal color split */
.calendar-table td.today {
    position: relative;
    overflow: hidden;
    color: white;
    font-weight: bold;
    z-index: 1;
    background-color: transparent !important; /* Remove default background */
    font-size: 1.1em; /* Make the text slightly larger */
    box-shadow: 0 1px 3px rgba(0,0,0,0.2); /* Add subtle shadow for depth */
}

/* Today cell before pseudo-element creates the diagonal split */
.calendar-table td.today:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Today and Available - blue and green diagonal split */
.calendar-table td.today.available:before {
    background: linear-gradient(135deg, #2980b9 49.9%, #27ae60 50.1%);
}

/* Today and Booked - blue and red diagonal split */
.calendar-table td.today.booked:before {
    background: linear-gradient(135deg, #2980b9 49.9%, #c0392b 50.1%);
}

/* Today and PastDate - blue and gray diagonal split */
.calendar-table td.today.past-date:before {
    background: linear-gradient(135deg, #2980b9 49.9%, #7f8c8d 50.1%);
}

/* Today and Unavailable - blue and light gray diagonal split */
.calendar-table td.today.unavailable:before {
    background: linear-gradient(135deg, #2980b9 49.9%, #95a5a6 50.1%);
}

@media (max-width: 768px) {
    .calendar-months {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .calendar-month {
        width: 100%;
    }
}

.calendar-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 10px 15px;
    margin: 10px 0 15px;
    border-radius: 4px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
}

.calendar-warning i {
    margin-right: 10px;
    font-size: 1.1em;
}

.loading-message, .error-message {
    padding: 20px;
    margin: 10px 0;
    text-align: center;
    border-radius: 4px;
}

.loading-message {
    background-color: #f8f9fa;
    color: #6c757d;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
}

/* Ajustes para responsividade no calendário */
@media (max-width: 480px) {
    .calendar-navigation {
        flex-wrap: wrap;
    }
    
    .calendar-current-period {
        order: -1;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Estilos para o texto de disclaimer do calendário */
.calendar-table + .disclaimer {
    font-size: 12px;
    color: var(--light);
    text-align: center;
    margin-top: 12px;
    padding-top: 8px;
} 