/* Styles that show or hide elements when switching languages */
.en,
.es {
    display: none !important;
}
.lang-en .en {
    display: block !important;
}
.lang-en .es {
    display: none !important;
}
.lang-es .es {
    display: block !important;
}
.lang-es .en {
    display: none !important;
}

/* Basic page styling */
html, body {
    height: 100%;
    overflow-y: scroll;
    scroll-behavior: smooth;
    margin: 0;
}
body, h1, h2, h3, h4, h5, h6, p, label {
    font-family: "Raleway", Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}
body {
    background: #F4F9FD;
    background-attachment: scroll;
    background-size: cover;
    color: #3A4163;
    font-size: 16px;
    line-height: 1.5;
    position: relative;
    scroll-snap-type: y mandatory;
}

/* Styles for the top navigation bar */
.nav-bar {
    background-color: #EDF3FB;
    border-bottom: 1px solid #ccc;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 3000;
}
.nav-bar a {
    color: #3A4163;
    text-decoration: none;
}
.nav-bar .tab-button {
    display: flex;
    align-items: center;
    gap: 4px;
}
.w3-button.tablink {
    background-color: #5AA8D6;
    color: #FFFFFF;
}
.w3-button.tablink:hover {
    background-color: #3A4163;
    color: #FFFFFF;
}
.tablink.w3-red {
    background-color: #5AA8D6;
    color: white;
}
.w3-button.w3-dark-grey {
    background-color: #3A4163;
    color: #FFFFFF;
}
.w3-button.w3-dark-grey:hover {
    background-color: #5AA8D6;
    color: #FFFFFF;
}

/* Main content container */
#page-content {
    position: relative;
    z-index: 2500;
    opacity: 1;
    margin-top: 50px; /* leaves room for the fixed nav bar */
}

/* Fullscreen container for the spinning globe */
#globe-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease;
    z-index: 5000;
    background: transparent;
}
#globe-container.active {
    opacity: 1;
}

/* Full-screen carousel styling */
.carousel {
    position: relative;
    width: 100vw;
    height: 100%;
    overflow: hidden;
}
.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    transition: opacity 1.5s ease-in-out;
}
.carousel-item.active {
    display: block;
    opacity: 1;
}
.carousel-indicators {
    position: absolute;
    right: 0;
    bottom: 15px;
    left: 0;
    display: flex;
    justify-content: center;
    list-style: none;
    z-index: 1000;
}
.carousel-indicators li {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 30px;
    height: 3px;
    margin: 0 3px;
    background-color: #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    opacity: 0.6;
    transition: opacity 0.6s ease;
    cursor: pointer;
}
.carousel-indicators .active {
    opacity: 1;
}
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tab panels centered on the page with a slide animation */
#tab-content-area {
    padding: 0;
    z-index: 0;
}
#tab-content-area .tab-panel {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: 90%;
    max-width: 1100px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 8px 8px;
    padding: 20px;
    opacity: 0;
    display: none;
    z-index: 4000;
}
@keyframes slideDownFade {
    from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    }
    to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    }
}
.tab-panel.animate-in {
    animation: slideDownFade 0.3s ease-out both;
}

/* Styles for the hero section */
header {
    height: 100vh;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
}
header .carousel,
header .carousel-inner,
header .carousel-item {
    height: 100%;
}

    /* Contact Us section */
/* Container that holds the contact info at the bottom of the banner */
.contact-info-container {
position: absolute;
bottom: 120px;            /* distance from the bottom of the banner */
left: 50%;
transform: translateX(-50%);
z-index: 950;            /* higher than the carousel but below the nav */
background: rgba(0, 0, 0, 0.5);
padding: 12px 20px;
border-radius: 4px;
text-align: center;
color: #ffffff;
max-width: 90%;
}

.contact-info-container .contact-title {
margin: 0 0 8px;
font-size: 2.5rem;
font-weight: 500;
line-height: 1.2;
}

.contact-info-container .contact-details {
display: flex;
flex-direction: row;
gap: 20px;
}

.contact-info-container .contact-item {
display: flex;
align-items: center;
justify-content: center;
font-size: 1rem;
gap: 6px;
}

.contact-info-container .contact-item i {
font-size: 1.2rem;
}

/* Show or hide English and Spanish text */
.lang-en .contact-info-container .es,
.lang-es .contact-info-container .en {
display: none !important;
}
.lang-en .contact-info-container .en {
display: inline !important;
}
.lang-es .contact-info-container .es {
display: inline !important;
}

/* Allow wrapping on very small screens */
@media only screen and (max-width: 480px) {
.contact-info-container .contact-details {
flex-wrap: wrap;
gap: 10px;
}
}

/* Footer copyright box */
.copyright-box {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.822);
    padding: 5px 10px;
    font-size: 0.75em;
    color: #000000;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    z-index: 6000;
}


/* Make the header relative so its absolute children position correctly */
header {
position: relative;
}

    /* Partner carousel positioned below the contact section */
    .partner-carousel {
    position: absolute;
    bottom: 0;               /* stick to the very bottom of the header */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 80px;            /* tweak as needed */
    overflow: hidden;
    background-color: rgb(255, 255, 255);
    border-top: 1px solid #ddd;
    display: flex;
    align-items: center;
    z-index: 950;            /* sits just above the contact box */
    }

    .carousel-track {
    display: flex;
    align-items: center;
    height: 100%;
    animation: scroll-logos 120s linear infinite;
    }

    .partner-logo {
    flex: 0 0 auto;
    height: 60px;           /* change if necessary */
    margin: 0 20px;
    object-fit: contain;
    }

    @keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
    }
    
    .partner-carousel:hover .carousel-track {
    animation-play-state: paused;
    }

    /* Mobile tweaks */



