:root {
    --primary-blue: #1976D2;
    --primary-green: #4CAF50;
    --dark-green: #2E7D32;
    --accent-teal: #00BCD4;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-white: #FFFFFF;
    --text-light: #E0E0E0;
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.18);
    --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    --gradient-accent: linear-gradient(135deg, var(--accent-teal), var(--primary-green));
    --gradient-overlay: linear-gradient(135deg, rgba(25, 118, 210, 0.8), rgba(76, 175, 80, 0.8));
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: 
        linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.5)), 
        url('images/madeira-landscape.jpg') center/cover no-repeat fixed,
        linear-gradient(135deg, #1976D2, #4CAF50);
}

.hero-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: 
        linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.5)), 
        url('images/madeira-landscape.jpg') center/cover no-repeat fixed,
        linear-gradient(135deg, #1976D2, #4CAF50);
}

/* Remove the background-overlay since we're using body background */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

/* Ensure all sections have proper background inheritance */
.experience-section,
.contact-section,
.tours-section {
    background: transparent;
    position: relative;
    z-index: 2;
}

/* Add a subtle overlay for better text readability on feature cards */
.feature-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    text-align: left;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Ensure proper text colors for all sections */
.section-title,
.feature-card h4,
.contact-section h3 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.feature-card p,
.contact-description,
.contact-item {
    color: #e0e0e0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Hero Container with Consistent Background */
.hero-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
    background: 
        linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.5)), 
        url('images/madeira-landscape.jpg') center/cover no-repeat fixed,
        linear-gradient(135deg, #1976D2, #4CAF50);
}

/* Simplified background overlay - consistent across all pages */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

/* Remove the ::before pseudo-element that was causing inconsistency */
.hero-container::before {
    display: none;
}

/* Header Styling */
.header {
    padding: 2rem;
    z-index: 1000;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #FFFFFF;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.5rem;
}

.logo p {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/* Tony's Profile - Modern 50x50 with Admin Access */
.tony-profile {
    display: flex;
    align-items: center;
    position: relative;
}

.profile-link {
    display: block;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.profile-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    object-fit: cover;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(76, 175, 80, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--gradient-primary);
    position: relative;
    cursor: pointer;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary-blue), var(--accent-teal), var(--primary-green), var(--primary-blue));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.profile-link:hover .profile-image {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(76, 175, 80, 0.5);
}

.profile-link:hover .profile-image::before {
    opacity: 1;
}

