/* CSS Variables from Specification */
:root {
    --background-color: #fdfaf5;
    --primary-color: #7b2c2c;
    --secondary-color: #c9a646;
    --text-color: #2e2e2e;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Lato', sans-serif;
    --border-color: #e0e0e0;
}

/* General Body Styling */
body {
    margin: 0;
    font-family: var(--body-font);
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 18px;
    line-height: 1.6;
}

/* Header & Video Background */
.video-header {
    position: relative;
    height: 98vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0px 10px 13px -7px #000000, 5px 9px 15px 5px rgba(0,0,0,0);
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
}

/* Hero Text */
.hero-text {
    color: white;
    z-index: 5;
}

.hero-text h1 {
    font-family: var(--heading-font);
    font-size: 6em;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.7);
    transition: all 3s ease-in-out;
}

/* Video Controls */
.video-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.video-control-btn {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}
.video-control-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}
.video-control-btn svg {
    width: 24px;
    height: 24px;
}


/* Age Verification Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-content {
    background-color: var(--background-color);
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-left: 5px solid var(--primary-color);
}

.overlay-content h1 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-top: 0;
}

.overlay-content p {
    margin-bottom: 30px;
}

.overlay-button {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.overlay-button.confirm {
    background-color: var(--primary-color);
    color: white;
}
.overlay-button.confirm:hover {
    background-color: #5a1f1f;
    transform: translateY(-2px);
}

.overlay-button.decline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid #ccc;
}
.overlay-button.decline:hover {
    background-color: #f0f0f0;
}

/* Navigation Bar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    padding: 20px 0;
    text-align: center;
    z-index: 100;
    transition: all 0.4s ease-in-out;
}

nav.scrolled {
    background-color: var(--background-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 2px solid var(--secondary-color);
}

nav a {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin: 0 25px;
    text-decoration: none;
    font-size: 20px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.4s ease-in-out;
}

nav:not(.scrolled) a {
    color: white;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}


nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 100%;
}

nav:not(.scrolled) a:hover::after {
        background-color: white;
}

.nav-toggle,
.nav-toggle-label {
    display: none;
}

/* Main Content Sections */
.content-section { 
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: var(--heading-font);
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    bottom: -10px;
    left: 20%;
    background-color: var(--secondary-color);
}

/* Accordion Styling */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.accordion-header {
    background-color: #fff;
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--heading-font);
    font-size: 1.5em;
    color: var(--primary-color);
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: #f9f9f9;
}

.accordion-header-title-and-weather {
    display: flex;
    gap: 1em;
}

.accordion-header .icon {
    font-size: 1.2em;
    transition: transform 0.4s ease;
    color: var(--text-color);
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(135deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
    background-color: #fff;
}

.accordion-item.active .accordion-content {
    padding: 20px 25px;
}

/* New Mockup Styles */
.weather-forecast {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--body-font);
    font-size: 0.8rem;
    color: var(--text-color);
}
.weather-forecast span {
    font-size: 1.5rem;
}
.weather-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.activity {
    display: grid; 
    grid-template-columns: 100px 1fr 150px;
    gap: 5px;
    padding: 15px 0;
    position: relative;
    min-height: 80px;
    align-items: center;
}

.activity:has(.travel-info) {
    align-items: center;
}

.activity::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 30px;
    border-left: 2px dotted #ccc;
}

.activity-time {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1em;
    background-color:white;
    z-index: 99;
}

.activity-title {
    font-weight: bold;
    font-size: 1.2em;
}

.travel-info + .activity-title {
    font-weight: 200;
}

.comments-section {
    grid-column: 2;
    margin-top: 8px;
    padding-left: 25px;
    font-size: 0.95em;
    color: #555;
}
.comment {
    display: flex;
    gap: 1em;
    align-items: center;
    padding: 4px 0;
    font-weight: 200;
}

.gmaps-link {
    justify-self: end;
    display: flex;
    align-items: center;
}

.gmaps-link img {
    width: 32px;
    height: 32px;
}

.comment .gmaps-link img {
    width: 24px;
    height: 24px;
    margin: auto auto;
}

.travel-info {
    display: flex;
    align-items: center;
    gap: 4px;
    align-self: center;
    background-color: white;
    z-index: 99;
}

