* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: #222222;
}
/* HEADER */
header {
    background: linear-gradient(
      rgba(47, 79, 62, 0.85),
      rgba(47, 79, 62, 0.85)
    ),
    url("images/mainhouse.jpg");

    background-size: cover;
    background-position: center; 
    backdrop-filter: blur(20px);

    position: sticky; /* Might Change to fixed if needed */
    top: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: white;
}
.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo img {
    width: 80px;
}
.logo h1 {
    list-style: none;
    font-weight: 600;
    color: white;
}
.property-header {
    padding: 40px;
    max-width: 1000px;
    margin: auto;
}
.property-header h1 {
    font-size: 36px;
}
/* NAVBAR */
.navbar {
    padding: 0px 40px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}
.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}
.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #ff5a5f;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}
.nav-links a:hover {
    color: #ff5a5f;
}
.nav-links a:hover::after {
    width: 100%;
}
.external-links a {
    display: inline-block;
    margin: 10px;
    padding: 14px 28px;
    font-size: 16px;
    background: #8b5e3c;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s ease, background 0.3s ease;
}
.external-links a:hover {
    background: #6e472d;
    transform: translateY(-2px);
}
.external-links ul {
    list-style: none;
    display: flex;
    gap: 20px;
}
/* HERO SECTION */
.hero {
    height: 70vh;
    background-image: url("images/banner.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}
.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}
.hero-text p {
    font-size: 20px;
    font-weight: 500;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}
/* HIGHLIGHTS */
.highlights {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 25px 15px;
}
.highlight {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}
/* CALL TO ACTION */
.cta {
    background: #333;
    color: white;
    text-align: center;
    padding: 40px 20px;
}
.cta a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}
.cta-btn {
    margin-top: 20px;
    padding: 14px 28px;
    background: #8b5e3c;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s ease, background 0.3s ease;
}
.cta-btn:hover {
    background: #6e472d;
    transform: translateY(-2px);
}
/*  PROPERTY PAGE  */
.property-gallery {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}
.main-image {
    width: 100%;
    border-radius: 8px;
}
.property-overview {
    max-width: 1000px;
    margin: auto;
    padding: 40px;
}
.property-overview ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin-top: 20px;
}
.property-description {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.7;
    text-align: center;
}
.amenities {
    max-width: 100%;
    margin: auto;
    padding: 40px;
    background: #f8f8f8;
    text-align: center;
}
.amenities h2 {
    margin-bottom: 20px;
}
.amenities ul {
    list-style: none;
    columns: 2;
    max-width: 600px;
    margin: auto;
}
.amenities li {
    padding: 10px;
}
.house-rules {
    max-width: 100%;
    margin: auto;
    padding: 40px;
    text-align: center;
}
.house-rules ul {
    list-style: none;
}
.house-rules-content {
    display: flex;
    align-items: center;
    gap: 40px;
}
.house-rules-text {
    flex: 1;
}
.house-rules-image {
    flex: 1;
}
.house-rules-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
/* PHOTO GALLERY PAGE */
.gallery-page {
    margin: auto;
    max-width: 1100px;
    padding: 40px;
    text-align: center;
}
.gallery {
    padding: 60px 40px;
    text-align: center;
}
.gallery h2 {
    margin-bottom: 30px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.gallery-grid img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.gallery-grid img:hover {
    transform: scale(1.05);
}
.nav-btn {
    position: absolute;
    top: 50%;
    font-size: 45px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transform: translateY(-50%);
    padding: 10px;
}
#prevBtn {
    left: 40px;
}
#nextBtn {
    right: 40px;
}
.nav-btn:hover {
    color: #C9A24A;
}
.lightbox {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}
.lightbox-img {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
}
/* BOOKING PAGE */
.booking-page {
    max-width: 800px;
    margin: auto;
    padding: 40px;
}
.book-section {
    margin-bottom: 40px;
}
input, select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.bookingBtn {
    background: #ff5a5f;
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
}
.booking-rule {
    font-size: 14px;
    color: #555;
}
.booking-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.calendar-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 350px;
    margin: 2rem;
}
.calendar-header {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    margin-bottom: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #eee;
}
#monthYear {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
    letter-spacing: 0.5px;
    text-align: center;
}
.calendar-header button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f5f5f5;
    font-size: 16px;
    cursor: pointer;
    color: #333;
    transition: all 0.2s ease;
}
.calender-header button:hover {
    background: #e8e8e8;
    transform: scale(1.05);
}
.calendar-header button:active {
    transform: scale(0.95);
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    border: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 100%;
    margin-top: 10px;
}
.day-name {
    font-weight: bold;
    text-align: center;
}
.day {
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    font-weight: 500;
}
.day.past {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed; 
}
.day.booked {
    background: #f8d7da; 
    color: #842029;
    text-decoration: line-through;
    cursor: not-allowed; 
}
.day.today{
    border: 2px solid #2b2d42;
}
.day.available:hover {
    background: #0d6efd;
    color: white;
    transform: scale(1.05);
}
.day.selected {
    background: #0b5ed7; 
    color: white; 
}
.day.in-range { 
    background: #cfe2ff;
    color: #084298; 
}
.booking-summary {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 350px;
}
#bookingForm input, #bookingForm select, #bookingForm button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
}
#bookingForm button {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}
#bookingForm button:hover {
    background-color: #0056b3;
}
.available {
    background: #e8f5e9;
    color: #2e7d32;
}
.booked {
    background: #f8d7da;
    color: #721c24;
}
.past {
    background: #eee;
    color: #999;
}
.legend {
    margin-bottom: 10px;
    font-size: 14px;
}
.legend .box {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border-radius: 3px;
}
/* THINGS TO DO PAGE */
.things-page {
    max-width: 1100px;
    margin: auto;
    padding: 40px;
    text-align: center;
}
.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.activity-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.activity-card:hover {
    transform: translateY(-5px);
}
.activity-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.activity-card h3 {
    margin: 15px;
}
.activity-card p {
    margin: 0 15px 20px 15px;
}
/* LOCATION */
.location-page {
    max-width: 900px;
    margin: auto;
    padding: 40px;
    text-align: center;
}
.map-section {
    margin-top: 30px;
}
.map-section iframe {
    border-radius: 10px;
}
.nearby,
.address {
    margin-top: 40px;
}
.nearby ul {
    list-style: none;
    padding: 0;
}
.nearby li {
    padding: 8px;
}
/* CONTACT PAGE */
.contact-page {
    max-width: 700px;
    margin: auto;
    padding: 40px;
    text-align: center;
}
.contact-info {
    margin-top: 30px;
}
.contact-form {
    margin-top: 40px;
    text-align: left;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.contact-form button {
    background: #ff5a5f;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
}
.contact-form button:hover {
    background: #e0484d;
}
/* OWNER DASHBOARD */
.stats {
    display: flex;
    justify-content: space-around;
    margin: 2rem;
}
.stat-card {
    background: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    width: 30%;
}
#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}
.booking-table {
    margin: 2rem;
}
.booking-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.booking-table th, .booking-table td {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
    text-align: left;
}
.booking-table th {
    background: #2b2d42;
    color: white;
}
.booking-table tr:hover {
    background: #f1f1f1;
}
.blocked {
    background: #ff4d4d;
    color: white;
    cursor: pointer;
}

.day:hover {
    opacity: 0.8;
}
/* FOOTER */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px;
}
/* RESPONSIVE LAYOUT */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .highlights {
        flex-direction: column;
        align-items: center;
    }
    .booking-bar form {
        flex-direction: column;
    }
    .activities-grid {
        grid-template-columns: 1fr;
    }
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 3px;
    }
    .day {
        padding: 8px;
        font-size: 14px;
    }
}
@media (max-width: 900px) {
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .navbar {
        height: auto;
        padding: 20px;
    }
    .house-rules-content {
        flex-direction: column;
    }
}
@media (max-width: 700px) {
    .booking-container {
        flex-direction: column;
        align-items: center;
    }
    .calendar-section,
    .booking-summary {
        width: 90%;
    }
}