/* =========================
   Brewster Beach Cottages
   Complete updated styles.css
   ========================= */

/* Basic Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
/* Header / Nav */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-brand .site-title {
  color: white;
  font-size: 1.6rem;
  font-weight: 800;
  text-decoration: none;
}
.site-brand .tagline { color: rgba(255,255,255,0.9); font-size: 0.95rem; margin-top: 0.15rem; }

.site-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.site-nav a {
  color: white;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.18s;
}
.site-nav a:hover { background: rgba(255,255,255,0.06); }

/* small-screen nav fallback */
@media (max-width: 720px) {
  .site-nav { width: 100%; justify-content: center; margin-top: 8px; }
  .site-brand { text-align: center; width: 100%; }
}

/* Footer */
.footer-inner {
  padding: 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  color: #f1f6f8;
}
.footer-links a {
  color: #f1f6f8; text-decoration: none; font-weight: 600;
}
.footer-links a:hover { text-decoration: underline; }
.footer-note p { color: #e6eef2; margin: 0; font-size: 0.95rem; }


header {
    background: #0a4d68;
    color: white;
    padding: 1.5rem 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

header .tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* =========================
   HERO - Single Beach Image
   ========================= */

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: block;
    width: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* default placeholder beach photo - replace or override via JS */
    background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1920&q=80');
    /* Brighten and add marketing punch  */
    filter: brightness(1.15) contrast(1.35) saturate(1.20);
}

/* keep overlay full-height and centered, but move inner content up 15% */
.hero-overlay { 
  background: rgba(10,77,104,0.35); /* whatever you already use */
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  transform: translateY(-15%);
  -webkit-transform: translateY(-15%);
  text-align: center;
}



.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 77, 104, 0); /* overlay color */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 2rem;
}

.hero-overlay h2 {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    max-width: 1000px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    line-height: 1.1;
    font-weight: 700;
}

.cta-button {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 1.15rem 2.25rem;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: 0 6px 12px rgba(0,0,0,0.18);
}

.cta-button:hover {
    background: #e55a2b;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.22);
}

/* (Legacy / fallback) four-image montage used previously */
.hero-montage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 100%;
}

.hero-montage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================
   Cottage Montage Section
   ========================= */

.cottage-montage-section {
    padding: 3rem 0;
    background: #ffffff;
}

.cottage-montage-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: #0a4d68;
    font-weight: 700;
}

.cottage-montage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.cottage-montage img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    cursor: pointer;
}

.cottage-montage img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* =========================
   Cottages Grid / Cards
   ========================= */

.cottages-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.cottages-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: #0a4d68;
    font-weight: 700;
}

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

/* Card */
.cottage-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    display: flex;
    flex-direction: column;
}

.cottage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 30px rgba(0,0,0,0.10);
}

.cottage-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    filter: brightness(1.15) contrast(1.05) saturate(1.15);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cottage-card a {
    display: block;
    cursor: pointer;
}

.cottage-card a:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.cottage-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cottage-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #0a4d68;
    font-weight: 700;
}

.cottage-card p {
    color: #666;
    margin-bottom: 1.25rem;
    flex: 1;
}

.view-details {
    display: inline-block;
    background: #0a4d68;
    color: white;
    padding: 0.6rem 1.1rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
}

.view-details:hover {
    background: #083a52;
}

/* =========================
   Contact Section
   ========================= */

.contact-section {
    padding: 4rem 0;
    text-align: center;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0a4d68;
}

.contact-section p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    color: #666;
}

#filloutFormContainer {
    max-width: 720px;
    margin: 0 auto;
}

/* =========================
   Footer
   ========================= */

footer {
    background: #0a4d68;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* =========================
   Cottage Detail Page / Gallery
   ========================= */

.cottage-detail {
    padding: 2.5rem 0 4rem;
    background: #ffffff;
}

.breadcrumb {
    margin-bottom: 1rem;
    color: #666;
}

.breadcrumb a {
    color: #0a4d68;
    text-decoration: none;
}

.cottage-header {
    margin-bottom: 1.5rem;
}

.cottage-header h1 {
    font-size: 2.2rem;
    color: #0a4d68;
    font-weight: 700;
}

/* Gallery */
.gallery-section {
    margin-bottom: 2rem;
}

.gallery-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #0a4d68;
}

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

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    padding-bottom: 66.666%; /* 3:2 aspect */
    background: #f4f6f7;
}

.gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
    filter: brightness(1.15) contrast(1.05) saturate(1.15);
}

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

/* Cottage Info */
.cottage-info {
    margin-bottom: 2.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.25rem;
    align-items: start;
}

.info-main h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: #0a4d68;
}

.info-main p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
}

.amenities-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.amenities-list li {
    color: #444;
}

.amenities-list li:before {
    content: "✓ ";
    color: #0a4d68;
    font-weight: 700;
    margin-right: 0.35rem;
}

.info-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.info-box {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}

.info-box h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #0a4d68;
}

/* Reviews */
.reviews-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.reviews-container .review-quote {
    margin-bottom: 0.8rem;
    background: #fff;
    padding: 1rem;
    border-left: 4px solid #0a4d68;
    border-radius: 4px;
    font-style: italic;
    color: #444;
}

/* Airbnb link button */
.airbnb-button {
    display: inline-block;
    background: #FF5A5F;
    color: white;
    padding: 0.9rem 1.75rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
}

.airbnb-note {
    margin-top: 0.75rem;
    color: #666;
    font-size: 0.95rem;
}

/* Booking Section */
.booking-section {
    padding: 2.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
    text-align: center;
}

.booking-section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: #0a4d68;
}



/* Cottage Page Availability Calendar */
.availability-section {
    margin: 3rem 0;
    padding: 2rem 0;
    background: #f8f9fa;
}

.availability-section h2 {
    text-align: center;
    color: #0a4d68;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.legend-inline {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.legend-inline .legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.legend-inline .legend-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.legend-inline .legend-color.available {
    background: white;
}

.legend-inline .legend-color.booked {
    background: #ff6363;
}

.cottage-calendar-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.calendar-note {
    text-align: center;
    color: #666;
    margin-top: 1rem;
    font-style: italic;
}

/* FullCalendar overrides for cottage page */
.cottage-calendar-container .fc .fc-event.blocked-range,
.cottage-calendar-container .fc .fc-daygrid-event.fc-bg-event.blocked-range {
    background-color: #ff6363 !important;
    border: none !important;
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .cottage-calendar-container {
        padding: 1rem;
    }
}






/* booked background (strong selector + !important to override inline/background styles) */
.fc .fc-event.blocked-range,
.fc .fc-event.blocked-range .fc-event-main,
.fc .fc-daygrid-event.fc-bg-event.blocked-range,
.blocked-range {
  background-color: #ff6363 !important;
  color: #fff !important;
  opacity: 1 !important;
  border: none !important;
}

/* cells that FullCalendar may mark disabled by class — ensure they match */
.fc .fc-daygrid-day .fc-daygrid-day-bg.blocked-range,
.fc .fc-daygrid-day.blocked-range {
  background-color: #ff6363 !important;
}



/* =========================
   Responsive
   ========================= */

@media (max-width: 1024px) {
    .hero-overlay h2 {
        font-size: 2.6rem;
    }
}

@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .cottage-montage {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .hero {
        height: 420px;
    }

    .hero-overlay h2 {
        font-size: 1.9rem;
    }

    .cottage-montage img {
        height: 180px;
    }

    .cottage-card img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 340px;
    }

    .hero-overlay h2 {
        font-size: 1.6rem;
        padding: 0 1rem;
    }

    .container {
        padding: 0 12px;
    }

    .cottage-montage {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        padding-bottom: 66.666%;
    }
}


/* Multi-calendar grid */
.calendars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Card style used for each cottage calendar */
.calendar-card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.calendar-card .calendar-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:0.75rem;
}
.calendar-card h3 { margin:0; color:#0a4d68; font-size:1.15rem; }
.calendar-card .weekly-price { background:#ff6b35;color:#fff;padding:6px 10px;border-radius:6px;font-weight:700;}

/* FullCalendar container sizing */
.calendar-container { min-height:360px; }

/* Mobile */
@media (max-width: 1024px) {
  .calendars-grid { grid-template-columns: 1fr; }
}





/* =========================
   Utility helpers
   ========================= */

.text-center { text-align: center; }
.hidden { display: none !important; }

/* End of file */