.travel-details {
    display: flex;
    flex-direction: column;
    font-size: 0.9em;
    color: #666;
}

.travel-icon {
    width: 24px;
    height: 24px;
}

.travel-description {
    font-weight: bold;
    font-size: 1.2em;
}

/* Sightseeing section */
.sights-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; /* Adjust the spacing between items */
  padding: 1.5rem; /* Optional: adds some space around the whole grid */
}

.sight {
  position: relative; 
  aspect-ratio: 4 / 3; 
  border-radius: 8px; 
  overflow: hidden; 
  
  display: flex;
  justify-content: center;
  align-items: center;

  transition: all 0.2s ease-in-out;
}

/* The image inside the card */
.sight img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crucial: covers the entire div without stretching/distorting the image */
  z-index: 1;
}

.sight:hover {
    scale: 103%;
}

/* The darkening overlay effect */
.sight::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); 
  z-index: 2; 
}

.sight p {
  color: white;
  font-weight: bold;
  z-index: 3; 
  margin: 0; 
  padding: 1rem;
  text-align: center;
}

.usefull-stuff-container {
    line-height: 2.5;
    margin-bottom: 2em;
    display: grid;
    max-width: 500px;
    margin: 0 auto;
}

.usefull-stuff-container span {
    display:block;
    font-weight: 500;
    font-size: 1.2rem;
}

.usefull-stuff-container a {
    color: white;
    display: inline-block;
    background-color: var(--secondary-color);
    padding: 0.15em 0.75em;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 1em;
}

.usefull-stuff-container a:hover {
    scale: 101%;
    box-shadow: #2e2e2e;
}

/* Footer */
footer {
    background-color: #f0ebe4;
    padding: 40px 20px;
    text-align: center;
    border-top: 3px solid var(--secondary-color);
}

footer p { margin: 0 0 15px 0; }
footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 2px;
    transition: color 0.3s, border-bottom-color 0.3s;
}
footer a:hover { color: var(--secondary-color); border-bottom-color: var(--secondary-color); }


@media (max-width: 768px) {
    
    /* Adjust nav padding and alignment for mobile */
    nav {
        padding: 15px 20px;
        justify-content: flex-end; /* Align hamburger to the right */
    }

    /* --- Hamburger Icon Styles --- */
    .nav-toggle-label {
        display: block;
        position: relative;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 101; /* Ensure it's above the link container */
    }

    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: white;
        transition: all 0.3s ease-in-out;
        border-radius: 2px;
    }

    /* Change hamburger color when nav is scrolled */
    nav.scrolled .nav-toggle-label span,
    nav.scrolled .nav-toggle-label span::before,
    nav.scrolled .nav-toggle-label span::after {
        background-color: var(--primary-color);
    }
    
    .nav-toggle-label span::before {
        content: '';
        top: -10px;
    }
    
    .nav-toggle-label span::after {
        content: '';
        top: 10px;
    }

    /* Hide the checkbox itself */
    .nav-toggle {
        display: none;
    }

    /* --- Navigation Links Container --- */
    .nav-links {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        background-color: var(--background-color, #fff); /* Fallback color */
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        
        /* Animate the dropdown */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;

        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 60px; /* Space for the fixed nav bar */
    }

    /* Reset link styles for vertical layout */
    nav a {
        margin: 15px 0;
        font-size: 22px;
        color: var(--primary-color); /* Always use primary color in open menu */
        text-shadow: none; /* Remove text shadow */
    }
    nav a::after {
        background-color: var(--secondary-color); /* Always use secondary color for underline */
    }

    /* --- The Magic: Toggle Menu with :checked --- */
    
    /* When the checkbox is checked, expand the menu */
    .nav-toggle:checked ~ .nav-links {
        max-height: 400px; /* A height large enough to show all links */
    }

    /* Animate hamburger to an "X" when checked */
    .nav-toggle:checked ~ .nav-toggle-label span {
        transform: rotate(45deg);
    }
    .nav-toggle:checked ~ .nav-toggle-label span::before {
        top: 0;
        transform: rotate(90deg);
    }
    .nav-toggle:checked ~ .nav-toggle-label span::after {
        top: 0;
        transform: rotate(90deg);
    }

    .section-title {
        font-size: 2em;
    }

}