/* ========================================
   Sailing Bizzosa - Main Styles
   ======================================== */

/* Local Font Faces */
@font-face {
    font-family: 'Elegante';
    src: url('../fonts/elegante/Elegante.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Futura';
    src: url('../fonts/futura_light/futuralight.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Jost';
    src: url('../fonts/jost/jost.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
/* CSS Variables */
:root {
    --primary-color: #1e3a5f;
    --secondary-color: #4a90e2;
    --accent-color: #ff6b35;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --error-color: #dc3545;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
    
    /* Font families */
    --font-heading: 'Elegante', 'Pinyon Script', cursive;
    --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    /*transition: all 0.5s ease;
    will-change: background-color, backdrop-filter;*/
}
/*
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}*/

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand a {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-brand a:hover .nav-logo {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    font-family: 'Calibri', sans-serif;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: var(--secondary-color);
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.nav-extras {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.lang-btn.active {
    color: var(--primary-color);
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Prevent collapse - use poster image as background fallback */
    background-color: #1e3a5f;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 600px;
    z-index: 0;
    /* Simple dark background - poster will show immediately */
    background: #1e3a5f;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    /* Ensure video doesn't cause layout shift */
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(30, 58, 95, 0.3), rgba(30, 58, 95, 0.2));
    z-index: 3;
    pointer-events: none;
}

/* Ensure poster is visible immediately */
.video-container video[poster] {
    background-size: cover;
    background-position: center;
}

/* Video states - No loading animation needed */

.hero-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 10;
    padding: 2rem;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 7rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
    line-height: 1;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    border-radius: 50px;
    font-family: 'Calibri', sans-serif;
    font-weight: bold;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Section Styles */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-family: 'Calibri Light', 'Calibri', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: var(--bg-light);
    text-align: center;
}

.about-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-family: 'Calibri Light', 'Calibri', sans-serif;
    font-weight: 700;
}

.about-text {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: var(--text-light);
}

/* Personal Account */
.personal-account {
    margin-top: 3rem;
}

.personal-account p {
    font-family: var(--font-body);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #444;
    text-align: justify;
    position: relative;
}

.about-signature {
    margin-top: 2rem;
    font-style: normal;
    color: var(--primary-color);
    font-weight: bold;
    text-align: right;
    font-size: 1.2rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Booking Section - Split Layout */
.booking-header-section {
    padding: 4rem 0;
    background: var(--bg-light);
    text-align: center;
}

.booking-header-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-family: 'Calibri Light', 'Calibri', sans-serif;
    font-weight: 700;
}

.booking-header-section .boat-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.booking-header-section .boat-description h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.booking-header-section .container p {
    color: var(--text-light);
    
}

.booking-section-hero {
    font-family: Calibri, 'Gill Sans', 'Gill Sans MT', 'Trebuchet MS', sans-serif;
    display: flex;
    align-items: center;
    min-height: 100vh;
    background-image: url('../images/booking/booking.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 3rem;
    gap: 0;
}

.booking-form-container {
    font-family: Calibri, 'Gill Sans', 'Gill Sans MT', 'Trebuchet MS', sans-serif;
    padding: 2.5rem 3rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    flex: 0 0 auto;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.booking-form-container h2 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
    font-family: 'Calibri Light', 'Calibri', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    
    text-align: left;
}

.booking-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.booking-destinations-info {
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    line-height: 1.6;
}

.booking-destinations-info p {
    margin: 0;
}

.booking-destinations-info .accent-text {
    color: var(--secondary-color);
}

.booking-image-side {
    display: none;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Destination Select */
.destination-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    background: white;
    cursor: pointer;
    appearance: auto;
    transition: border-color 0.3s ease;
}

.destination-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

/* Guests Select */
.guests-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: Calibri, 'Gill Sans', 'Gill Sans MT', 'Trebuchet MS', sans-serif;
    background: white;
    cursor: pointer;
    appearance: auto;
    transition: border-color 0.3s ease;
}

.guests-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

/* Calculate Button */
.btn-calculate {
    padding: 0.75rem 2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    align-self: center;
    margin-top: 0.5rem;
}

.btn-calculate:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

/* Info Banner Section */
.info-banner-section {
    padding: 2rem 0;
    background: var(--bg-light);
}

.info-banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 0 auto;
}

.info-banner-item {
    text-align: center;
    padding: 1rem;
    font-family: Calibri, 'Gill Sans', 'Gill Sans MT', 'Trebuchet MS', sans-serif;
}

.info-banner-item p {
    margin: 0;
    color: #555;
    font-size: 1rem;
    line-height: 1.4;
    font-family: Calibri, 'Gill Sans', 'Gill Sans MT', 'Trebuchet MS', sans-serif;
}

.info-banner-item strong {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Booking Details Section */
.booking-details-section {
    font-family: Calibri, 'Gill Sans', 'Gill Sans MT', 'Trebuchet MS', sans-serif;
    padding: 4rem 0;
    background: var(--bg-light);
}

.booking-details-section * {
    font-family: inherit;
}

.boat-description {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.boat-description p {
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
}

.configurator {
    max-width: 900px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 0;
}

/* Ensure all booking form elements use Calibri */
.booking-form-container input,
.booking-form-container select,
.booking-form-container textarea,
.booking-form-container button,
.booking-section-hero input,
.booking-section-hero select,
.booking-section-hero textarea,
.booking-section-hero button {
    font-family: Calibri, 'Gill Sans', 'Gill Sans MT', 'Trebuchet MS', sans-serif;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.container-section {
    max-width: 800px;
}
/* Package Tabs */
.package-tabs {
    display: flex;
    gap: 0;
}

.package-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
}

.package-tab:first-child {
    border-radius: 10px 0 0 10px;
    border-right: 1px solid #ddd;
}

.package-tab:last-child {
    border-radius: 0 10px 10px 0;
    border-left: 1px solid #ddd;
}

.package-tab strong {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.package-tab span {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.15rem;
    margin-right: auto;
}

.package-desc-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.package-desc-wrapper em {
    color: var(--secondary-color);
    margin-right: auto;
    margin-top: 0.15rem;
}

.package-tab.selected {
    border-color: var(--secondary-color);
    background: white;
}

.package-tab.selected strong {
    color: var(--secondary-color);
}

.package-tab:hover:not(.selected) {
    border-color: #ccc;
    background: #fafafa;
}

/* Date Inputs and Text Inputs */
.date-input,
#customerName {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: Calibri, 'Gill Sans', 'Gill Sans MT', 'Trebuchet MS', sans-serif;
    transition: border-color 0.3s ease;
}

.date-input:focus,
#customerName:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

/* Destinations Grid */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.destination-option {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.destination-option:hover {
    border-color: var(--secondary-color);
}

.destination-option.selected {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.destination-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Guest Counter */
.guest-counter {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    max-width: 160px;
}

.counter-btn {
    width: 32px;
    height: 32px;
    border: 2px solid var(--primary-color);
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-btn:hover {
    background: var(--primary-color);
    color: white;
}


/* Extras List */
.extras-list {
    display: grid;
    gap: 0.75rem;
}

.extra-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: var(--transition);
}

.extra-item:hover {
    background: var(--bg-light);
}

.extra-item input[type="checkbox"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
}

.extra-item label {
    flex: 1;
    cursor: pointer;
    margin-bottom: 0;
}

.extra-price {
    color: var(--text-light);
    font-size: 0.9rem;
}

.special-request-textarea {
    width: 50%;
    margin-top: 1rem;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color 0.3s;
}

.special-request-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Price Summary */
.price-summary {
    font-family: Calibri, 'Gill Sans', 'Gill Sans MT', 'Trebuchet MS', sans-serif;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.price-details {
    margin-top: 1rem;
}

.price-line {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.price-line.total {
    border-bottom: none;
    border-top: 2px solid var(--primary-color);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Submit Buttons */
.submit-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-email, .btn-whatsapp {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-email {
    background: var(--secondary-color);
    color: white;
}

.btn-email:hover {
    background: #3a7bc8;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20b857;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.modal-content .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-content h3 {
    margin-bottom: 1.5rem;
}

.modal-content input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.modal-content button {
    width: 100%;
    padding: 0.75rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

/* Gallery Section */
.gallery-section {
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    grid-auto-flow: dense;
}

/* Make the first image span 2 columns and 2 rows on larger screens */
@media (min-width: 768px) {
    .gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .gallery-item:first-child img {
        height: 100%;
        min-height: 400px;
    }
}

/* Alternative: Use masonry-style layout */
@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: minmax(200px, auto);
    }
    
    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .gallery-item:nth-child(4) {
        grid-row: span 2;
    }
    
    .gallery-item:nth-child(7) {
        grid-column: span 2;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Ensure proper aspect ratio for gallery items */
.gallery-item {
    aspect-ratio: 4/3;
}

/* Override aspect ratio for special items */
@media (min-width: 768px) {
    .gallery-item:first-child {
        aspect-ratio: auto;
    }
}

@media (min-width: 1024px) {
    .gallery-item:nth-child(4) {
        aspect-ratio: auto;
    }
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 10001;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Friends Section */
.friends-section {
    padding: 5rem 0;
    background: white;
}

.friends-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-family: 'Calibri Light', 'Calibri', sans-serif;
    font-weight: 700;
}

.friends-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.5rem;
    grid-auto-flow: dense;
}

.friends-gallery .media-item {
    border-radius: 0;
    cursor: default;
}

.media-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #f8f8f8;
    aspect-ratio: 1;
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-item.video-item {
    background: #000;
}

.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Alternate layout for variety */
@media (min-width: 768px) {
    .media-item:nth-child(7n+1) {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .media-item:nth-child(11n+5) {
        grid-row: span 2;
    }
    
    .media-item:nth-child(13n+9) {
        grid-column: span 2;
    }
}

/* Video autoplay styling */
.media-item video {
    pointer-events: none; /* Prevent interaction since it's autoplay */
}

.media-item.video-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 15px solid rgba(255, 255, 255, 0.8);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Play indicator removed - no hover effects */

/* Contacts Section */
.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Loading States - Only for specific components, not video */
.spinner-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error Messages */
.error-message {
    background: #ffe6e6;
    color: var(--error-color);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--error-color);
}

/* Success Messages */
.success-message {
    background: #e6ffe6;
    color: var(--success-color);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--success-color);
}

/* Contacts Section */
.contacts-section {
    font-family: Calibri, 'Gill Sans', 'Gill Sans MT', 'Trebuchet MS', sans-serif;
    padding: 4rem 0;
    background: #f8f9fa;
}

.contacts-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #1e3a5f;
    font-family: 'Calibri Light', 'Calibri', sans-serif;
    font-weight: 700;
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: start;
}

.contact-left {
    display: flex;
    flex-direction: column;
}

.contact-right {
    display: flex;
    flex-direction: column;
}

.contact-right .personal-account {
    margin-top: 2rem;
}

.contact-info h3 {
    font-family: Calibri, 'Gill Sans', 'Gill Sans MT', 'Trebuchet MS', sans-serif;
    color: #1e3a5f;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item strong {
    display: inline-block;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item a {
    color: #4a90e2;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #1e3a5f;
    text-decoration: underline;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a90e2 !important;
    font-size: 1.2rem;
    font-weight: 500;
}

.instagram-link:hover {
    color: #1e3a5f !important;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a90e2 !important;
    font-size: 1.2rem;
    font-weight: 500;
}

.contact-link:hover {
    color: #1e3a5f !important;
}

.instagram-icon {
    flex-shrink: 0;
}

.contact-item p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.btn-maps {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white !important;
    border-radius: 5px;
    font-size: 0.9rem !important;
    transition: background 0.3s;
}

.btn-maps:hover {
    background: var(--secondary-color);
    text-decoration: none !important;
}

.contact-image {
    overflow: hidden;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 300px;
    background: #ddd;
}

/* Google Maps in Contacts */
.contact-map-container {
    margin-top: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-map {
    width: 100%;
    height: 400px;
    border: 0;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn.loading::after {
    border-top-color: #fff;
}

/* Blocked Dates Calendar */
.blocked-dates-info {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fff9e6;
    border-left: 3px solid #ffc107;
    border-radius: 3px;
}

.blocked-dates-calendar {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 1rem;
    font-size: 0.9rem;
    font-family: 'Calibri', Arial, sans-serif;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.calendar-title {
    font-weight: bold;
    color: var(--primary-color);
}

.calendar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.calendar-close:hover {
    background: #f0f0f0;
}

.calendar-info {
    text-align: center;
    padding: 0.5rem;
    background: #e3f2fd;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.calendar-nav-prev,
.calendar-nav-next {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.calendar-nav-prev:hover:not(:disabled),
.calendar-nav-next:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.calendar-nav-prev:disabled,
.calendar-nav-next:disabled {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
}

.calendar-nav-current {
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    flex: 1;
}

.calendar-months {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.2rem;
}

.calendar-month-header {
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day-header {
    text-align: center;
    font-weight: bold;
    padding: 0.25rem;
    background: #f8f9fa;
    font-size: 0.8rem;
}

.calendar-day {
    text-align: center;
    padding: 0.5rem;
    cursor: pointer;
    background: white;
    transition: all 0.2s;
    border-radius: 4px;
    user-select: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    position: relative;
}

.calendar-day:hover:not(.blocked):not(.past) {
    background: #e3f2fd;
    transform: scale(1.1);
}

.calendar-day[data-selectable="true"] {
    cursor: pointer;
}

.calendar-day[data-selectable="false"] {
    cursor: not-allowed;
}

.calendar-day.blocked {
    background: #ffebee;
    color: #c62828;
    cursor: not-allowed;
    position: relative;
}

.calendar-day.blocked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 1px;
    height: 80%;
    background: #c62828;
}

.calendar-day.past {
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.out-of-range {
    color: #999;
    background: #f5f5f5;
    cursor: not-allowed;
}

.calendar-day.selected {
    background: var(--primary-color);
    color: white;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day.no-price {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.calendar-day .day-number {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}

.calendar-day .day-price {
    font-size: 0.6rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 2px;
    display: block;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.legend-box {
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
}

.legend-box.blocked {
    background: #ffebee;
}

.legend-box.available {
    background: white;
}

.legend-box.out-of-range {
    background: #f5f5f5;
}

/* Mobile styles for calendar */
@media (max-width: 768px) {
    .blocked-dates-calendar {
        max-width: 90vw;
        max-height: 80vh;
        overflow-y: auto;
        padding: 0.75rem;
    }
    
    .calendar-months {
        grid-template-columns: 1fr;
    }
    
    .calendar-day {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .calendar-day-header {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .calendar-legend {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .legend-item {
        justify-content: center;
    }
}

/* Lazy Loading Video Styles */
.video-loading {
    position: relative;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.video-placeholder {
    text-align: center;
    color: white;
}

.video-placeholder .play-icon {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.video-placeholder .loading-text {
    display: block;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Image lazy loading styles */
.gallery-item img.lazy-loading {
    filter: blur(2px);
    transition: filter 0.3s ease;
}

.gallery-item img.loading {
    opacity: 0.7;
}

.gallery-item img.loaded {
    filter: none;
    opacity: 1;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.gallery-item img.error {
    opacity: 0.5;
    filter: grayscale(100%);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
}

.video-play-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Footer */
.footer {
    background: #1e3a5f;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Contacts */
@media (max-width: 768px) {
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-image img {
        min-height: 200px;
    }
}