/* Language Flag Row - Modern and Responsive */
.language-selector {
    position: relative;
    z-index: 1010;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.language-flags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 0.75rem 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.language-flags-row:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.lang-flag-btn {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    position: relative;
    outline: none;
}

.lang-flag-btn .flag {
    font-size: 1.4rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    transition: all 0.2s ease;
}

.lang-flag-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lang-flag-btn:focus {
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.lang-flag-btn.active {
    background: var(--gradient-accent);
    border-color: var(--primary-green);
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
    transform: scale(1.1);
}

.lang-flag-btn.active .flag {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.lang-flag-btn:active {
    transform: scale(0.95);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .language-flags-row {
        gap: 0.3rem;
        padding: 0.5rem 0.75rem;
        flex-wrap: wrap;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .language-flags-row::-webkit-scrollbar {
        display: none;
    }
    
    .lang-flag-btn {
        min-width: 40px;
        min-height: 40px;
        padding: 0.4rem;
        flex-shrink: 0;
    }
    
    .lang-flag-btn .flag {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .language-flags-row {
        gap: 0.25rem;
        padding: 0.4rem 0.5rem;
        border-radius: 12px;
    }
    
    .lang-flag-btn {
        min-width: 36px;
        min-height: 36px;
        padding: 0.3rem;
        border-radius: 8px;
    }
    
    .lang-flag-btn .flag {
        font-size: 1.1rem;
    }
}

/* RTL Language Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* Hebrew specific styles */
[lang="he"] {
    direction: rtl;
    text-align: right;
}

[lang="he"] .hero-text,
[lang="he"] .feature-card,
[lang="he"] .review-card,
[lang="he"] .section-title {
    text-align: right;
}

[lang="he"] .features-grid {
    direction: rtl;
}

/* Legacy support for old lang-btn class */
.lang-btn {
    display: none;
}

/* Hero Content */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.hero-text {
    max-width: 900px;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { filter: brightness(1); }
    to { filter: brightness(1.1); }
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 2rem;
    line-height: 1.4;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.highlight {
    color: #FFD700;
    font-weight: 600;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
    animation: underlineExpand 2s ease-in-out infinite;
}

@keyframes underlineExpand {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(1.1); }
}

.description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #FFFFFF;
    line-height: 1.7;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    max-width: 800px;
    margin: 0 auto;
}

/* CTA Buttons - Enhanced */
.cta-buttons {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    min-width: 220px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(25, 118, 210, 0.4);
}

.btn-secondary {
    background: var(--gradient-accent);
    color: var(--text-white);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.4);
}

/* Modern Home Button */
.btn-home {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1rem 1.8rem;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-home:hover::before {
    left: 100%;
}

.btn-home:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(76, 175, 80, 0.4);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(76, 175, 80, 0.3);
}

.home-icon {
    font-size: 1.3rem;
    background: var(--gradient-accent);
    border-radius: 10px;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-home:hover .home-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Modern Home Button - Small Variant */
.btn-home-small {
    padding: 0.35rem 0.9rem;
    font-size: 0.95rem;
    border-radius: 14px;
    gap: 0.4rem;
    min-width: unset;
    height: 36px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 120px;
}

.btn-home-small span[data-translate] {
    font-size: 0.97em;
}

.home-icon-small {
    font-size: 1.05rem;
    padding: 0.18rem;
    min-width: 22px;
    height: 22px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

@media (max-width: 768px) {
    .btn-home-small {
        padding: 0.25rem 0.7rem;
        font-size: 0.92rem;
        max-width: 90px;
        height: 32px;
    }
    .home-icon-small {
        font-size: 0.95rem;
        min-width: 18px;
        height: 18px;
        padding: 0.1rem;
    }
}

/* Header Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-back {
    display: none;
}

/* Tours Page Specific Styles */
.tours-page .hero-content {
    padding-top: 2rem;
    max-width: 1400px;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9);
}

.page-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #FFFFFF;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-link:hover,
.nav-link.active {
    background: var(--gradient-accent);
    color: white;
    transform: translateY(-2px);
}

/* Tours Grid */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.tour-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tour-card.featured {
    border: 2px solid rgba(76, 175, 80, 0.3);
}

.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 0.12);
}

.tour-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.tour-icon-large {
    font-size: 4rem;
    background: var(--gradient-accent);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    min-width: 100px;
}

.tour-meta h2 {
    color: #FFFFFF;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.tour-duration,
.tour-price {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block;
    margin-right: 1rem;
}

.tour-description {
    color: #F5F5F5;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.tour-highlights h3 {
    color: #FFFFFF;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.tour-highlights ul {
    list-style: none;
    padding: 0;
}

.tour-highlights li {
    color: #F5F5F5;
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.tour-highlights li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Tour Info Section - Updated with Grid Layout */
.tour-info-section {
    margin: 5rem 0;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
}

.info-card h3 {
    color: #FFFFFF;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    text-align: center;
    font-weight: 600;
}

/* New Info Grid Layout */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    transform: translateY(-2px);
}

.info-icon {
    font-size: 1.2rem;
    min-width: 24px;
    text-align: center;
    margin-top: 0.1rem;
    opacity: 0.9;
}

.info-item span:last-child {
    color: #FFFFFF;
    font-size: 0.95rem;
    line-height: 1.5;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    flex: 1;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Special styling for recommendations card to ensure better contrast */
.info-card:nth-child(4) .info-item span:last-child {
    color: #FFFFFF;
    font-weight: 600;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9);
}

/* Responsive adjustments for info cards */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .info-item {
        padding: 0.6rem;
        gap: 0.6rem;
    }
    
    .info-icon {
        font-size: 1rem;
        min-width: 20px;
    }
    
    .info-item span:last-child {
        font-size: 0.9rem;
        color: #FFFFFF;
        font-weight: 500;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    }
    
    .info-card:nth-child(4) .info-item span:last-child {
        color: #FFFFFF;
        font-weight: 600;
        text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9);
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .info-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        color: #FFFFFF;
    }
}

@media (max-width: 480px) {
    .info-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .info-grid {
        gap: 0.6rem;
    }
    
    .info-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .info-item span:last-child {
        font-size: 0.85rem;
        color: #FFFFFF;
        font-weight: 500;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    }
    
    .info-card:nth-child(4) .info-item span:last-child {
        color: #FFFFFF;
        font-weight: 600;
        text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9);
    }
}

