@font-face {
    font-family: 'Baskerville';
    src: url('fonts/Baskervville-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Baskerville';
    src: url('fonts/Baskervville-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

section {
    padding: 3rem 1rem !important;
    margin: auto;
    max-width: 1200px;
}

.color-hex {
    color: #FF4B3D;
}

/* Navigation Styles */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    z-index: 50;
}

.highlight {
    color: #FF4B3D;
    font-weight: 600;
}

.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 32px 16px 6px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 4rem;
}

.site-title {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 100;
    font-family: 'Bodoni Moda', sans-serif;
    text-transform: uppercase;
}

/* Mobile Scrollable Anchor Bar */
.mobile-nav {
    overflow-x: auto;
    white-space: nowrap;
    background-color: white;
    padding: 0.5rem 1rem;

    /* Hide scrollbar for Chrome, Safari and Opera */
    &::-webkit-scrollbar {
        display: none;
    }

    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mobile-nav a {
    display: inline-block;
    margin-right: 32px;
    text-transform: uppercase;
    font-size: 11px;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 1.9px;
}

.mobile-nav a:last-child {
    margin-right: 0;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 1rem 1rem;
    text-transform: uppercase;
    font-size: 11px;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 1.9px;
}

.desktop-nav ul {
    display: flex;
    gap: 2.5rem;
}

/* Hover Effects */
.mobile-nav a:hover,
.desktop-nav a:hover {
    color: #FF5C50;
}

.mobile-nav a.active,
.desktop-nav a.active {
    color: #FF5C50;
    font-weight: 800;
}

/* If you want an underline effect */
.desktop-nav a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    margin-top: 2px;
    color: #FF5C50;
}

/* For mobile highlight */
.mobile-nav a.active.highlight {
    color: #FF5C50;
    font-weight: 800;
}

/* Media Query for Desktop */
@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }

    .desktop-nav {
        display: flex;
    }
}

/* Remove default link styles */
a {
    text-decoration: none;
    color: inherit;
}

/* Reset list styles */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* RSVP Hero Section */
.rsvp-section {
    position: relative;
    width: 100%;
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    max-width: unset;
    padding: 0 !important
}

@media (min-width: 768px) {
    .rsvp-section {
    height: 90vh;
    }
}

/* Overlay */
.rsvp-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ED7868;
    opacity: 0.4;
}

.overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    top: 25%;
}

.hero-title {
    font-size: 42px;
    font-weight: 400;
    font-family: 'Baskerville', sans-serif;
}

.hero-subtitle {
    font-size: 42px;
    font-family: 'Baskerville', sans-serif;
    font-style: italic;
    margin-top: -1rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 64px;
    }

    .hero-subtitle {
        font-size: 64px;
        margin-top: -2rem;
    }
}

.hero-text {
    font-size: 16px;
    font-family: 'Baskerville', sans-serif;
    font-weight: 5;
}

.rsvp-btn {
    background-color: white;
    color: black;
    padding: 16px 24px;
    border-radius: 100px;
    width: 150px;
    font-weight: 700;
    letter-spacing: 1.9px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
    font-size: 11px;
}

.rsvp-btn:hover {
    background-color: #FF5C50;
}

.section-name {
    font-size: 11px;
    font-family: 'Roboto Medium', sans-serif;
    font-weight: 800;
    letter-spacing: 1.9px;
    margin-bottom: 1rem;
    color: #FF5C50;
    text-transform: uppercase;
}

.description {
    color: #374151;
    line-height: 1.625;
    font-family: 'Baskerville', sans-serif;
    margin-bottom: 1rem;
}

.description p {
    margin-bottom: 1.5rem;
    font-family: 'Baskerville', sans-serif;
}

.description p:last-child {
    margin-bottom: 0;
    font-family: 'Baskerville', sans-serif;
}

@media (min-width: 768px) {
    .description {
        text-align: left;
        max-width: 800px;
    }
}

