/* ===================================================================
  FONTS (Using the paths from your previous file)
  =================================================================== 
*/
@font-face {
    font-family: 'DarlineScript';
    src: url('/static/fonts/WOFF/DarlineScript-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'DarlineSerif';
    src: url('/static/fonts/WOFF/DarlineSerif-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'DarlineSerif';
    src: url('/static/fonts/WOFF/DarlineSerif-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'DarlineSerif';
    src: url('/static/fonts/WOFF/DarlineSerif-Light.woff') format('woff');
    font-weight: 300; /* Light */
    font-style: normal;
  }

  .inria-serif-light {
    font-family: "Inria Serif", serif;
    font-weight: 300;
    font-style: normal;
  }
  
  .inria-serif-regular {
    font-family: "Inria Serif", serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .inria-serif-bold {
    font-family: "Inria Serif", serif;
    font-weight: 700;
    font-style: normal;
  }
  
  .inria-serif-light-italic {
    font-family: "Inria Serif", serif;
    font-weight: 300;
    font-style: italic;
  }
  
  .inria-serif-regular-italic {
    font-family: "Inria Serif", serif;
    font-weight: 400;
    font-style: italic;
  }
  
  .inria-serif-bold-italic {
    font-family: "Inria Serif", serif;
    font-weight: 700;
    font-style: italic;
  }

/* =================================================================== */
/* 2. GLOBAL & UTILITY STYLES
/* =================================================================== */

/* Universal Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth; /* Smooth scrolling */
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  
  body {
    padding: 0;
    margin: 0;
    max-width: 100%;
  }
  
  /* Hides the modal scrollbar from the body */
  body.modal-active {
    overflow: hidden;
  }
  
  /* Hide mobile-specific content on desktop */
  .mobile-only {
    display: none;
  }
  
  /* Re-usable class for section labels */
  .section-label {
    font-family: "Inria Serif", serif;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: 0.2rem;
    color: #bcbdb5;
    margin-bottom: 2rem;
  }


/* =================================================================== */
/* 4. NAVIGATION BAR
/* =================================================================== */

#navbar {
    position: sticky;
    top: 0;
    background-color: #9aacc4;
    width: 100%;
    z-index: 1000;
    height: 90px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    transition: background-color 0.8s ease, transform 0.8s ease, padding-top 0.8s ease;
  }
  
  #navbar.scrolled {
    background-color: #9aacc4;
    transform: translateY(0);
    padding-top: 0;
  }
  
  #navbar.hide-on-scroll-down {
    transform: translateY(-100%);
  }
  
  .navbar .logo-link {
    text-align: center;
  }
  
  .navbar .logo {
    max-height: 70px;
    width: auto;
  }
  
  .nav-links {
    display: flex;
    gap: 60px;
  }
  
  .navbar .nav-link {
    font-family: "inria-bold-italic", serif; /* NOTE: Make sure this font is loaded or defined */
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .navbar .nav-link:hover {
    color: #f0f0f0; /* Slight fade on hover */
  }
  
  .nav-icons {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  
  .search-icon {
    width: 24px;
    height: 24px;
    fill: white;
  }


/*
========================================
ACCOMMODATIONS SECTION
========================================
*/

.accommodations-section {
    position: relative;
    padding: 50px 2rem;
    background-image: url('/Users/emmahernandez/EmandEWedding/static/Content/PK_PAPER_5.jpg');
    background-repeat: repeat;
}

/* Decorative floral borders */
.floral-border {
    position: absolute;
    top: 0;
    width: auto;
    max-height: 900px; /* Adjust as needed */
    z-index: 1;
    pointer-events: none; /* Prevents images from being clicked */
}

.floral-left {
    left: -40px;
    top: -20px;
}

.floral-right {
    right: -40px;
}

/* Main content wrapper */
.accommodations-content {
    position: relative; /* Stays on top of the floral borders */
    z-index: 2;
    max-width: 950px; /* Content width */
    margin: 0 auto; /* Centered */
    text-align: center;
}

/* The script title "Accommodations" */
.accommodations-content .section-title {
    font-family: 'Darline Script', cursive;
    font-size: 4rem; /* Large and elegant */
    font-weight: 400;
    color: #9aacc4; /* Dusty blue/grey from screenshot */
    margin-bottom: 1.5rem;
    line-height: 1;
    text-shadow: 0px -1px 1px rgba(0, 0, 0, 0.3), /* Dark top edge (softened) */
                 0px 1px 1px rgba(255, 255, 255, 0.75); /* Light bottom edge */
}

/* The description paragraphs */
.accommodations-description {
    font-family: 'Inria Serif', serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    max-width: 750px; /* Keeps text block readable */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.accommodations-description:last-of-type {
    margin-bottom: 3rem; /* Space above the grid */
}

/* Grid container for the 4 cards */
.accommodation-grid {
    display: grid;
    /* Creates 4 equal columns */
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem; /* Space between cards */
}

/* Individual accommodation card */
.accommodation-card {
    text-align: center;
}

/* The image frame with the unique shape */
.accommodation-image-frame {
    /* This uses an inline SVG as a 'mask' to clip the 
     image into the special shape from your screenshot.
    */
    --mask-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 130'%3E%3Cpath d='M 0,25 C 0,10 10,0 25,0 H 175 C 190,0 200,10 200,25 V 105 C 200,120 190,130 175,130 H 25 C 10,130 0,120 0,105 V 25 Z'/%3E%3C/svg%3E");
    
    -webkit-mask-image: var(--mask-url);
    mask-image: var(--mask-url);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    
    background-color: #f0f0f0; /* Fallback color */
    overflow: hidden; /* Clips the image inside */
    margin-bottom: 1.25rem;
    
    /* This forces the frame to keep the mask's aspect ratio */
    aspect-ratio: 200 / 130; 
}

.accommodation-image-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* Ensures image fills the frame */
}

/* Text content below the image */
.accommodation-details h3 {
    font-family: 'Inria Serif', serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em; /* Spaced out caps */
    color: #444;
    margin: 0;
    padding: 0;
    margin-bottom: 0.25rem;
    text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.15);
}

.accommodation-details p {
    font-family: 'Inria Serif', serif;
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    padding: 0;
    margin-bottom: 0.75rem;
}

/* The "WEBSITE" link */
.website-link {
    font-family: 'Inria Serif', serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #333;
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 2px solid #ccc;
    transition: border-color 0.3s ease;
}

.website-link:hover {
    border-bottom-color: #8D9BA8; /* Dusty blue on hover */
}

/*
========================================
RESPONSIVE ADJUSTMENTS
========================================
*/

@media (max-width: 900px) {
    /* On tablets, hide the large florals */
    .floral-border {
        display: none;
    }

    /* Stack to a 2x2 grid */
    .accommodation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 600px; /* Constrain grid width */
        margin: 0 auto; /* Center the 2x2 grid */
    }
}

@media (max-width: 768px) {
    .accommodations-section {
        padding: 4rem 1.5rem;
    }

    .accommodations-content .section-title {
        font-size: 4rem; /* Smaller title on mobile */
    }
}

@media (max-width: 480px) {
    /* Stack to a 1-column grid on small phones */
    .accommodation-grid {
        grid-template-columns: 1fr;
        max-width: 300px; /* Constrain single column */
    }
}

  
  /* ===================================================================
    ADVENTURE SECTION STYLES - TALL OVAL DESIGN
    =================================================================== 
  */
  
  .adventure-section {
    width: 100%;
    /* max-width: 1100px; <-- Removed this */
    margin: 60px auto;
    padding: 60px 20px; /* More vertical padding */
    box-sizing: border-box;
    text-align: center;
    /* This adds the striped background from your inspiration image */
    background-image: repeating-linear-gradient(
      90deg, 
      #eff4fa, /* Your light blue */
      #eff4fa 60px, 
      #ffffff 60px, /* A lighter blue/white */
      #ffffff 120px
    );
  }
  
  .adventure-header {
    margin-bottom: 40px;
    display: inline-block; /* Make background fit content */
    padding: 20px 40px;
  }
  
  .adventure-title {
    font-family: "DarlineScript", cursive;
    font-size: 4rem;
    font-weight: normal;
    color: #9aacc4; /* Your blue */
    margin: 0;
    line-height: 1.2;
  }
  
  .adventure-subtitle {
    font-family: "Inria Serif", serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #888;
    margin-top: 10px;
  }
  
  .adventure-chooser {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Makes ovals the same height */
    gap: 50px;
    flex-wrap: wrap;
    padding-top: 20px; /* Space between header and ovals */
  }
  
  .adventure-card {
    /* Reset button styles */
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    
    /* Card styling */
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    justify-content: center; /* Center content vertically */
    
    width: 100%;
    max-width: 280px; /* Set a max-width for the oval */
    min-height: 400px; /* Set a min-height to make it tall */
    padding: 40px 20px; /* Padding inside the oval */
    text-align: center;
    
    /* This is the key: border-radius is half of the max-width */
    border-radius: 140px; 
    
    /* This is the blue border from your inspiration */
    border: 1px solid #9aacc4; /* Your lighter blue, dashed */
    
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  
  .adventure-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #6587ab; /* Darker blue border on hover */
  }
  
  .card-icon {
    /* This is just a container for your image */
    width: 100px; /* Size of the icon */
    height: 100px;
    margin-bottom: 20px; /* Space between icon and text */
    /* Remove any old background/border styles */
  }
  
  .card-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* Ensures your watercolor image fits */
  }
  
  .adventure-card h3 {
    font-family: "DarlineSerif", serif;
    font-weight: bold;
    font-size: 1.4rem;
    color: #6587ab;
    margin: 0 0 10px 0;
  }
  
  .adventure-card p {
    font-family: "Inria Serif", serif;
    font-weight: 300; /* Light */
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
    max-width: 220px; /* Keep text from touching the edges */
  }
  
  
  /* ===================================================================
    ITINERARY MODAL STYLES
    =================================================================== 
  */
  
  #itinerary-modal.modal-hidden {
    display: none;
  }

  #itinerary-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    
    display: flex;
    align-items: center;
    justify-content: center;
  
    /* Subtle fade-in for the modal */
    animation: fadeIn 0.3s ease-out;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    cursor: pointer;
  }
  
  .modal-content {
    position: relative;
    z-index: 1051;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px 40px;
    box-sizing: border-box;
    
    /* Subtle slide-in animation */
    animation: slideIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-family: sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
  }
  
  .modal-close:hover {
    color: #333;
  }
  
  /* ===================================================================
    MODAL *ITINERARY* STYLES (for the JS-injected content)
    =================================================================== 
  */
  
  #modal-itinerary-content h2 {
    font-family: "DarlineScript", cursive;
    font-size: 2.5rem;
    font-weight: normal;
    color: #6587ab;
    text-align: center;
    margin: 0 0 25px 0;
  }
  
  #modal-itinerary-content h4 {
    font-family: "DarlineSerif", serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: #9aacc4;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  
  #modal-itinerary-content p {
    font-family: "Inria Serif", serif;
    font-weight: 300;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
  }
  
  #modal-itinerary-content strong {
    font-weight: bold;
    color: #6587ab;
  }
  
  .download-button {
    display: inline-block;
    text-decoration: none;
    background-color: #6587ab;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 25px;
    font-family: "DarlineSerif", serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin-top: 20px;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
  }
  
  .download-button:hover {
    background-color: #4e6a8a; /* Darker blue */
    transform: scale(1.03);
  }
  