/* Privacy Policy Page Styles */
.privacy-page .hero-content {
    padding-top: 2rem;
    max-width: 800px;
}

.privacy-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 3rem;
    margin: 2rem 0;
}

.privacy-content h1 {
    color: #FFFFFF;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9);
}

.last-updated {
    color: #FFD700;
    font-style: italic;
    margin-bottom: 2rem;
}

.privacy-section {
    margin-bottom: 2.5rem;
}

.privacy-section h2 {
    color: #4CAF50;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.privacy-section p,
.privacy-section li {
    color: #F5F5F5;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.privacy-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-section strong {
    color: #FFD700;
}

@media (max-width: 768px) {
    .privacy-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .privacy-content h1 {
        font-size: 2rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }
    
    .header-nav {
        order: 1;
    }
    
    .tony-profile {
        order: 2;
    }
    
    .language-selector {
        order: 3;
        justify-content: center;
        padding: 0.3rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .profile-image {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        border-width: 1.5px;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .tour-item {
        text-align: center;
        padding: 1.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem;
        text-align: center;
    }
    
    .contact-info {
        padding: 2rem;
        text-align: center;
    }

    /* Tours page specific mobile styles */
    .tours-page .hero-content {
        padding: 1rem;
        max-width: 100%;
    }
    
    .page-header {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .page-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 0.5rem;
    }
    
    .page-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        padding: 0 0.5rem;
    }
    
    /* Mobile tour grid */
    .tours-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .tour-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .tour-header {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .tour-icon-large {
        font-size: 3rem;
        padding: 1rem;
        min-width: 80px;
        border-radius: 15px;
    }
    
    .tour-meta h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .tour-duration,
    .tour-price {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin: 0.2rem;
        display: block;
        text-align: center;
    }
    
    .tour-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        text-align: left;
    }
    
    .tour-highlights h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        text-align: center;
    }
    
    .tour-highlights ul {
        text-align: left;
    }
    
    .tour-highlights li {
        padding: 0.4rem 0;
        padding-left: 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Mobile info cards */
    .tour-info-section {
        margin: 3rem 0;
        padding: 0 1rem;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .info-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .info-card li {
        padding: 0.5rem 0;
        padding-left: 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Mobile CTA section */
    .cta-section {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem;
        border-radius: 20px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Mobile contact section */
    .contact-section {
        margin-top: 3rem;
        padding: 0 1rem;
    }
    
    .contact-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .contact-info {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .contact-item {
        font-size: 1rem;
        margin-bottom: 0.8rem;
        word-break: break-word;
    }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
    .hero-content {
        padding: 1rem 0.5rem;
    }
    
    .tours-section,
    .experience-section,
    .contact-section {
        margin-top: 2rem;
    }
    
    /* Very small screen adjustments */
    .tours-page .hero-content {
        padding: 0.5rem;
    }
    
    .page-header {
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .tours-grid {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }
    
    .tour-card {
        padding: 1rem;
    }
    
    .tour-icon-large {
        font-size: 2.5rem;
        padding: 0.8rem;
        min-width: 70px;
    }
    
    .tour-meta h2 {
        font-size: 1.3rem;
    }
    
    .tour-highlights li {
        font-size: 0.85rem;
        padding-left: 1.2rem;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .info-card h3 {
        font-size: 1.1rem;
    }
    
    .info-card li {
        font-size: 0.85rem;
        padding-left: 1rem;
    }
    
    .cta-section {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .contact-info {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-width: 200px;
    }
    
    .btn-back {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .btn-back span:first-child {
        font-size: 1rem;
    }
}

/* Landscape orientation on small devices */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .header-nav {
        order: 0;
        flex: 1;
    }
    
    .tony-profile {
        order: 1;
        flex: 0;
    }
    
    .language-selector {
        order: 2;
        flex: 1;
        justify-content: flex-end;
    }
    
    .tours-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .tour-header {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
    
    .tour-icon-large {
        min-width: 60px;
        font-size: 2.5rem;
        padding: 0.8rem;
    }
}

/* Fix for very wide screens on mobile (tablets in landscape) */
@media (min-width: 768px) and (max-width: 1024px) {
    .tours-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 2rem;
    }
    
    .tour-card {
        padding: 2rem;
    }
    
    .info-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

/* Fallback styles when background fails */
.hero-container.bg-fallback {
    background: linear-gradient(135deg, #1976D2, #4CAF50, #2E7D32) !important;
}

.hero-container.bg-fallback::before {
    background: linear-gradient(135deg, rgba(0,0,0,0.2), rgba(0,0,0,0.4)) !important;
}

/* Page-specific overrides */
body[data-page="tj-madeira"] .hero-content {
    justify-content: center;
    padding-top: 3rem;
    max-width: 1400px;
}

body[data-page="tj-madeira"] .tours-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

@media (max-width: 1200px) {
    body[data-page="tj-madeira"] .tours-menu {
        grid-template-columns: 1fr;
    }
}

/* Taxi background fusion for index.html */
.taxi-bg {
    position: absolute;
    bottom: 2vh; /* Adjusted for a bit more spacing */
    right: 2vw;  /* Adjusted for a bit more spacing */
    left: auto;
    top: auto;
    z-index: 10; /* Higher z-index to ensure clickability */
    pointer-events: auto; /* Enable interactions */
    cursor: pointer; /* Show pointer cursor on hover */
    width: 15vh; /* Larger than profile image (50px) */
    height: 15vh; /* Larger than profile image (50px) */
    background: url('images/taxi-1024.jpg') no-repeat center center;
    background-size: cover;
    opacity: 1; /* Clear image, no transparency */
    filter: none; /* No blur or other filters */
    mix-blend-mode: normal; /* Standard blending */
    border-radius: 50%; /* Round shape like profile image */
    border: 3px solid rgba(255, 255, 255, 0.9); /* Same border as profile image */
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(76, 175, 80, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.1); /* Same shadow as profile image */
    transition: all 0.3s ease;
    text-decoration: none; /* Remove link underline */
    display: block; /* Ensure block display for link */
}

/* Hover effects for taxi icon */
.taxi-bg:hover {
    transform: scale(1.05);
    box-shadow: 
        0 6px 30px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(76, 175, 80, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    filter: brightness(1.1);
}

/* Focus styles for accessibility */
.taxi-bg:focus {
    outline: 3px solid rgba(76, 175, 80, 0.8);
    outline-offset: 2px;
}

/* Responsive: smaller and always round */
@media (max-width: 900px) {
    .taxi-bg {
        width: 12vh; 
        height: 12vh;
        bottom: 1.5vh;
        right: 1.5vw;
        /* Opacity, filter, border, shadow, mix-blend-mode remain as base for clarity */
    }
}
@media (max-width: 600px) {
    .taxi-bg {
        width: 10vh; 
        height: 10vh;
        bottom: 1vh;
        right: 1vw;
        /* Opacity, filter, border, shadow, mix-blend-mode remain as base for clarity */
    }
}

/* Review Section Styles */
.review-section {
    background: rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.review-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}
.review-form label {
    display: flex;
    flex-direction: column;
    color: #fff;
    font-weight: 500;
}
.review-form input, .review-form select, .review-form textarea {
    margin-top: 0.3rem;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}
#reviews-list {
    margin-bottom: 1.5rem;
}
.review-item {
    background: rgba(255,255,255,0.12);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.review-item:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(76, 175, 80, 0.3);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.reviewer-name {
    font-weight: 700;
    color: #FFFFFF;
    font-size: 1.1rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
}

.review-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.review-tour {
    font-size: 0.9rem;
    color: #4CAF50;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.review-date {
    font-size: 0.85rem;
    color: #CCCCCC;
    opacity: 0.8;
}

.review-rating {
    color: #FFD700;
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.review-comment {
    color: #F5F5F5;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    font-size: 1rem;
}

.no-reviews {
    text-align: center;
    color: #CCCCCC;
    font-style: italic;
    padding: 2rem;
    background: rgba(255,255,255,0.08);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Review Form Styles */
.review-form-container {
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-form label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #FFFFFF;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.review-form input,
.review-form select,
.review-form textarea {
    padding: 0.8rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    color: #FFFFFF;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.review-form input::placeholder,
.review-form textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
}

.review-form textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.review-form select {
    cursor: pointer;
}

.review-form select option {
    background: #333;
    color: #FFFFFF;
}

.review-form button[type="submit"] {
    align-self: flex-start;
    margin-top: 0.5rem;
    min-width: 150px;
}

/* Review Messages */
.review-message {
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
}

.review-message-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #4CAF50;
}

.review-message-info {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid rgba(33, 150, 243, 0.5);
    color: #2196F3;
}

.review-message-error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #f44336;
}

/* Add new styles for enhanced features */

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Trust Indicators */
.trust-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.9rem;
}

.trust-icon {
    font-size: 1.2rem;
}

/* FAQ Section */
.faq-section {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

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

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #4CAF50;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 200px;
    padding-bottom: 1rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.cookie-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    margin: 0;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.cookie-category-header label {
    font-weight: 600;
    color: #333;
}

.cookie-category p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    margin-left: 1.5rem;
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    text-align: right;
}

/* Responsive Design for New Elements */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .trust-indicators {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
    
    .trust-item {
        justify-content: center;
    }
    
    .faq-question {
        font-size: 1rem;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
}

/* Landing Page Specific Styles for A5/QR-Code Use */
[data-page="landing"] {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
}

/* Print Styles for Landing Page */
@media print {
    [data-page="landing"] .admin-access,
    [data-page="landing"] .cookie-consent {
        display: none !important;
    }
    
    [data-page="landing"] .hero-container {
        min-height: auto;
        page-break-inside: avoid;
    }
    
    [data-page="landing"] .section {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    [data-page="landing"] .cta-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    [data-page="landing"] .btn {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
}

/* Mobile optimization for QR code scanning */
@media (max-width: 768px) {
    [data-page="landing"] .header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    [data-page="landing"] .language-selector {
        justify-content: center;
    }
    
    [data-page="landing"] .hero-content {
        padding: 2rem 1rem;
    }
    
    [data-page="landing"] .main-title {
        font-size: 2rem;
    }
    
    [data-page="landing"] .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    [data-page="landing"] .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Very small mobile screens - language selector adjustments */
@media (max-width: 480px) {
    .language-selector {
        width: 100%;
        padding: 0.5rem;
    }
}



/* Mobile-specific search styles */
@media (max-width: 768px) {



    .lang-search-container {
        margin: -0.75rem -0.5rem 0.75rem -0.5rem;
        padding: 1rem;
    }
    
    .lang-search {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: 12px;
    }
}