h3 {
    font-size: 42px;
    font-family: 'Baskerville', sans-serif;
    font-weight: 300;
}

h4 {
    font-size: 1.5rem;
    font-weight: 500;
    font-family: 'Baskerville', sans-serif;
    margin-bottom: 0.75rem;
}

h5 {
    font-size: 1.25rem;
    font-weight: 500;
    font-family: 'Baskerville', sans-serif;
    margin-bottom: 1rem;
}

/* Theme Section */

.theme-section {
    max-width: 80rem;
    padding: 3rem 1rem;
    min-height: 100vh;
}

.tabs-container {
    margin-bottom: 2rem;
}

.tabs-buttons {
    display: flex;
    gap: 2rem;
}

.tab-button {
    padding: 1rem 0.25rem;
    border-bottom: 2px solid transparent;
    font-family: 'Roboto Medium', sans-serif;
    letter-spacing: 1.9px;
    text-transform: uppercase;
    font-weight: 500;
    color: darkgrey;
    transition: all 0.3s ease;
    font-size: 11px;
}

.tab-button:hover {
    color: #FF5C50;
    font-style: italic;
}

.tab-button.active {
    color: black;
    font-style: italic;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.second-line {
    margin-top: -1rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    aspect-ratio: 5/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.gallery-item img:hover {
    filter: grayscale(0%);
}

.pinterest-cta {
    text-align: center;
}

@media (min-width: 768px) {
    .pinterest-cta {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid #FF4B3D;
    border-radius: 100px;
    font-family: 'Roboto Medium', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.9px;
    font-weight: 800;
    font-size: 11px;
    color: #FF4B3D;
    background-color: white;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
}

.btn-primary:hover {
    background-color: #FF5C50;
    color: white;
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ec4899;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-family: Roboto, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.9px;
    font-weight: 800;
    font-size: 11px;
    color: #FF4B3D;
    background-color: white;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
}

.btn-secondary:hover {
    background-color: #FF5C50;
    color: white;
}

.btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ec4899;
}

.pinterest-icon {
    margin-left: 0.5rem;
    height: 1.25rem;
    width: 1.25rem;
}

/* Stay Section */
.stay-section {
    max-width: 80rem;
    padding: 5rem 1rem !important;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Hotel Component Styles */
.hotel-row {
    margin-bottom: 4rem;
    align-items: center;
}

.hotel-row.reverse .hotel-image {
    order: 1;
}

@media (max-width: 989px) {
    .hotel-row.reverse .hotel-image {
        order: 2;
    }
}

.hotel-row.reverse .content-left {
    order: 2;
}

.hotel-title {
    font-size: 24px;
    margin-bottom: 1rem;
    font-family: 'Baskerville', sans-serif;
    font-weight: 400;
}

.hotel-info {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.hotel-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature,
.stars-tag,
.hotel-features .distance,
.hotel-features .price {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    font-size: 12px;
    font-family: 'Roboto Medium', sans-serif;
    letter-spacing: 0.5px;
    background-color: #f8f8f8;
}

.feature {
    color: #333;
}

.stars-tag {
    color: #888;
}

.hotel-features .price {
    color: #FF4B3D;
    font-weight: bold;
}

.hotel-image {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hotel-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.hotel-image:hover img {
    transform: scale(1.05);
}

.content-wrapper {
    display: block;
}

@media (min-width: 768px) {
    .content-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }

    .content-left {
        padding: 0 2rem;
    }

    .stay-section .description {
        margin-bottom: 1.5rem;
    }
}

.location {
    font-size: 18px;
    font-family: 'Baskerville', sans-serif;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-decoration: underline;
}

.cta-container {
    margin-top: auto;
}

.cta-container .btn-primary {
    max-width: 200px;
}

.see-all-hotels {
    text-align: center;
    margin: 3rem 0;
}

.see-all-hotels .btn-secondary {
    max-width: 250px;
    margin: 0 auto;
    display: block;
}

.booking-note {
    margin-top: 1rem;
    font-style: italic;
    color: #666;
    font-family: 'Baskerville', sans-serif;
}

/* Itinerary Section */
.date {
    font-size: 18px;
    font-family: 'Baskerville', sans-serif;
    font-weight: 800;
    margin-bottom: 1rem;
}

.timeline-container {
    margin: 2rem auto;
    font-family: serif;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.time {
    font-size: 16px;
    color: #000;
    text-align: left;
    line-height: 1;
}

.event {
    position: relative;
    padding-left: 2rem;
    display: flex;
    align-items: center;
}

.event::after {
    content: '—';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #000;
    font-size: 16px;
    line-height: 1;
}

.event h4 {
    font-size: 16px;
    margin: 0;
    font-weight: normal;
    color: #000;
    line-height: 1;
}

@media (min-width: 768px) {
    .itinerary-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10rem;
    }

    .timeline-container {
        margin: 2rem 0;
    }

    .itinerary-section {
        text-align: left;
        min-height: unset;
    }

    .stay-section {
        min-height: unset;
    }

    .theme-section {
        min-height: unset;
    }
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .hotel-row,
    .hotel-row.reverse {
        display: flex;
        flex-direction: column-reverse !important;
    }
    
    .hotel-image {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .content-left {
        width: 100%;
        padding: 0;
        margin-top: 1.5rem;
        text-align: center;
    }
    
    .hotel-features {
        justify-content: center;
    }
    
    .hotel-info {
        align-items: center;
        padding-bottom: 30px;
    }
    
    .location {
        text-align: center;
    }
    
    .cta-container .btn-primary {
        margin: 0 auto;
    }
    
    .stay-section .description {
        text-align: center;
    }
}

/* Divider */
.divider {
    margin: 4rem 0 -2rem 0;
    border-bottom: 4px solid black;
    padding: 0rem 1rem;
}

/* Contact Section */
.contact-section {
    text-align: center;
    background-color: #FF4B3D;
    color: white;
    align-items: center;
    max-width: unset;
}

.contact-section .description {
    color: white;
    text-align: center;
    padding: 0rem 3rem;
    max-width: unset;
}

.contact-section .section-name {
    color: white;
    text-align: center;
}

.number {
    font-size: 18px;
    font-weight: 500;
    font-family: 'Baskerville', sans-serif;
    text-decoration: underline;
}

.name {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Baskerville', sans-serif;
}

/* Modal styles */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    overflow-y: auto; /* Enable vertical scrolling on the modal backdrop */
  }

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: white;
    width: 100%;
    max-width: 700px;
    padding: 1.5rem;
    position: relative;
    font-family: 'Baskerville', sans-serif;
    overflow-y: auto; /* Enable scrolling within the modal content */
    max-height: 90vh; /* Set a maximum height */
    margin: 2rem auto; /* Add some margin */
    border-radius: 8px; /* Optional: rounded corners */
  }

  /* Remove the min-height that's causing issues */
@media (max-width: 767px) {
    .modal-content {
      min-height: auto !important; /* Override the existing min-height: 100vh */
      margin: 1rem; /* Smaller margin on mobile */
    }
    
    /* Make sure the submit button is visible and has enough space */
    #rsvp-form button[type="submit"] {
      margin-bottom: 2rem;
    }
    
    /* Ensure the form has adequate bottom padding */
    #rsvp-form {
      padding-bottom: 1.5rem;
    }
  }

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Close button */
.close-button {
    position: absolute;
    top: 1.5rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
}

.close-icon {
    height: 1.5rem;
    width: 1.5rem;
}

/* Form elements */
.form-group {
    margin-bottom: 1rem;
}

.form-group:not(:first-child) {
    margin-top: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
}

.form-textarea {
    resize: vertical;
}

/* Radio and Checkbox styles */
.radio-group {
    display: flex;
    gap: 1rem;
}

.checkbox-group {
    margin-bottom: 0.5rem;
}

.checkbox-input {
    margin-right: 0.5rem;
}

/* Phone input group */
.phone-input-group {
    display: flex;
    gap: 0.5rem;
}

.country-select {
    width: 6rem;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
}

.phone-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
}

