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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 70px;
}

/* Header Styles */
.header {
    position: relative;
    height: 70vh;
    background-image: url('/assets/FotoSala.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    color: white;
    text-align: left;
    max-width: 1024px;
    margin: 0 auto;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.header-content {
    position: relative;
    z-index: 1;
    padding-left: 2rem;
}

.header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin: 0 auto;
}

/* Section Styles */
.section-title {
    text-align: center;
    color: #007bff;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.section-title a {
    color: #0076FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-title a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 10px 20px;
}

.section-content {
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.section-content h3 {
    color: #007bff;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.section-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Remove bullets from icon lists */
.section-content ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.section-content ul li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-content ul li i {
    color: #007bff;
    min-width: 20px;
}

/* Feature Grid Styles */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.feature-item i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 10px;
}

/* Button Styles */
.btn, .back-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #0000FF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: 20px;
    transition: background-color 0.3s;
}

.btn:hover, .back-button:hover {
    background-color: #0000FF;
}

/* Image Gallery Styles */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Calendar Specific Styles */
.calendar-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    max-width: 800px;
    margin: 20px auto;
}

.month-container {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.month-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #007bff;
}

.day-name {
    text-align: center;
    font-size: 1em;
    color: #555;
    padding-bottom: 5px;
    font-weight: bold;
}   

.day {
    text-align: center;
    padding: 5px;
    border: 1px solid #eee;
    font-size: 1em;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: top;
    align-items: center;
    background-color: white;
    border-radius: 5px;
}

.day.empty {
    background-color: #f8f9fa;
    min-height: 40px;
}

.data-display {
    width: 80%;
    margin-top: 8px;
    text-align: center;
    font-size: 0.8em;
    color: #2e7d32;
    font-weight: bold;
    overflow-wrap: break-word;
}

.day.reserved {
    background-color: #ffcccc;
    color: #b30000;
}

.data-display.reserved {
    color: #b30000;
    font-weight: bold;
    text-shadow: 0 0 2px #fff0f0;
}

.day.free {
    background-color: #d4edda;
    color: #155724;
}

.data-display.free {
    color: #155724;
    font-weight: bold;
    text-shadow: 0 0 2px #f0fff0;
}

.day.past {
    background-color: #f0f0f0;
    color: #b0b0b0;
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Map Styles */
.map-container {
    margin: 20px 0;
}

.map-container iframe {
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.map-info {
    margin-top: 20px;
}

.map-info p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Section-specific Styles */
#apartment {
    background-color: rgba(0, 123, 255, 0.08);
}

#calendar {
    background-color: rgba(0, 123, 255, 0.08);
}

#prices {
    background-color:  #ffffff;
}

#contact {
    background-color: #ffffff;
}

#sightseeing {
    background-color: rgba(0, 123, 255, 0.08);
}