/* ===================================================================
  RESPONSIVE ADJUSTMENTS for smaller screens
  =================================================================== 
*/
@media (max-width: 960px) {
  /* This is new - handles the 3-across ovals better on tablets */
  .adventure-card {
    max-width: 240px;
    border-radius: 120px;
  }
}

@media (max-width: 768px) {
  .adventure-title {
    font-size: 3rem;
  }
  .adventure-chooser {
    flex-direction: column; /* Stack cards vertically */
    align-items: center;
  }
  .adventure-card {
    max-width: 80%; /* Allow cards to take more width on small screens */
    margin-bottom: 20px; /* Space between stacked cards */
    min-height: 340px; /* Adjust height for mobile */
    /* This calculation keeps the oval shape */
    border-radius: calc( (100vw * 0.8) / 2 );
  }
}

@media (max-width: 480px) {
  .adventure-title {
    font-size: 2.5rem;
  }
  .adventure-header {
    padding: 15px 25px;
    max-width: 90%;
  }
  .card-icon {
    width: 80px; /* Smaller icons on very small screens */
    height: 80px;
  }
  .adventure-card h3 {
    font-size: 1.2rem;
  }
  .adventure-card p {
    font-size: 0.9rem;
  }
  .adventure-card {
    min-height: 300px;
  }
}