/* Base styles and reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header and navigation */
.site-header {
    background-color: #2c3e50;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    color: #ecf0f1;
    font-size: 1.8rem;
    font-weight: bold;
}

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

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background-color: #3498db;
    color: white;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../Pictures/Waterfront.webp') center/cover no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

/* Section styling */
.intro-section {
    padding: 3rem 0;
    background-color: white;
}

.intro-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.features {
    padding: 3rem 0;
    background-color: #ecf0f1;
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.feature-card h3 {
    color: #3498db;
    margin-bottom: 1rem;
}

/* Gallery styles */
.gallery-main {
    padding: 3rem 0;
}

.gallery-description {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

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

.gallery-item {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

/* Rooms styles */
.rooms-main {
    padding: 3rem 0;
}

.rooms-description {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.room-section {
    margin-bottom: 3rem;
}

.room-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.room-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.room-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    flex: 1;
    min-width: 300px;
    max-width: 620px;
}

.room-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.room-image:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

.room-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.room-description {
    flex: 1;
}

.room-description {
    flex: 2;
    min-width: 300px;
}

/* Rates styles */
.rates-main {
    padding: 3rem 0;
}

.rate-info {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.daily-rate {
    font-size: 2rem;
    color: #e74c3c;
    font-weight: bold;
    margin: 1rem 0;
}

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

/* Calendar styling */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #3498db;
}

.calendar-nav {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calendar-nav:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

#current-month-year {
    margin: 0;
    font-size: 1.5rem;
    color: #2c3e50;
    flex-grow: 1;
    text-align: center;
}

.year-select {
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: white;
    font-size: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.3rem;
    margin-top: 1rem;
}

.calendar-row {
    display: contents;
}

.calendar-day-header {
    text-align: center;
    font-weight: bold;
    padding: 0.8rem 0;
    background-color: #3498db;
    color: white;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.calendar-day {
    text-align: center;
    padding: 0.8rem 0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.calendar-day:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.calendar-day.empty {
    background-color: transparent;
    border: none;
    cursor: default;
    box-shadow: none;
}

.calendar-day.unavailable {
    background-color: #e74c3c;
    color: white;
    cursor: not-allowed;
    position: relative;
    opacity: 0.8;
}

.calendar-day.unavailable:hover {
    background-color: #c0392b;
    transform: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.calendar-day.unavailable::after {
    content: "×";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Unavailable dates section */
.unavailable-dates-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.unavailable-dates-section h3 {
    margin-top: 0;
    color: #2c3e50;
}

.date-input-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

#unavailable-date {
    flex: 1;
    min-width: 150px;
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 1rem;
}

#add-unavailable-date {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

#add-unavailable-date:hover {
    background-color: #219653;
}

.unavailable-date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #e74c3c;
    color: white;
    border-radius: 5px;
}

.remove-unavailable-btn {
    background-color: white;
    color: #e74c3c;
    border: none;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.remove-unavailable-btn:hover {
    background-color: #f8f9fa;
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

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

.lightbox.hidden {
    display: none;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #ccc;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.prev:hover, .next:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

#caption {
    position: absolute;
    bottom: 20px;
    color: white;
    font-size: 18px;
    text-align: center;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .room-content {
        flex-direction: column;
    }

    .room-images {
        max-width: 100%;
        min-width: 100%;
    }

    .room-image {
        width: calc(50% - 0.5rem);
        max-width: 200px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Property info section */
.property-info {
    padding: 3rem 0;
}

.property-info h2 {
    text-align: left;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.property-info p,
.property-info ul {
    margin-bottom: 2rem;
}

.property-info h2 + * {
    margin-top: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.info-card h3 {
    color: #3498db;
    margin-bottom: 1rem;
}