/* ===== CORREÇÕES COMPLETAS PARA SAFARI MOBILE - VERSÃO FINAL ===== */

/* Reset completo para Safari */
* {
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Permitir seleção de texto em inputs e textareas */
input, textarea, select {
    -webkit-user-select: text;
    user-select: text;
}

/* Correções de viewport para iOS */
@supports (-webkit-touch-callout: none) {
    html {
        height: -webkit-fill-available;
    }
    
    body {
        min-height: -webkit-fill-available;
        height: -webkit-fill-available;
    }
    
    .hero {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
}

/* ===== CORREÇÕES CRÍTICAS DE CORES E CONTRASTE ===== */

/* Força cores corretas em todo o site */
body {
    color: #333333 !important;
    background-color: #ffffff !important;
    -webkit-text-fill-color: #333333 !important;
}

/* Correções específicas para textos */
h1, h2, h3, h4, h5, h6 {
    color: #222222 !important;
    -webkit-text-fill-color: #222222 !important;
    opacity: 1 !important;
}

p, span, div, a {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    opacity: 1 !important;
}

/* Correções para hero section - TEXTO BRANCO EM FUNDO ESCURO */
.hero, .hero *:not(a):not(button) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}

.hero h1, .hero .hero-content h1 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6) !important;
}

.hero .hero-content p, .hero p {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}

/* ===== CORREÇÕES CRÍTICAS DAS ESTATÍSTICAS ===== */

/* Estatísticas no desktop */
.hero-stats {
    display: flex !important;
    justify-content: space-around !important;
    gap: 1.5rem !important;
    margin: 2.5rem 0 !important;
    width: 100% !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 1.5rem !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 12px !important;
}

.hero-stats .stat {
    text-align: center !important;
    flex: 1 !important;
    min-width: 0 !important;
    transition: transform 0.3s ease !important;
}

.hero-stats .stat-number {
    font-size: clamp(2rem, 4vw, 2.8rem) !important;
    font-weight: 700 !important;
    color: #00c3ff !important;
    -webkit-text-fill-color: #00c3ff !important;
    display: block !important;
    text-shadow: 0 2px 8px rgba(0,195,255,0.3) !important;
}

.hero-stats .stat-label {
    font-size: clamp(0.8rem, 2vw, 0.9rem) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 0.9 !important;
    margin-top: 0.25rem !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4) !important;
}

/* ===== CORREÇÕES MOBILE CRÍTICAS DAS ESTATÍSTICAS ===== */

@media (max-width: 768px) {
    .hero-stats {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0.5rem !important;
        padding: 1rem 0.5rem !important;
        margin: 1.5rem 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        background: rgba(0, 0, 0, 0.4) !important;
        border-radius: 8px !important;
    }
    
    .hero-stats .stat {
        min-width: 0 !important;
        flex: 1 1 0 !important;
        text-align: center !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .hero-stats .stat-number {
        font-size: 1.8rem !important;
        font-weight: 700 !important;
        color: #00c3ff !important;
        -webkit-text-fill-color: #00c3ff !important;
        text-shadow: 0 2px 6px rgba(0,195,255,0.4) !important;
    }
    
    .hero-stats .stat-label {
        font-size: 0.75rem !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        opacity: 0.95 !important;
        text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        gap: 0.3rem !important;
        padding: 0.8rem 0.3rem !important;
        margin: 1rem 0 !important;
    }
    
    .hero-stats .stat-number {
        font-size: 1.5rem !important;
    }
    
    .hero-stats .stat-label {
        font-size: 0.7rem !important;
    }
}

/* ===== CORREÇÕES CRÍTICAS DO MENU MOBILE ===== */

.mobile-menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1001 !important;
    width: 48px !important;
    height: 48px !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    cursor: pointer !important;
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
    order: 3 !important;
    transition: all 0.2s ease !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    align-items: center !important;
    justify-content: center !important;
}

.mobile-menu-toggle span {
    display: block !important;
    width: 24px !important;
    height: 3px !important;
    background: #222222 !important;
    margin: 3px 0 !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px) !important;
    background: #27ae60 !important;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0 !important;
    transform: scale(0) !important;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px) !important;
    background: #27ae60 !important;
}

/* Correções para menu lateral */
.side-menu {
    position: fixed !important;
    top: 0 !important;
    right: -300px !important;
    width: 300px !important;
    height: 100vh !important;
    height: -webkit-fill-available !important;
    background: #ffffff !important;
    z-index: 10001 !important;
    transition: right 0.3s ease !important;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
}

