/* Reset Básico e Fontes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #222;
    margin-bottom: 15px;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }

p {
    margin-bottom: 1em;
}

/* Título da Página */
.page-title-home {
    text-align: center;
    font-size: 2.8em;
    color: #333;
    margin: 60px 0 40px;
    letter-spacing: 2px;
}

/* Opções de Viagem (Grid) */
.trip-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 3 colunas em ecrãs grandes, adapta em pequenos */
    gap: 30px;
    margin-bottom: 60px;
}

.trip-card {
    background-color: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
}

.trip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.trip-card,
.trip-card *,
.trip-card h6,
.trip-card p {
    text-decoration: none !important;
    color: inherit;
}

.card-image-wrapper {
    height: 220px; /* Altura fixa para as imagens */
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem cobre a área sem distorcer */
    display: block;
    transition: transform 0.5s ease;
}

.trip-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-content {
    padding: 10px;
    padding-top: 8px;     /* sobe um bocadinho */
    padding-bottom: 18px; /* espaço por baixo do botão */
    text-align: center;
    flex-grow: 1; /* Para que o conteúdo ocupe o espaço restante */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Alinha o botão no fundo */
    background-color: #452816; /* Cor de fundo marrom para os cards */
    color: #fff;
}

.card-title {
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-decoration: none !important;
}

.card-description {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: #eee;
    text-decoration: none !important;
}

/* Force remove underlines from all card elements */
h6.card-title,
p.card-description {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
}

/* Botões mais estreitos */
.button {
    display: inline-block;
    background-color: #f09920; /* Laranja vibrante para o botão */
    color: white;
    padding: 10px 12px;   /* antes: 12px 15px */
    border-radius: 50px; /* Botão arredondado */
    font-size: 1rem;      /* ligeiro ajuste */
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: auto; /* Empurra o botão para o fundo do card-content */
    text-decoration: none; /* evita sublinhado quando for link */
}

.button:hover {
    background-color: #ed8a00;
    transform: translateY(-2px);
}

/* Botões um pouco mais largos e centrados */
.trip-card .button {
  align-self: center;     /* centra horizontalmente */
  width: auto;
  padding: 8px 14px;      /* ligeiramente mais largo */
  margin-bottom: 6px;   /* garante “respiro” por baixo */
}

@media (max-width: 480px) {
  .trip-card .button {
    padding: 8px 12px;    /* mobile um pouco menos largo */
  }
/* Styles for fully clickable trip cards */
.trip-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trip-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    text-decoration: none;
}

.trip-card-link .trip-card {
    margin: 0;
    height: 100%;
}

.trip-card-link:hover .trip-card .card-image-wrapper img {
    transform: scale(1.05);
}

/* Ensure button styling is preserved inside clickable links */
.trip-card-link .button {
    pointer-events: none; /* Prevent double-click events */
    text-decoration: none;
}

/* Remove all underlines from trip card elements */
.trip-card-link,
.trip-card-link *,
.trip-card-link *:visited,
.trip-card-link h6,
.trip-card-link p,
.trip-card-link .card-title,
.trip-card-link .card-description,
.trip-card-link .card-content {
    color: #fff !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-color: transparent !important;
    text-underline-offset: unset !important;
    text-decoration-thickness: 0 !important;
}

.trip-card-link:hover,
.trip-card-link:hover *,
.trip-card-link:hover *:visited,
.trip-card-link:hover h6,
.trip-card-link:hover p,
.trip-card-link:hover .card-title,
.trip-card-link:hover .card-description,
.trip-card-link:hover .card-content {
    color: #fff !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-color: transparent !important;
}

/* Ensure no text decoration at all on trip cards */
.trip-card {
    text-decoration: none !important;
}

.trip-card * {
    text-decoration: none !important;
}

/* Responsive adjustments for clickable cards */
@media (max-width: 768px) {
    .trip-options-grid {
        gap: 20px;
    }
}
}


/* Ensure price-grid stacks on smaller screens */
@media (max-width: 768px) {
    .simplified-dates-section .price-grid {
        flex-direction: column;
        align-items: center;
    }
}
/* Secção "Porque Viajar Connosco" */
.why-us-section {
    text-align: center;
    margin: 60px 0;
    padding: 40px 20px;
    background-color: #eee3c8; /* Fundo bege claro */
    border-radius: 30px;
}

.why-us-section h6 {
    font-size: 2.2em;
    color: #452816; /* Marrom escuro para o título */
    margin-bottom: 30px;
    text-transform: uppercase;
}

.why-us-points {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap; /* Para quebrar linha em ecrãs pequenos */
}

.point {
    text-align: center;
    font-size: 1.1em;
    color: #555;
}

.point i {
    font-size: 2.5em;
    color: #8B4513; /* Marrom para os ícones */
    margin-bottom: 15px;
}


/* Page title mais acima */
.page-title-home {
  margin-top: 30px !important;   /* sobe um pouco */
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .page-title-home {
    margin-top: 0 !important;   /* um pouco mais acima no mobile */
    margin-bottom: 12px;
  }
}

/* Page title: cor pedida */
.page-title-home { color: #452816 !important; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

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

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
    color: #555;
}

.contact-email-link {
    color: #e67e22;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-email-link:hover {
    color: #c65e0a;
    border-bottom-color: currentColor;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 1.05em;
    text-align: center;
}

.primary-btn {
    background-color: #e67e22; /* Laranja vibrante */
    color: #fff;
}

.primary-btn:hover {
    background-color: #d35400; /* Laranja mais escuro */
}