/* Apartment Section */
.apartment-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.apartment-feature {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Sightseeing Section */
.sightseeing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.sightseeing-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sightseeing-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Responsive Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Pricing Section Styles */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.pricing-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.pricing-item:hover {
    transform: translateY(-5px);
}

.pricing-item h3 {
    color: #007bff;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.pricing-item .price {
    font-size: 2.5rem;
    color: #2e7d32;
    font-weight: bold;
    margin: 15px 0;
}

.pricing-item .period {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.pricing-item .season-dates {
    color: #888;
    font-style: italic;
    margin-bottom: 15px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-notes {
    margin-top: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.pricing-notes h3 {
    color: #007bff;
    margin-bottom: 15px;
}

.pricing-notes ul {
    list-style: disc;
    padding-left: 20px;
    display: block;
    flex-wrap: unset;
    gap: unset;
}

.pricing-notes li {
    margin-bottom: 10px;
    display: list-item;
    align-items: unset;
    gap: unset;
}

/* Pricing Table Styles */
.pricing-table {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden; /* This is important for the border-radius to work on tables */
}

.pricing-table th, .pricing-table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: center;
}

.pricing-table th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

/* Weekly status styles */
.status-week {
    padding: 12px !important;
    display: flex;
    gap: 2px;
    min-width: 200px;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.day-cell {
    flex: 1;
    padding: 6px 2px;
    font-size: 1.0em;
    border-radius: 4px;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
}

.weekday-label {
    font-size: 1em;
    color: #333;
    line-height: 1;
}

.weekday-labels {
    font-size: 0.9em;
    font-weight: normal;
    margin-top: 5px;
    letter-spacing: 2px;
}

.pricing-table td.reserved {
    background-color: #ffcccc;
    color: #b30000;
    font-weight: bold;
}

.pricing-table td.free {
    background-color: #d4edda;
    color: #155724;
    font-weight: bold;
}

.pricing-table td.past {
    background-color: #f0f0f0;
    color: #b0b0b0;
}

.pricing-table td.no-price {
    color: #999;
    font-style: italic;
    font-weight: normal;
}

.pricing-table td.peak-season {
    background-color: #e3f2fd;
    border-left: 3px solid #ddd;
}

.pricing-table td.reserved:hover {
    background-color: #ffb3b3;
    cursor: not-allowed;
}

.pricing-table td.free:hover {
    background-color: #c3e6cb;
    cursor: pointer;
}

/* Day cell specific styles */
.day-cell.reserved {
    background-color: #ffcccc;
    color: #b30000;
}

.day-cell.free {
    background-color: #d4edda;
    color: #155724;
}

.day-cell.past {
    background-color: #f0f0f0;
    color: #b0b0b0;
}

/* Navigation Styles */
.main-nav {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    margin-right: 0.5rem;
    color: #007bff;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }
    .header p {
        font-size: 1.2rem;
    }
    section {
        padding: 40px 20px;
    }
    .nav-container {
        flex-direction: column;
        padding: 0.5rem;
    }
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
    }
    body {
        padding-top: 120px;
    }
}

/* PhotoSwipe Gallery Styles */
.pswp__custom_gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.pswp__custom_gallery__item_1 {
    grid-column: span 2;
    grid-row: span 2;
}

.pswp__custom_gallery__item_2,
.pswp__custom_gallery__item_3 {
    grid-column: span 1;
    grid-row: span 1;
}

.pswp__custom_gallery__item_4 {
    grid-column: span 1;
    grid-row: span 1;
    position: relative;
}

.pswp__custom__gallery__img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.pswp__custom__gallery__img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.pswp__custom__gallery__img:hover::before {
    opacity: 1;
}

.pswp__custom_gallery__item_1 .pswp__custom__gallery__img {
    height: 410px;
}

.pswp__custom_gallery__item_2 .pswp__custom__gallery__img,
.pswp__custom_gallery__item_3 .pswp__custom__gallery__img {
    height: 200px;
}

.pswp__custom_gallery__item_4 .pswp__custom__gallery__img {
    height: 200px;
}

.pswp__custom__gallery__img:hover {
    transform: scale(1.05);
}

.pswp__custom_gallery__count {
    position: relative;
}

.pswp__custom_gallery__count span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.2rem;
}

.pswp__custom_gallery__items__hidded {
    display: none;
}

/* Show hidden images for PhotoSwipe functionality */
.pswp__custom_gallery__items__hidded .pswp__custom__gallery__img {
    display: none;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .pswp__custom_gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pswp__custom_gallery__item_1 {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .pswp__custom_gallery__item_1 .pswp__custom__gallery__img {
        height: 200px;
    }
}

/* Custom Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.close-lightbox:hover {
    color: #ccc;
}

.lightbox-nav {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
}

.lightbox-nav button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

.lightbox-nav button:hover {
    background: rgba(255, 255, 255, 0.3);
}

#image-counter {
    color: white;
    font-size: 16px;
    min-width: 60px;
    text-align: center;
}

/* Section Header Styles */
.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.section-header .back-button {
    margin: 0;
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.section-header .section-title {
    margin: 0;
    flex-grow: 1;
}


/* Surroundings Section */
#surroundings .section-content {
    margin-top: 2em;
}

.surroundings-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: space-between;
}

.surroundings-column {
    flex: 1 1 250px;
    min-width: 220px;
    max-width: 350px;
}

.surroundings-column h4 {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.surroundings-column h4 i {
    margin-right: 0.5em;
    color: #2a7ae2; /* Accent color for icons */
    font-size: 1.2em;
}

.surroundings-column ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0 0;
    gap: 0;
}

.surroundings-column ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    font-size: 1em;
    margin: 0;
    width: 100%;
}

.surroundings-column ul li .location-name {
    flex: 1;
    margin-right: 10px;
}

.surroundings-column ul li .distance {
    color: #666;
    font-size: 0.95em;
    white-space: nowrap;
    text-align: right;
    min-width: 60px;
    flex-shrink: 0;
}

/* Responsive: stack columns on small screens */
@media (max-width: 900px) {
    .surroundings-grid {
        flex-direction: column;
        gap: 1.5em;
    }
    .surroundings-column {
        max-width: 100%;
    }
}

.address-info address {
    font-size: 1.1rem;
    font-style: italic;
}

/* Color Legend Styles */
.color-legend {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.color-legend h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1rem;
}

.legend-items {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.legend-color.free {
    background-color: #d4edda;
}

.legend-color.reserved {
    background-color: #ffcccc;
}

.legend-color.past {
    background-color: #f0f0f0;
}

.legend-color.peak-season {
    background-color: #e3f2fd;
}

/* Responsive legend */
@media (max-width: 600px) {
    .legend-items {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}