.side-menu.active {
    right: 0 !important;
}

.side-menu-content {
    padding: 2rem !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    z-index: 10002 !important;
}

.side-menu-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 2rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.side-menu-close {
    width: 40px !important;
    height: 40px !important;
    background: #f5f5f5 !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    transition: all 0.2s ease !important;
}

.side-menu-close span {
    position: absolute !important;
    width: 20px !important;
    height: 2px !important;
    background: #666 !important;
    transition: all 0.2s ease !important;
}

.side-menu-close span:first-child {
    transform: rotate(45deg) !important;
}

.side-menu-close span:last-child {
    transform: rotate(-45deg) !important;
}

.side-menu-nav {
    flex: 1 !important;
    position: relative !important;
    z-index: 10002 !important;
}

.side-menu-links {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.side-menu-links li {
    margin-bottom: 0.5rem !important;
    opacity: 1 !important;
    transform: none !important;
}

.side-menu-links a {
    display: block !important;
    padding: 1rem !important;
    color: #222222 !important;
    -webkit-text-fill-color: #222222 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

.side-menu-links a:hover {
    background: #f5f5f5 !important;
    color: #27ae60 !important;
    -webkit-text-fill-color: #27ae60 !important;
}

.side-menu-reserva {
    background: #27ae60 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-align: center !important;
    font-weight: bold !important;
    margin-top: 1rem !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    text-decoration: none !important;
}

.side-menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: -webkit-fill-available !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 9999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}

.side-menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ===== CORREÇÕES PARA CARTÕES E SECÇÕES ===== */

/* Correções para cartões */
.feature-card, .testimonial-card, .platform-card {
    background-color: #ffffff !important;
    color: #222222 !important;
    -webkit-text-fill-color: #222222 !important;
}

.feature-card h3, .testimonial-card h3, .platform-card h3 {
    color: #222222 !important;
    -webkit-text-fill-color: #222222 !important;
}

.feature-card p, .testimonial-card p, .platform-card p {
    color: #444444 !important;
    -webkit-text-fill-color: #444444 !important;
}

/* Correções para botões */
.cta-button, .btn-reserva, .side-menu-reserva, .whatsapp-button {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: #27ae60 !important;
    -webkit-appearance: none !important;
    border-radius: 8px !important;
    min-height: 44px !important;
    min-width: 44px !important;
}

.cta-button:hover, .btn-reserva:hover, .side-menu-reserva:hover, .whatsapp-button:hover {
    background-color: #219a52 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Correções para secções com fundo escuro */
.cta-section, .final-cta {
    background-color: #2c3e50 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.main-footer {
    background-color: #2c3e50 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* ===== CORREÇÕES PARA FAQ E OUTRAS SECÇÕES ===== */

.faq-item h3 {
    color: #222222 !important;
    -webkit-text-fill-color: #222222 !important;
}

.faq-item p {
    color: #444444 !important;
    -webkit-text-fill-color: #444444 !important;
}

.amenity-item h3 {
    color: #222222 !important;
    -webkit-text-fill-color: #222222 !important;
}

.amenity-item p {
    color: #444444 !important;
    -webkit-text-fill-color: #444444 !important;
}

.value-card h3 {
    color: #222222 !important;
    -webkit-text-fill-color: #222222 !important;
}

.value-card p {
    color: #444444 !important;
    -webkit-text-fill-color: #444444 !important;
}

.attraction-card h3 {
    color: #222222 !important;
    -webkit-text-fill-color: #222222 !important;
}

.attraction-card p {
    color: #444444 !important;
    -webkit-text-fill-color: #444444 !important;
}

.attraction-card .distance {
    color: #666666 !important;
    -webkit-text-fill-color: #666666 !important;
}

/* ===== CORREÇÕES DE PERFORMANCE E ANIMAÇÕES ===== */

@media (max-width: 768px) {
    .animate, .mobile-animate {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===== CORREÇÕES PARA MODO ESCURO ===== */

@media (prefers-color-scheme: dark) {
    body {
        color: #ffffff !important;
        background-color: #1a1a1a !important;
        -webkit-text-fill-color: #ffffff !important;
    }
    
    .feature-card, .testimonial-card, .platform-card {
        background-color: #2a2a2a !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }
    
    .feature-card h3, .testimonial-card h3, .platform-card h3 {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }
    
    .feature-card p, .testimonial-card p, .platform-card p {
        color: #cccccc !important;
        -webkit-text-fill-color: #cccccc !important;
    }
    
    .hero * {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }
    
    .feature-card *, .testimonial-card *, .platform-card * {
        color: inherit !important;
        -webkit-text-fill-color: inherit !important;
    }
}

/* ===== CORREÇÕES FINAIS DE INTERAÇÃO ===== */

html {
    scroll-behavior: smooth !important;
}

input, textarea, select {
    -webkit-appearance: none !important;
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    padding: 12px !important;
    font-size: 16px !important;
    color: #333 !important;
    -webkit-text-fill-color: #333 !important;
}

a {
    text-decoration: none !important;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

a:hover {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

ul, ol {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

li {
    margin: 0 !important;
    padding: 0 !important;
}

::placeholder {
    color: #999 !important;
    -webkit-text-fill-color: #999 !important;
    opacity: 1 !important;
}

::selection {
    background: #27ae60 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

::-moz-selection {
    background: #27ae60 !important;
    color: #ffffff !important;
}

/* ===== CORREÇÕES ESPECÍFICAS PARA MOBILE ===== */

@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-links {
        display: none !important;
    }
    
    .language-selector {
        display: none !important;
    }
    
    .language-selector-desktop {
        display: none !important;
    }
    
    .language-toggle {
        display: none !important;
    }
    
    .side-menu {
        width: 280px !important;
    }
    
    .side-menu.active {
        right: 0 !important;
    }
    
    .main-header {
        padding: 0 1rem !important;
    }
    
    .side-menu {
        right: -280px !important;
    }
}

/* ===== CORREÇÕES DE PERFORMANCE FINAIS ===== */

* {
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
}

html {
    -webkit-text-size-adjust: 100% !important;
}

body {
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

button, a, input, textarea, select {
    -webkit-appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

img {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
}

/* ===== CORREÇÕES ESPECÍFICAS PARA SAFARI ===== */

@supports (-webkit-touch-callout: none) {
    body {
        min-height: -webkit-fill-available !important;
    }
    
    /* Correções específicas para o seletor de idiomas mobile no Safari */
    .language-selector-mobile {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10010 !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
    }
    
    .language-toggle-mobile {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10011 !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    
    .language-dropdown-mobile {
        position: fixed !important;
        z-index: 99999 !important;
        background: #ffffff !important;
        border: 1px solid #e0e0e0 !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.18) !important;
        border-radius: 12px !important;
        padding: 8px 0 !important;
        min-width: 180px !important;
        max-height: 220px !important;
        overflow-y: auto !important;
        display: none !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
    }
    
    .language-dropdown-mobile.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .language-option-mobile {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 10px 20px !important;
        font-size: 1rem !important;
        color: #222222 !important;
        cursor: pointer !important;
        background: none !important;
        border: none !important;
        width: 100% !important;
        text-align: left !important;
        transition: background 0.15s !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    
    .language-option-mobile[aria-selected="true"] {
        font-weight: bold !important;
        color: #1db954 !important;
        background: #f3f7f4 !important;
    }
    
    .language-option-mobile:hover {
        background: #f3f7f4 !important;
    }
}

/* Corrigir corte do texto no topo no mobile */
@media (max-width: 900px) {
  .hero {
    padding-top: 120px !important;
    min-height: 100vh !important;
  }
  
  .hero-content {
    padding-top: 2rem !important;
  }
  
  .main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
  }
}

/* Corrigir visibilidade do skip-link - REMOVIDO */
/* .skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 8px;
} */

@media (max-width: 600px) {
  .hero {
    padding-top: 90px !important;
  }
  .hero-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
}
@media (max-width: 480px) {
  .hero {
    padding-top: 80px !important;
  }
}

/* Forçar contraste máximo para cartões e labels em Safari */
.feature-card, .feature-card h3, .feature-card p,
.amenity-item, .amenity-item h3, .amenity-item p {
  color: #222222 !important;
  -webkit-text-fill-color: #222222 !important;
  background: #fff !important;
}
.feature-card p, .amenity-item p {
  color: #444444 !important;
  -webkit-text-fill-color: #444444 !important;
}
@media (prefers-color-scheme: dark) {
  .feature-card, .feature-card h3, .feature-card p,
  .amenity-item, .amenity-item h3, .amenity-item p {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: #2a2a2a !important;
  }
  .feature-card p, .amenity-item p {
    color: #cccccc !important;
    -webkit-text-fill-color: #cccccc !important;
  }
} 