.secondary-btn {
    background-color: #3498db; /* Azul */
    color: #fff;
    border: 1px solid #3498db;
}

.secondary-btn:hover {
    background-color: #2980b9; /* Azul mais escuro */
}

.small-btn {
    padding: 8px 15px;
    font-size: 0.9em;
}

.large-btn {
    padding: 15px 30px;
    font-size: 1.2em;
}


/* Seção Hero */
.hero-section {
    background: url('images/banner.png') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Altura mínima para a imagem */
}

body.page-4x4 .hero-section { background-image: url('images/banner_4x4.png'); }

.hero-content {
    max-width: 800px;
}

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #fff;
}

.hero-section .subtitle {
    font-size: 1.4em;
    margin-bottom: 40px;
}

/* Hero section ajustes: centrar texto e banner mais estreito */
.hero-section {
  max-width: 900px;              /* antes: 1200px */
  width: 100%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;       /* centra o bloco interno */
  text-align: center;            /* centra título e subtítulo */
  background-position: center top;
  background-size: 100% auto;    /* mantém a imagem na largura reduzida */
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero-inner h1 {
  margin: 0 0 12px;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.hero-inner .subtitle {
  margin: 0;
}

/* Mobile: ligeiro ajuste */
@media (max-width: 700px) {
  .hero-section {
    max-width: 100%;
    padding: 24px 18px;
    background-size: 100% auto;
  }
  .hero-inner h1 { font-size: 1.5rem; line-height: 1.06; }
}

/* Hero unificado (todas as páginas) */
.hero-section {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 24px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  box-sizing: border-box;

  /* altura consistente */
  height: 320px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

/* Conteúdo interno */
.hero-inner {
  max-width: 700px;
  z-index: 1;
}

/* Mapeamento das imagens (mantém existentes) */
.page-ac-pt .hero-section,
.page-ac-eng .hero-section {
  background-image: url('images/banner.png');
}

.page-4x4-pt .hero-section,
.page-4x4-eng .hero-section {
  background-image: url('images/banner_4x4.png');
}

/* Banner dos selfguided (mesma largura do site como os outros headers) */
.page-selfguided-pt .hero-section,
.page-selfguided-eng .hero-section {
  background-image: url('images/banner_self.png');
}

.page-sobre-nos-pt .hero-section,
.page-sobre-nos-eng .hero-section {
  background-image: url('images/banner_somos.png');
}

.page-about-us .hero-section,
.page-sobre-nos-pt .hero-section {
  background-image: url('images/banner_somos.png');
}

/* se quiser imagens diferentes por idioma, diga e troco aqui */

/* Mobile: altura menor mas igual entre páginas */
@media (max-width: 680px) {
  .hero-section {
    height: 220px;
    padding: 0 20px;
  }
  .hero-inner h1 { font-size: 1.4rem; }
  .hero-inner .subtitle { font-size: 0.9rem; }
}

/* Mobile: make hero container match image size (uses 16:9 default) */
@media (max-width: 700px) {
    .hero-section {
        /* Use contain so the full image is visible and not cropped */
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center top !important;

        /* Let height be driven by padding to match image aspect ratio */
        height: auto !important;
        padding-top: 56.25% !important; /* 16:9 aspect ratio (adjust if needed) */
        padding-bottom: 0 !important;

        /* Keep inner content positioned above background */
        display: block;
        overflow: hidden;
        border-radius: 12px;
    }

    /* Adjust inner text positioning for the new padding-driven height */
    .hero-inner {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 680px;
        z-index: 2;
        text-align: center;
    }

    /* Reduce title size a bit to fit inside the smaller hero */
    .hero-inner h1 { font-size: 1.4rem; line-height: 1.06; margin: 0 0 .25rem; }
    .hero-inner .subtitle { font-size: 0.95rem; margin: 0; }
}

/* Fix mobile hero: remove padding-top hack and keep hero same visible height as image */
@media (max-width: 700px) {
  .hero-section {
    background-size: cover !important;
    background-position: center center !important;
    /* use the explicit mobile height already used elsewhere */
    height: 220px !important;     /* ajuste se preferir outra altura */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .hero-inner {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100%;
    max-width: 680px;
    padding: 0 12px;
    text-align: center;
    z-index: 2;
  }

  .hero-inner h1 {
    font-size: 1.4rem;
    line-height: 1.06;
    margin: 0 0 0.25rem;
  }
}

.summary-section {
    background-color: #fff; /* Um fundo claro para o resumo */
    padding: 60px 0;
    text-align: center;
}

.summary-section h2 {
    color: #e67e22; /* Cor de destaque para o título */
    margin-bottom: 25px;
}

.summary-section p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    max-width: 800px;
    margin: 0 auto 1em auto; /* Centraliza parágrafos e adiciona margem inferior */
}


.inclusions-exclusions-section {
    background-color: #fff; /* Fundo branco para esta seção */
    padding: 70px 0;
    text-align: center;
}

.inclusions-exclusions-section h2 {
    color: #222;
    margin-bottom: 25px;
}

.inclusions-exclusions-section .section-description {
    color: #555;
    margin-bottom: 50px;
}

.boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Duas colunas, adaptável */
    gap: 40px;
    max-width: 1000px; /* Limita a largura do grid */
    margin: 0 auto; /* Centraliza o grid */
}

.inclusion-box,
.exclusion-box {
    background-color: #fcfcfc;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inclusion-box:hover,
.exclusion-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.inclusion-box h3,
.exclusion-box h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    display: flex; /* Para alinhar ícone e texto */
    align-items: center;
}

.inclusion-box h3 i {
    color: #28a745; /* Verde para "Incluído" */
    margin-right: 15px;
    font-size: 1.2em;
}

.exclusion-box h3 i {
    color: #dc3545; /* Vermelho para "Não Incluído" */
    margin-right: 15px;
    font-size: 1.2em;
}

.inclusion-box ul,
.exclusion-box ul {
    list-style: none; /* Remove os marcadores de lista padrão */
    padding: 0;
}

.inclusion-box li,
.exclusion-box li {
    font-size: 1.1em;
    color: #444;
    margin-bottom: 15px;
    display: flex; /* Para alinhar ícone e texto */
    align-items: flex-start; /* Alinha o texto ao topo, se for longo */
    line-height: 1.5;
}

.inclusion-box li i {
    color: #28a745; /* Ícone verde */
    margin-right: 15px;
    font-size: 1.1em;
    flex-shrink: 0; /* Impede que o ícone encolha */
    padding-top: 3px; /* Pequeno ajuste de alinhamento */
}

.exclusion-box li i {
    color: #dc3545; /* Ícone vermelho */
    margin-right: 15px;
    font-size: 1.1em;
    flex-shrink: 0; /* Impede que o ícone encolha */
    padding-top: 3px; /* Pequeno ajuste de alinhamento */
}

.inclusions-exclusions-section .small-print {
    font-size: 0.85em;
    color: #777;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsividade */
@media (max-width: 768px) {
    .boxes-grid {
        grid-template-columns: 1fr; /* Uma única coluna em telas menores */
    }

    .inclusion-box,
    .exclusion-box {
        padding: 25px;
    }

    .inclusion-box h3,
    .exclusion-box h3 {
        font-size: 1.6em;
    }

    .inclusion-box li,
    .exclusion-box li {
        font-size: 1em;
    }
}


/* Seções Gerais */
section {
    padding: 60px 0;
    text-align: center;
}

body.home-page .trip-options-grid {
    padding-top: 24px;   /* aproxima a grelha do título na home */
    padding-bottom: 44px;
}

body:not(.home-page) section:nth-child(even) { /* Alterna o fundo apenas fora da home */
    background-color: #f0f0f0; 
}

/* Seção Porquê Escolher */
.why-choose-us h2 {
    margin-bottom: 30px;
}

.why-choose-us .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 3em;
    color: #e67e22;
    margin-bottom: 10px;
}

.feature-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

/* Seção Itinerário */
.itinerary-section {
    background-color: #f8f8f8;
}

.itinerary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.itinerary-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: left;
}

.itinerary-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.itinerary-item h3 {
    margin: 15px 15px 5px 15px;
    font-size: 1.25em;
}

.itinerary-item p {
    padding: 0 15px 15px 15px;
    font-size: 0.95em;
    color: #666;
}


.simplified-dates-section {
    background-color: #f8f8f8; /* Pode ser branco ou cinza claro */
    padding: 70px 0;
    text-align: center;
}

.simplified-dates-section h2 {
    color: #222; /* Ou a sua cor de título principal */
    margin-bottom: 25px;
}

.simplified-dates-section .section-description {
    color: #555;
    margin-bottom: 50px;
}

.dates-grid {
    display: flex; /* Para alinhar os itens de data lado a lado */
    justify-content: center; /* Centraliza-os */
    gap: 40px; /* Espaçamento entre os cartões de data */
    flex-wrap: wrap; /* Permite quebrar linha em telas menores */
    margin-bottom: 60px;
}

.date-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    width: 300px; /* Largura fixa para os cartões */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.date-item i {
    font-size: 3.5em;
    color: #e67e22; /* Cor laranja principal */
    margin-bottom: 15px;
}

.date-item h3 {
    font-size: 1.6em;
    color: #333;
    margin-bottom: 10px;
}

.date-item p {
    font-size: 1.1em;
    color: #666;
    line-height: 1.5;
}

.date-item p strong {
    color: #e67e22; /* Cor para destacar o número de vagas */
}

.price-info {
    margin-top: 40px;
    background-color: #e67e22; /* Laranja para o preço */
    color: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    display: inline-flex; /* permite alinhar o botão facilmente */
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.price-info i {
    font-size: 2.5em;
    color: #fff;
    margin-bottom: 15px;
}

.price-info p {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.price-info .small-text {
    font-size: 1em;
    font-weight: normal;
    color: rgba(255,255,255,0.9);
    margin-bottom: 15px;
}

/* New layout for price blocks side-by-side */
.simplified-dates-section .price-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    align-items: stretch; /* Changed from flex-start to make blocks equal height */
    margin-bottom: 18px; /* space between grid and action button */
    flex-wrap: wrap; /* wrap on small screens */
}

.simplified-dates-section .price-grid .price-block {
    flex: 0 1 260px; /* fixed-ish card width, will shrink on small screens */
    display: flex; /* Enable flex layout for equal height alignment */
}

.simplified-dates-section .price-block .price-info {
    display: flex;
    flex-direction: column;
    height: 100%; /* Full height of parent */
    justify-content: space-between; /* Distribute content evenly */
}

.simplified-dates-section .price-info .small-text {
    margin-top: auto; /* Push smaller text to bottom for consistent height */
}

.simplified-dates-section .price-block .price-note {
    margin-top: 8px;
    font-size: 0.95em;
    color: rgba(255,255,255,0.95); /* white-ish on the orange background */
}

.simplified-dates-section .footnote {
    margin-top: 30px;
    font-size: 1em;
    color: #575757;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.simplified-dates-section .btn {
    margin-top: 40px; /* Espaçamento acima do botão */
}

.simplified-dates-section .footnote {
    margin-bottom: 0.25rem;
    line-height: 1.25;
}

.simplified-dates-section .footnote + a.btn.primary-btn {
    display: inline-block;
    margin-top: 0.35rem;
    padding-top: 0.5rem; /* opcional: ajusta visual do botão */
    margin-bottom: 0.5rem;
}

/* se o título seguinte empurra o botão, reduzir um pouco o margin-top do h2 só nesta secção */
.simplified-dates-section h2 {
    margin-top: 1rem;
}

/* garantir que o botão fica logo abaixo do preço */
.simplified-dates-section .price-block {
    text-align: center; /* centraliza preço e botão; remova se não quiser */
}

.simplified-dates-section .price-block .price-info {
    margin-bottom: 0.25rem;
}

.simplified-dates-section .price-block .price-action {
    display: inline-block; /* use block se quiser largura total */
    margin-top: 0.4rem;
}

.simplified-dates-section .price-info stripe-buy-button {
    display: block;
    width: min(320px, 100%);
    margin: 0 auto;
}

/* alternativa para forçar largura total do botão:
.simplified-dates-section .price-block .price-action { display: block; width: 100%; }
*/


@media (max-width: 768px) {
    .dates-grid {
        flex-direction: column; /* Empilha os cartões em telas pequenas */
        align-items: center; /* Centraliza os cartões empilhados */
    }

    .date-item {
        width: 90%; /* Ocupa mais largura em mobile */
        max-width: 350px; /* Limite máximo para não ficar muito largo */
    }

    .price-info {
        width: 90%;
        padding: 25px 30px;
    }

    .price-info p {
        font-size: 1.3em;
    }
}

/* Mobile tweaks: ensure price blocks are centered and stripe button fits */
@media (max-width: 600px) {
    .simplified-dates-section .price-grid {
        padding: 0 16px; /* avoid touching screen edges */
        justify-content: center;
    }

    .simplified-dates-section .price-grid .price-block {
        flex: 0 1 100%; /* each block takes full row on very small screens */
        max-width: 420px; /* keep a readable width */
        margin: 0 auto; /* center the block */
        display: flex;
        justify-content: center;
    }

    .simplified-dates-section .price-block .price-info {
        width: 100%;
        box-sizing: border-box;
        padding-left: 18px;
        padding-right: 18px;
    }

    /* Ensure the Stripe buy button is constrained and centered */
    .stripe-container {
        display: flex;
        justify-content: center;
        width: 100%;
        overflow: hidden; /* prevent any iframe overflow */
    }

    /* The custom element and its internal iframe should not overflow */
    .stripe-container, .stripe-container stripe-buy-button {
        max-width: 360px;
        width: 100%;
    }

    .stripe-container stripe-buy-button::part(button),
    .stripe-container stripe-buy-button {
        transform: none !important; /* avoid any scaling that could overflow */
    }
}



/* Seção de Datas e Preços */
.dates-prices-section {
    background-color: #fff;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 40px;
    margin-bottom: 20px;
}

.dates-prices-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    min-width: 600px; /* Para garantir que a tabela não fique muito pequena em mobile */
}

.dates-prices-section th,
.dates-prices-section td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: center;
}