/* Mobile UI adjustments for screens under 768px */
@media only screen and (max-width: 768px) {
/* Remove extra padding or margin from the nav buttons container */
#tab-buttons {
display: flex !important;
padding: 0 !important;
margin: 0 !important;
gap: 0 !important;
}

/* Give each button the same width and center just the icon */
.tab-button {
flex: 1 !important;
margin: 0 !important;
padding: 10px !important;
display: flex !important;
justify-content: center !important;
align-items: center !important;
text-align: center !important;
}

/* Hide the <span> labels inside each tab button */
.lang-en .tab-button span,
.lang-es .tab-button span {
display: none !important;
}

/* Keep the icon block-level with no margins */
.tab-button i {
display: block !important;
font-size: 20px !important;
margin: 0 !important;
}

/* Slightly smaller logo */
.nav-bar img {
height: 40px !important;
width: auto !important;
}

/* Make the language toggle icon smaller */
#language-toggle img {
height: 36px !important;
}

/* Shorten the hero area to 60vh on phones */
header {
height: 60vh !important;
}

/* Make the carousel indicators smaller */
.carousel-indicators li {
width: 20px !important;
margin: 0 2px !important;
}

/* Tweak tab panel position and width */
#tab-content-area .tab-panel {
top: 100px !important;
width: 95% !important;
left: 50% !important;
transform: translateX(-50%) translateY(-10px) !important;
padding: 15px !important;
}

/* Smaller top margin for the page content */
#page-content {
margin-top: 55px !important;
}

/* Make the Tours & Hotels iframe fill the remaining height */
#ToursHotels iframe.en,
#ToursHotels iframe.es {
height: calc(100vh - 120px) !important;
}


header {
overflow: visible !important;
height: 60vh !important;
}

/* Position the “Contact Us” box right above the carousel */
.contact-info-container {
position: fixed !important;
bottom: 60px !important;    /* matches the partner carousel height */
left: 0 !important;
width: 100% !important;
transform: none !important;
margin: 0 auto !important;
background: rgba(0, 0, 0, 0.5) !important;
padding: 12px 20px !important;
text-align: center !important;
z-index: 1001 !important;
max-width: 100% !important;
}

/* Keep the partner carousel fixed to the bottom of the screen */
.partner-carousel {
position: fixed !important;
bottom: 0 !important;
left: 0 !important;
transform: none !important;
width: 100% !important;
height: 60px !important;
z-index: 1000 !important;
background-color: rgba(255, 255, 255, 0.95) !important;
border-top: 1px solid #ddd !important;
}

/* Add bottom padding so content isn’t hidden under the carousel */
#page-content {
padding-bottom: 60px !important;
}

/* Adjust carousel speed for mobile */
.partner-carousel .carousel-track {
animation-duration: 15s !important;
}
.partner-carousel .partner-logo {
height: 40px !important;
margin: 0 12px !important;
}
}

/* more styling in regards to the see more button */
#hotel-results {
  max-height: 65vh;
  overflow-y: auto;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

#see-more-container {
  position: sticky;
  bottom: 0;
  background: white;
  padding: 15px;
  text-align: center;
  z-index: 10;
  margin-top: 20px;
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.hotel-card {
  margin-bottom: 30px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  #hotel-results {
    max-height: 55vh;
    padding: 10px;
  }
  
  .hotel-card .w3-col {
    width: 100% !important;
  }
}
/* Ensure spinner is properly aligned */
.w3-center .fa-spinner {
    display: block;
    margin: 0 auto;
}

/* css for child age */
#child-ages-inputs {
  max-height: 150px;
  overflow-y: auto;
  padding: 5px;
  background: #f9f9f9;
  border-radius: 4px;
  margin-top: 5px;
}

#child-ages-inputs input {
  width: 100%;
}

/* In index.css (same as before) */
#maxRate, #minCategory {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .w3-quarter {
        width: 50% !important;
    }
}

/* CSS FOR DASHBOARD APP */

/* Dashboard Styles */
.dashboard-container {
    margin-top: 20px;
}

.sidebar {
    padding-right: 15px;
}

.main-content {
    padding-left: 15px;
}

.sidebar .w3-card {
    position: sticky;
    top: 80px;
}

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

.sidebar li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.sidebar li:last-child {
    border-bottom: none;
}

.sidebar a {
    text-decoration: none;
    color: #3A4163;
    font-weight: 500;
}

.sidebar a:hover {
    color: #5AA8D6;
}

/* Table Styles */
.w3-table-all {
    margin-top: 20px;
}

.w3-table-all th {
    font-weight: 600;
}

/* Card Styles for User Dashboard */
.user-booking-card {
    transition: all 0.3s;
    border-left: 4px solid #5AA8D6;
}

.user-booking-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


/* pill‑style (matches your tab buttons) */
.nav-pill{
  background:#5AA8D6;
  color:#fff;
  border:none;
  border-radius:6px;
  padding:8px 14px;
  font-size:20px;
  display:flex;
  align-items:center;
  gap:4px;
  cursor:pointer;
  transition:background .25s;
}
/* 1️⃣  Make sure the nav bar and the toggle button don’t clip content */
.nav-bar            { overflow: visible; }   /* navbar must not hide child overflow */
.nav-pill           { overflow: visible !important; }  /* override .w3-button overflow:hidden */

/* 2️⃣  Pill‑shaped button (unchanged except ↑ overflow override)        */
.nav-pill{
  background:#5AA8D6;
  color:#fff;
  border:none;
  border-radius:6px;
  padding:8px 14px;
  font-size:20px;
  display:flex;
  align-items:center;
  gap:4px;
  cursor:pointer;
  transition:background .25s;
}
