* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a5f7a;
    --secondary: #57c5b6;
    --accent: #f4a261;
    --sand: #f5f1e8;
    --dark: #2c3e50;
    --light: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

nav.is-scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.language-select {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    margin-right: 1rem;
    transition: all 0.3s;
}

.language-select:focus {
    outline: none;
    border-color: var(--secondary);
}

.nav-right {
    display: flex;
    align-items: center;
}

.cta-btn {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.cta-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.8), rgba(87, 197, 182, 0.6)),
                url('Murter Viknica slike/WhatsApp Image 2026-05-04 at 20.28.28 (5).jpeg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 5%;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #e76f51;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(244, 162, 97, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

/* About Section */
.about {
    padding: 6rem 5%;
    background: var(--sand);
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-image .stay-details-photo {
    height: 1000px;
    object-position: center top;
}

.history-photo-pair {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
}

.history-photo-pair img {
    height: 360px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.history-photo-stairs {
    object-position: center top;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.about-content p {
    margin-bottom: 1.5rem;
    color: #555;
}

.about-content .price {
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 600;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.features-list li::before {
    content: "✓";
    color: var(--secondary);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.feature-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.feature-title {
    font-weight: 600;
}

.feature-detail {
    color: #666;
    font-size: 0.92rem;
}

.good-to-know {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(44, 62, 80, 0.12);
}

.good-to-know h4 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.good-to-know-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.good-to-know-list li {
    position: relative;
    padding-left: 1.1rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.45;
}

.good-to-know-list li::before {
    content: "";
    position: absolute;
    top: 0.55rem;
    left: 0;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--secondary);
}

/* Property Details */
.property {
    padding: 6rem 5%;
    background: white;
}

/* Gallery */
.gallery {
    padding: 6rem 5%;
    background: var(--primary);
}

.gallery .section-header h2,
.gallery .section-header p {
    color: white;
}

.gallery-category {
    margin-top: 3rem;
}

.gallery-category h3 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    gap: 1rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background: #f3f3f3;
    transition: transform 0.3s;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-link {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.gallery-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    padding: 2rem;
}

.lightbox.open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s, transform 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%) scale(1.04);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

/* Location Section */
.location {
    padding: 6rem 5%;
    background: var(--sand);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.location-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.location-info p {
    margin-bottom: 1.5rem;
    color: #555;
}

.highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.highlight-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.highlight-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.media-gallery {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.gallery-viewer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.gallery-viewer > img,
.gallery-viewer > video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-watermark {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
}

.media-nav {
    position: absolute;
    top: 50%;
    z-index: 12;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.46);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s, transform 0.2s;
}

.media-nav:hover {
    background: rgba(0, 0, 0, 0.62);
    transform: translateY(-50%) scale(1.04);
}

.media-prev {
    left: 16px;
}

.media-next {
    right: 16px;
}

.gallery-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    z-index: 10;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    opacity: 0.5;
}

.gallery-dot.is-active {
    opacity: 1;
}

/* Booking Section */
.booking {
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    text-align: center;
    color: white;
}

.booking h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.booking p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.booking-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: stretch;
    text-align: left;
}

.calendar-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    color: var(--dark);
    height: 100%;
}

.calendar-card h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.calendar-card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 1;
}

.availability-calendar {
    width: 100%;
    border: 1px solid rgba(44, 62, 80, 0.12);
    border-radius: 12px;
    background: #fbfcfc;
    padding: 1rem;
}

.availability-toolbar {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.availability-toolbar h4 {
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    text-transform: capitalize;
}

.availability-nav {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: rgba(26, 95, 122, 0.1);
    color: var(--primary);
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    transition: background 0.2s, transform 0.2s;
}

.availability-nav:hover {
    background: rgba(26, 95, 122, 0.18);
    transform: translateY(-1px);
}

.availability-weekdays,
.availability-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
}

.availability-weekdays {
    margin-bottom: 0.35rem;
}

.availability-weekdays span {
    color: #7a8490;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
}

.calendar-day,
.calendar-day-placeholder {
    aspect-ratio: 1;
    min-height: 48px;
}

.calendar-day {
    position: relative;
    border: 1px solid rgba(44, 62, 80, 0.1);
    border-radius: 8px;
    background: white;
    color: var(--dark);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.calendar-day:hover:not(:disabled) {
    border-color: var(--secondary);
    box-shadow: 0 8px 20px rgba(26, 95, 122, 0.1);
    transform: translateY(-1px);
}

.calendar-day.is-today {
    border-color: var(--primary);
}

.calendar-day.is-booked,
.calendar-day.is-past {
    background: #e2e6ea;
    color: #8b949e;
    cursor: not-allowed;
}

.calendar-day.is-booked::after {
    content: "";
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    height: 3px;
    border-radius: 999px;
    background: #cf4d45;
}

.calendar-day.is-selected {
    background: var(--primary);
    color: white;
}

.calendar-day.is-in-range {
    background: rgba(87, 197, 182, 0.2);
    border-color: rgba(87, 197, 182, 0.45);
}

.availability-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    color: #555;
    font-size: 0.9rem;
}

.availability-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid rgba(44, 62, 80, 0.1);
}

.legend-swatch.is-available {
    background: white;
}

.legend-swatch.is-booked {
    background: #e2e6ea;
    border-bottom: 3px solid #cf4d45;
}

.booking-form {
    width: 100%;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    color: var(--dark);
    height: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.hidden-field {
    display: none;
}

.submit-btn {
    width: 100%;
    background: var(--accent);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: #e76f51;
}

.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.form-status {
    min-height: 1.5rem;
    margin-top: 1rem;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-status.is-error {
    color: #cf4d45;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.footer-col p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    display: block;
    margin-bottom: 0.5rem;
    transition: opacity 0.3s;
}

.footer-col a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .about-grid,
    .location-content {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .lightbox {
        padding: 1rem;
    }

    .lightbox-img {
        max-width: 86%;
        max-height: 82%;
        border-radius: 14px;
    }

    .lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 2rem;
    }

    .lightbox-prev {
        left: 0.75rem;
    }

    .lightbox-next {
        right: 0.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .booking-content {
        grid-template-columns: 1fr;
    }

    .calendar-card,
    .booking-form {
        padding: 2rem;
    }

    .availability-calendar {
        padding: 0.75rem;
    }

    .availability-toolbar {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
    }

    .availability-nav {
        width: 38px;
        height: 38px;
    }

    .calendar-day,
    .calendar-day-placeholder {
        min-height: 40px;
    }

    .good-to-know-list {
        grid-template-columns: 1fr;
    }

    .about-image .stay-details-photo {
        height: 640px;
    }
}