/* Alert styles */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
}

.error-alert {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #991b1b;
}

.success-alert {
    background-color: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #166534;
}

/* Submit button */
.submit-button {
    width: 100%;
    background-color: #ec4899;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background-color: #db2777;
}

/* Utility classes */
.hidden {
    display: none;
}

.sublabel {
    font-size: 0.75rem;
    color: #6b7280;
}

@media (min-width: 768px) {
    .contact-section {
        margin: unset;
    }
}

.font-daniel {
    font-family: 'Baskerville', sans-serif;
}

/* Event Pop-up Styles */
.event-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-in-out;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
}

.event-popup-overlay.hidden {
    display: none;
}

.event-popup {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
    margin: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.event-popup-content {
    padding: 3rem 2rem 2.5rem 2rem;
    text-align: center;
}

.event-header {
    font-size: 11px;
    color: #FF4B3D;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.9px;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.event-title {
    font-size: 42px;
    font-weight: 400;
    font-family: 'Baskerville', serif;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.event-title-italic {
    font-size: 42px;
    font-family: 'Baskerville', serif;
    font-style: italic;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.event-date {
    font-size: 16px;
    font-family: 'Baskerville', serif;
    color: #333;
    margin-bottom: 1.5rem;
}

.event-description {
    font-size: 15px;
    font-family: 'Baskerville', serif;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.event-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border: 1px solid #FF4B3D;
    border-radius: 100px;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    font-size: 11px;
    color: #FF4B3D;
    background-color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.event-cta:hover {
    background-color: #FF4B3D;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 75, 61, 0.3);
}

.event-close-button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-close-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.event-close-button:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.event-close-icon {
    height: 1.5rem;
    width: 1.5rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.event-close-button:hover .event-close-icon,
.event-close-button:active .event-close-icon {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Mobile adjustments for event popup */
@media (max-width: 768px) {
    .event-popup-overlay {
        padding: 20px 15px;
        align-items: center;
        justify-content: center;
        width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        min-height: -webkit-fill-available !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }

    .event-popup {
        width: calc(100% - 30px);
        max-width: 100%;
        max-height: 75vh;
        margin: 0;
        border-radius: 12px;
    }

    .event-popup-content {
        padding: 3.5rem 1.5rem 2rem 1.5rem;
    }

    .event-title {
        font-size: 26px;
        line-height: 1.2;
        margin-bottom: 0.25rem;
    }

    .event-title-italic {
        font-size: 26px;
        line-height: 1.2;
        margin-top: -0.25rem;
        margin-bottom: 1rem;
    }

    .event-date {
        font-size: 13px;
        margin-bottom: 1rem;
    }

    .event-description {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .event-cta {
        padding: 0.875rem 1.5rem;
        font-size: 11px;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
        width: calc(100% - 40px);
        max-width: 260px;
        margin: 0 auto;
        display: inline-flex;
    }

    .event-close-button {
        top: 0.75rem;
        right: 0.75rem;
    }

    .event-header {
        font-size: 10px;
        margin-bottom: 1rem;
        letter-spacing: 1.5px;
    }
}

/* iOS-specific fixes */
@supports (-webkit-touch-callout: none) {
    .event-popup-overlay {
        position: fixed;
        width: 100vw;
        height: 100vh;
        height: -webkit-fill-available;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    @media (max-width: 768px) {
        .event-popup-overlay {
            min-height: 100dvh;
        }
    }
}

/* Prevent body scroll when popup is open */
body.event-popup-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100vh !important;
    -webkit-overflow-scrolling: auto !important;
}

html {
    height: -webkit-fill-available;
}

body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
}