.dates-prices-section th {
    background-color: #e67e22;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

.dates-prices-section tr:nth-child(even) {
    background-color: #f2f2f2;
}

.dates-prices-section td .btn {
    padding: 6px 12px;
    font-size: 0.85em;
}

.footnote {
    font-size: 1em;
    color: #585858;
    margin-top: 20px;
}

/* Seção de Testemunhos */
.testimonials-section {
    background-color: #f8f8f8;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #e67e22;
}

.quote {
    font-style: italic;
    margin-bottom: 15px;
    color: #555;
}

.author {
    font-weight: bold;
    color: #333;
}

/* Seção FAQ */
.faq-section .faq-item {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: left;
}

.faq-section .faq-item h3 {
    color: #e67e22;
    font-size: 1.2em;
    cursor: pointer; /* Para indicar que é clicável se houver JS para expandir */
    margin-bottom: 10px;
}

.faq-section .faq-item p {
    color: #666;
    margin-left: 10px;
    /* Por padrão, pode estar oculto e ser mostrado com JS */
    /* display: none; */
}

.faq-section .btn {
    margin-top: 30px;
}


.cta-contact-section {
    background-color: #eee3c8 !important; /* Força bege claro, sobrescreve regras nth-child pares/ímpares */
    color: #452816; /* Texto escuro para contraste com o fundo bege */
    padding: 80px 0;
    text-align: center;
}

.cta-contact-section h2 {
    color: #452816;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta-contact-section .section-description {
    color: #452816;
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px; /* Limita a largura da descrição */
    margin-left: auto;
    margin-right: auto;
}

.cta-contact-section .primary-btn.large-btn {
    margin-top: 30px;
    background-color: #fff;
    color: #e67e22; /* Cor do texto do botão para contrastar */
    padding: 18px 35px; /* Botão maior */
    font-size: 1.3em;
    border-radius: 8px; /* Bordas ligeiramente mais arredondadas para o botão principal */
    display: inline-block; /* Para que margin-top funcione e padding seja aplicado corretamente */
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-contact-section .primary-btn.large-btn:hover {
    background-color: #f0f0f0;
    color: #d35400; /* Laranja mais escuro ao passar o rato */
}

.or-separator {
    margin: 40px auto 20px auto; /* Centraliza o separador */
    font-size: 1.1em;
    font-weight: 600;
    max-width: 600px; /* Limita a largura do separador */
}

/* Estilos para o formulário de contacto */
.contact-form {
    max-width: 600px; /* Consolidado para um max-width */
    margin: 40px auto; /* Centraliza o formulário */
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: grid; /* Mantém o display: grid para o layout */
    gap: 15px; /* Espaçamento entre os elementos do grid */
}

.contact-form .form-group {
    margin-bottom: 0; /* O gap no grid já cuida do espaçamento */
    text-align: left; /* Alinha o label e input à esquerda dentro do grupo */
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select, /* ESTILO PARA O DROPDOWN */
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Garante que padding e border estão incluídos na largura */
    color: #333; /* Cor do texto dentro dos campos */
    background-color: #fcfcfc; /* Fundo ligeiramente diferente para os campos */
}

.contact-form select {
    /* Estilos específicos para o dropdown, se precisar de algo diferente */
    appearance: none; /* Remove o estilo padrão do SO para o dropdown (necessita de um ícone customizado se quiser) */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-6.5%200-12.3%203.1-16.1%208.1-3.7%205.1-4.5%2011.8-2.2%2017.4l139.3%20228.3c1.7%202.8%204.8%204.4%208%204.4s6.3-1.6%208-4.4L290.8%2094.7c2.2-5.5%201.4-12.2-2.3-17.3z%22%2F%3E%3C%2Fsvg%3E'); /* Ícone de seta para dropdown */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px; /* Espaço para o ícone */
}

.contact-form textarea {
    resize: vertical; /* Permite ao utilizador redimensionar a altura */
    min-height: 100px; /* Altura mínima para a textarea */
}

.contact-form button[type="submit"] { /* Adicionado type="submit" para especificidade */
    width: 100%; /* Faz o botão ocupar a largura total do formulário */
    padding: 15px;
    font-size: 1.2em;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    /* Usa as cores do primary-btn padrão */
    background-color: #e07b39; /* Cor do botão principal */
    color: #fff;
    border-radius: 5px;
}

.contact-form button[type="submit"]:hover {
    background-color: #cc6c2d; /* Cor do botão principal ao passar o rato */
}

/* Tipografia e cor base para campos */
body, input, textarea, select, button {
    font-family: 'Montserrat','Open Sans', Arial, sans-serif;
    color: #333; /* cor padrão dos campos */
}

/* Placeholder inputs/textarea */
input::placeholder,
textarea::placeholder {
    color: #777;
    opacity: 1;
}

/* Select: quando o placeholder (option disabled) estiver ativo */
select:invalid {
    color: #777; /* cinzento para o placeholder */
}

/* Select quando válido/selecionado */
select:not(:invalid) {
    color: #333; /* cor igual aos outros inputs */
}

/* Forçar cor das options (melhora em vários browsers) */
select option {
    color: #333;
}
select option[disabled] {
    color: #777;
}

/* Regra específica para o seu select */
#data_exp:invalid { color: #777; }
#data_exp { color: #333; }

/* Garantir mesma tipografia e tamanho nos campos do formulário, incluindo select/options */
body,
input, textarea, select, button {
    font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.35;
}

/* Forçar inheritance nas options (melhora em muitos browsers) */
select, select option {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Melhorar aparência do select para herdar o estilo e permitir personalização */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2rem; /* espaço para o ícone */
    background-color: transparent;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path fill='%23333' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    border-radius: 4px;
}

/* Remover seta nativa no IE/Edge */
select::-ms-expand {
    display: none;
}

/* Placeholder da option (primeira option desabilitada) estilizada */
select option[disabled] {
    color: #777;
}

/* Rodapé */
footer {
    background-color: #452816;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    flex-wrap: wrap; /* Permite quebrar linha em telas menores */
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 120px;
    height: auto;
}

.social-links a {
    color: #fff;
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #e67e22;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #e67e22;
}

.copyright {
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

:root { --header-height: 68px; }

@media (max-width:700px){
  .main-header{ height: var(--header-height); }
  .header-content{ height: var(--header-height); }
  .menu-toggle{ display:block; }
  .main-nav{
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background:#452816;
    display:none;
    padding:12px 16px;
    box-shadow:0 2px 6px rgba(0,0,0,.35);
    z-index:1100;
  }
  .main-nav ul{ flex-direction:column; gap:10px; }
  body.nav-open .main-nav{ display:block; }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5em;
    }

    .hero-section .subtitle {
        font-size: 1.1em;
    }

    h1 { font-size: 2.2em; } /* Correto */
    h2 { font-size: 1.8em; } /* Correto */
    h3 { font-size: 1.3em; } /* Correto */

    .why-choose-us .features-grid,
    .itinerary-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    /* ... */
}

/* Language switch button in header */
.hero-section { position: relative; }

/* REMOVER estilos antigos do language switcher / lang-btn */
.lang-btn,
.language-switcher { display: none; }
/* restante CSS mantém-se */

.hero-section {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 24px;
  position: relative;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto; /* ocupa só a largura do site sem ir full-bleed */
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 12px;
  overflow: hidden;
  padding: 40px 32px;
  box-sizing: border-box;
}

.hero-inner { position: relative; z-index: 1; max-width: 680px; }

@media (max-width: 700px) {
  .hero-section {
    min-height: 200px;
    padding: 28px 20px;
    background-size: 100% auto;
  }
  .hero-inner h1 { font-size: 1.5rem; }
}

/* Hero title: menos espaçamento entre linhas */
.hero-inner h1 {
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

@media (max-width: 700px) {
  .hero-inner h1 { line-height: 1.06; }
}

/* Mapear imagens por página */
.page-ac-pt .hero-section,
.page-ac-eng .hero-section { background-image: url('images/banner.png'); }

.page-4x4-pt .hero-section,
.page-4x4-eng .hero-section { background-image: url('images/banner_4x4.png'); }

.page-selfguided-pt .hero-section  { background-image: url('images/banner_self.png'); }
.page-selfguided-eng .hero-section { background-image: url('images/banner_self_eng.png'); }
/* Menu fixo topo (igual index) */
.main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #452816;
  height: 60px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.header-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 68px;
  box-sizing: border-box;
}
.logo .site-logo { max-height:26px; }

@media (max-width:700px){
  .logo .site-logo { max-height:22px; }
}

/* Language switcher dentro do nav */
.main-nav .language-switcher {
  display:flex;
  align-items:center;
  gap:6px;
  margin-left:24px;
  font-size:.8rem;
}

.main-nav .language-switcher a {
  color:#fff;
  background:rgba(255,255,255,.12);
  padding:3px 8px;
  border-radius:4px;
  text-decoration:none;
}

.main-nav .language-switcher a.active { background:#f09920; }

.main-nav .language-switcher a:hover { background:rgba(255,255,255,.28); }

.main-nav .language-switcher .sep { color:#ccc; }

@media (max-width:700px){
  .main-nav .language-switcher {
    margin-left:0;
    margin-top:12px;
    font-size:.75rem;
    width:100%;
    justify-content:flex-start;
  }
}
.main-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; gap: 20px;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
}
.main-nav a:hover { color:#ff7300; }
body { padding-top: 68px; }
/* Mobile ajustes */
@media (max-width: 700px) {
  .main-header { height: 60px; }
  .header-content { height: 60px; padding: 0 14px; }
  body { padding-top: 60px; }
  .main-nav ul { gap: 12px; }
  .main-nav a { font-size: .85rem; }
  .logo .site-logo { max-height: 40px; }
  .language-switcher { font-size: .75rem; }
}
/* Hero continua abaixo do menu */
.hero-section { margin-top: 0; }
/* Hamburger (mobile) */
.menu-toggle{
  display:none; position:relative; width:40px; height:40px; background:transparent; border:0; cursor:pointer;
}
.menu-toggle span{
  position:absolute; left:9px; right:9px; height:2px; background:#fff; border-radius:2px; transition:transform .2s, top .2s, opacity .2s;
}
.menu-toggle span:nth-child(1){ top:12px; }
.menu-toggle span:nth-child(2){ top:19px; }
.menu-toggle span:nth-child(3){ top:26px; }

@media (max-width:700px){
  .menu-toggle{ display:block; }
  .main-nav{
    position: fixed; top: 60px; left:0; right:0;
    background:#452816; display:none; padding:12px 16px; box-shadow:0 2px 6px rgba(0,0,0,.35);
  }
  .main-nav ul{ flex-direction:column; gap:10px; }
  body.nav-open .main-nav{ display:block; }
  body.nav-open .menu-toggle span:nth-child(1){ top:19px; transform:rotate(45deg); }
  body.nav-open .menu-toggle span:nth-child(2){ opacity:0; }
  body.nav-open .menu-toggle span:nth-child(3){ top:19px; transform:rotate(-45deg); }
}

/* Use language-switcher rules from root style.css (override any previous conflicting rules) */
.lang-btn,
.language-switcher {
    display: inline-flex !important; /* garante visibilidade mesmo que exista regra anterior que o esconda */
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    margin-left: 16px;
}

.language-switcher a,
.lang-btn a {
    text-decoration: none;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
    background: rgba(255,255,255,0.1);
    font-weight: 600;
    font-size: 0.9rem;
}

.language-switcher a:hover,
.lang-btn a:hover { background: rgba(255,255,255,0.25); }

.language-switcher a.active,
.lang-btn a.active {
    background: #f09920;
    color: #fff;
    font-weight: 700;
}

.language-switcher .sep { color: #ccc; }

/* If the language switcher lives inside the nav, keep the same appearance there */
/* ULTRA-SPECIFIC RULES TO REMOVE ALL UNDERLINES FROM TRIP CARDS */
/* These rules have maximum specificity to override any browser defaults */

.trip-card-link .card-title,
.trip-card-link .card-title * {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
    text-underline-offset: 0 !important;
    text-decoration-thickness: 0 !important;
    color: #fff !important;
}

.trip-card-link .card-description,
.trip-card-link .card-description * {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
    text-underline-offset: 0 !important;
    text-decoration-thickness: 0 !important;
    color: #eee !important;
}

.trip-card-link .card-title:hover,
.trip-card-link .card-title:hover *,
.trip-card-link .card-description:hover,
.trip-card-link .card-description:hover * {
    text-decoration: none !important;
    text-decoration-line: none !important;
    color: inherit !important;
}

/* Force remove any inherited link styles */
a.trip-card-link,
a.trip-card-link:link,
a.trip-card-link:visited,
a.trip-card-link:hover,
a.trip-card-link:active {
    text-decoration: none !important;
    color: inherit !important;
}

a.trip-card-link .card-title,
a.trip-card-link .card-description {
    text-decoration: none !important;
    color: inherit !important;
}
.main-nav .language-switcher {
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin-left: 24px;
    font-size: .8rem;
}
.main-nav .language-switcher a {
    color: #fff;
    background: rgba(255,255,255,.12);
    padding: 3px 8px;
    border-radius: 4px;
    text-decoration: none;
}
.main-nav .language-switcher a.active { background: #f09920; }
.main-nav .language-switcher a:hover { background: rgba(255,255,255,.28); }

/* Mobile tweak — ensure visible and aligned on small screens */
@media (max-width:700px) {
    .language-switcher,
    .lang-btn {
        display: inline-flex !important;
        justify-content: flex-start;
        font-size: 0.75rem;
        margin-left: 0;
    }
    .main-nav .language-switcher {
        margin-left: 0;
        margin-top: 12px;
        width: 100%;
        justify-content: flex-start;
    }
}

/* Mobile: smaller logo left, hamburger/menu right (overrides earlier rules) */
@media (max-width: 700px) {
    /* Header layout */
    .main-header { align-items: center; }
    .header-content {
        display: flex !important;
        align-items: center;
        justify-content: space-between; /* logo left, controls right */
        gap: 12px;
        padding: 0 12px;
    }

    /* Logo container - keep at left */
    .main-header .logo {
        order: 1;
        flex: 0 0 auto;
        margin: 0;
        text-align: left;
    }

    /* Force small consistent logo size on mobile */
    .main-header .logo .site-logo,
    .main-header .logo img {
        max-height: 20px !important; /* smaller logo */
        height: auto !important;
        width: auto;
        display: block;
    }

    /* Menu toggle (hamburger) to the right */
    .menu-toggle {
        order: 3;
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        z-index: 1200; /* stay above other elements */
    }

    /* Language switcher kept near logo but after it if needed */
    .main-nav .language-switcher,
    .language-switcher,
    .lang-btn {
        order: 2;
        display: inline-flex !important;
        align-items: center;
        margin-left: 8px;
    }

    /* Keep main nav off-canvas (unchanged behavior) */
    .main-nav { order: 4; }

    /* Ensure padding-top uses header height if defined */
    body { padding-top: var(--header-height, 60px) !important; }
}

/* Very small screens tweak */
@media (max-width: 360px) {
    .main-header .logo .site-logo,
    .main-header .logo img {
        max-height: 18px !important;
    }
}
/* Enhanced About Us Page Styles */
.page-about-us {
    --brand-brown: #452816;
    --brand-orange: #e67e22;
    --light-bg: #f8f8f8;
    --card-shadow: 0 8px 25px rgba(0,0,0,0.1);
    --card-shadow-hover: 0 12px 35px rgba(0,0,0,0.15);
}

/* About Us Hero Section */
.page-about-us .hero-section.about-hero {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/banner.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 500px;
    border-radius: 0;
    overflow: hidden;
}

.about-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.about-hero .hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(69,40,22,0.8) 0%, rgba(230,126,34,0.6) 100%);
}

.about-hero .hero-inner {
    position: relative;
    z-index: 2;
}

.about-hero h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.about-hero .subtitle {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

/* About Us Intro Section */
.about-intro-section {
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    color: var(--brand-brown);
    font-size: 2.8em;
    margin-bottom: 20px;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--brand-orange);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2em;
    color: #666;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.intro-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin: 40px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.intro-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    padding: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .intro-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

.intro-image-container {
    position: relative;
}

.about-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.image-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: var(--brand-orange);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 0.9em;
    box-shadow: 0 4px 15px rgba(230,126,34,0.4);
}

.intro-text {
    color: #333;
    line-height: 1.8;
}

.highlight-text {
    font-size: 1.3em;
    font-style: italic;
    color: #452816;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(230,126,34,0.1) 0%, rgba(255,255,255,0.8) 100%);
    border-left: 4px solid #452816;
    border-radius: 8px;
}

.credentials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.credential-item:hover {
    background: var(--brand-orange);
    color: white;
    transform: translateY(-2px);
}

.credential-item i {
    font-size: 1.5em;
    color: #452816;
}

.credential-item:hover i {
    color: white;
}

/* Timeline Section */
.timeline-section {
    background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
    padding: 80px 0;
}

.timeline-container {
    margin-top: 40px;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.timeline-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.timeline-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.timeline-item:hover .timeline-image img {
    transform: scale(1.1);
}

.timeline-year-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--brand-orange);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    box-shadow: 0 2px 10px rgba(230,126,34,0.4);
}

.timeline-content {
    padding: 25px;
    text-align: left;
}

.timeline-icon {
    font-size: 2.5em;
    color: #452816;
    margin-bottom: 15px;
    display: block;
}

.timeline-content h3 {
    color: var(--brand-brown);
    font-size: 1.3em;
    margin-bottom: 15px;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

/* Philosophy Section */
.philosophy-section {
    background: #eee3c8 !important;
    color: #333;
    padding: 80px 0;
}

.philosophy-section h2 {
    color: #452816;
}

.philosophy-section .section-subtitle {
    color: #666;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.philosophy-card {
    background: rgba(255,255,255,0.7);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.philosophy-card:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.philosophy-icon {
    font-size: 3em;
    color: #452816;
    margin-bottom: 20px;
    display: block;
}

.philosophy-content h3 {
    color: #452816;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.philosophy-content p {
    color: #333;
    line-height: 1.6;
}

.philosophy-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: -1;
}

.philosophy-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    padding: 80px 0;
}

.stats-container {
    margin-top: 40px;
}

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

.stat-item {
    background: #fff;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.stat-icon {
    font-size: 3em;
    color: #452816;
    margin-bottom: 20px;
    display: block;
}

.stat-number {
    font-size: 3.5em;
    font-weight: bold;
    color: var(--brand-brown);
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    color: #666;
    font-size: 1.1em;
    font-weight: 600;
}

.stat-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    opacity: 0.05;
    z-index: -1;
}

.stat-bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Contact Section */
.about-contact-section {
    background: #eee3c8 !important;
    padding: 80px 0;
    color: #452816;
}

/* Force contact icons to be brown instead of white */
.about-contact-section .contact-option i {
    color: #452816 !important;
}

.contact-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 50px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.contact-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    background: rgba(0,0,0,0.6);
    padding: 40px;
    border-radius: 20px;
}

.contact-overlay h2 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.contact-overlay p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2em;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-option {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-option:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 3em;
    color: #452816;
    margin-bottom: 20px;
    display: block;
}

.contact-option h3 {
    color: #452816;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.contact-option p {
    color: #452816;
    margin-bottom: 25px;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .about-hero {
        min-height: 400px;
        background-attachment: scroll;
    }
    
    .section-header h2 {
        font-size: 2.2em;
    }
    
    .timeline-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-options {
        grid-template-columns: 1fr;
    }
    
    .contact-overlay h2 {
        font-size: 2em;
    }
    
    .intro-content {
        padding: 30px;
    }
    
    .credentials {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .about-hero {
        min-height: 300px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        height: 250px;
    }
}

/* Route Flags for Timeline */
.route-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 15px 0;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    align-items: center;
}

.route-flags img {
    width: 24px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.route-flags img:hover {
    transform: scale(1.1);
}

/* For trips with many countries, add a subtle indicator */
.route-flags.multiple-lines {
    max-width: 100%;
}

.route-flags.multiple-lines::after {
    content: '';
    flex-basis: 100%;
    height: 0;
}

/* Special styling for very long routes */
.route-flags.extended {
    max-width: 280px;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .route-flags {
        gap: 4px;
        padding: 8px;
    }
    
    .route-flags img {
        width: 20px;
    }
    
    .route-flags.extended {
        max-width: 240px;
    }
}

/* Video Section */
.video-section {
    background: #452816 !important;
    color: white;
    padding: 80px 0;
}

.video-header {
    text-align: center;
    margin-bottom: 50px;
}

.video-header h2 {
    color: white;
    font-size: 2.8em;
    margin-bottom: 20px;
    position: relative;
}

.video-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--brand-orange);
    border-radius: 2px;
}

.video-header .section-description {
    color: rgba(255,255,255,0.8);
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .video-section {
        padding: 60px 0;
    }
    
    .video-header h2 {
        font-size: 2.2em;
    }
    
    .video-header .section-description {
        font-size: 1.1em;
    }
    
    .video-container {
        padding: 0 15px;
    }
    
    .video-wrapper {
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .video-header h2 {
        font-size: 1.8em;
    }
    
    .video-header .section-description {
        font-size: 1em;
    }
    
    .video-container {
        padding: 0 10px;
    }
}

/* Timeline Video Link */
.timeline-video-link {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #452816;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    padding: 8px 16px;
    background: rgba(230,126,34,0.1);
    border: 1px solid rgba(230,126,34,0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.youtube-link:hover {
    background: #452816;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230,126,34,0.3);
}

.youtube-link i {
    font-size: 1.1em;
}

.youtube-link span {
    font-size: 0.9em;
}
/* Adjust for light background timeline items */
.timeline-item:not([data-dark="true"]) .youtube-link {
    background: rgba(230,126,34,0.1);
    border: 1px solid rgba(230,126,34,0.3);
    color: #452816;
}

.timeline-item:not([data-dark="true"]) .youtube-link:hover {
    background: #452816;
    color: white;
}
/* Adventure Images Carousel */
.adventure-images-section {
    padding: 60px 0;
    background: white;
    position: relative;
}

.adventure-images-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #452816;
}

.adventure-images-section .section-description {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

.images-carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.images-stripe {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 40px; /* Extra padding for navigation arrows */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.images-stripe::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.images-stripe:active {
    cursor: grabbing;
}

/* Navigation Arrows */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(69, 40, 22, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.carousel-nav-btn:hover {
    background: rgba(69, 40, 22, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
}

.carousel-nav-btn.prev {
    left: 10px;
}

.carousel-nav-btn.next {
    right: 10px;
}

/* Hide navigation buttons on mobile devices */
.carousel-nav-btn {
    display: none !important;
}

@media (min-width: 769px) {
    .carousel-nav-btn {
        display: flex !important;
    }
}

.image-item {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .images-stripe {
        gap: 15px;
        padding: 20px 0;
    }
    
    .image-item {
        width: 100px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .images-stripe {
        gap: 10px;
        padding: 20px 0;
    }
    
    .image-item {
        width: 80px;
        height: 60px;
    }
}

/* Show scroll indicators */
.images-stripe::before,
.images-stripe::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 60px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.images-stripe::before {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}

.images-stripe::after {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

/* Enhanced desktop drag functionality */
@media (hover: hover) and (pointer: fine) {
    .images-stripe {
        cursor: grab;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
    
    .images-stripe.dragging {
        cursor: grabbing;
    }
    
    .images-stripe.dragging .image-item {
        pointer-events: none;
    }
}



