/* --------------------------------------------------
   GLOBAL RESET & BASE TYPOGRAPHY
-------------------------------------------------- */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background-color: #bcd2ee;
  color: #000;
  font-family: "Inter", "Trebuchet MS", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  border: 1px solid #6699ff;
  font-size: 0.85rem;
}

/* Remove blue border on phones */
@media (max-width: 640px) {
  body {
    border: none;
  }
}

/* --------------------------------------------------
   NAVIGATION
-------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #6699ff;
  color: #fff;
  padding: 10px 12px;
  font-size: 1rem;
  text-align: center;
  z-index: 1000;
  border-bottom: 1px solid #fff;
}

.nav a {
  color: #fff;
  text-decoration: underline;
  margin: 0 6px;
  font-size: 1rem;
}

.nav a.current {
  text-decoration: none;
  font-weight: bold;
}

.nav a:hover {
  color: hotpink;
}

/* --------------------------------------------------
   HEADINGS
-------------------------------------------------- */
h1, h2, h3 {
  margin: 0;
  font-weight: 700;
}

h1 {
  background-color: #6699ff;
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 1.2rem;
  line-height: 1.3;
}

h2 {
  background-color: #6699ff;
  color: #fff;
  text-align: center;
  padding: 5px 10px;
  font-size: 1rem;
}

h3 {
  font-size: 1.1rem;
  color: #0000ff;
  text-align: center;
}

/* Desktop heading overrides */
@media (min-width: 900px) {
  body {
    font-size: 1rem;
    border: 1px solid #6699ff;
  }

  .nav {
    font-size: clamp(1.2rem, 2vw, 2rem);
    text-align: left;
  }

  .nav a {
    font-size: clamp(1.2rem, 2vw, 2rem);
  }

  h1 {
    text-align: right;
    font-size: clamp(2rem, 3vw, 3rem);
    padding: 10px 10px 10px 1px;
  }

  h2 {
    text-align: right;
    font-size: clamp(1rem, 1.2vw, 1.4rem);
    padding: 0 10px;
  }
}

/* --------------------------------------------------
   SUBHEADERS & TITLES
-------------------------------------------------- */
.subheader {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0000ff;
  padding: 1px 10px 10px 1px;
  margin: 1px 10px 10px 10px;
  text-align: left;
}

@media (min-width: 900px) {
  .subheader {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
  }
}

.title-block {
  background-color: #bcd2ee;
  color: #0000ff;
  text-align: center;
  padding: 10px;
}

.cottagetitles {
  composes: title-block;
  font-size: 1.3rem;
  font-weight: bold;
}

/* --------------------------------------------------
   COTTAGE IMAGE CAPTIONS
-------------------------------------------------- */
.phototitles {
  composes: title-block;
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
  margin-top: 5px;
  margin-bottom: 24px;
}

.phototitles img {
  display: block;
  margin: 0 auto 6px auto;
}

@media (min-width: 900px) {
  .cottagetitles {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  }
  .phototitles {
    font-size: clamp(1rem, 1.2vw, 1.4rem);
  }
}

.section-heading {
  color: #0000ff;
  font-weight: bold;
  font-size: 1.3rem;
}

@media (min-width: 900px) {
  .section-heading {
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  }
}

.bluebold {
  color: #0000ff;
  font-weight: bold;
}

.blueboldcenter {
  color: #0000ff;
  font-weight: bold;
  text-align: center;
}

/* --------------------------------------------------
   MAIN TEXT BLOCKS
-------------------------------------------------- */
.maintext,
.centeredmaintext,
.extrabitformj {
  background-color: #bcd2ee;
  padding: 20px;
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .maintext,
  .centeredmaintext,
  .extrabitformj {
    font-size: clamp(1rem, 1.2vw, 1.4rem);
  }
}

.centeredmaintext {
  text-align: center;
}

.extrabitformj {
  text-align: right;
  color: #6699ff;
}

/* --------------------------------------------------
   IMAGES
-------------------------------------------------- */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px auto;
}

.centerimage {
  width: 99%;
  margin: 0 auto;
}

.clear {
  clear: both;
}

/* --------------------------------------------------
   GLOBAL LIST INDENT
-------------------------------------------------- */
ul {
  margin-left: 18px;
}

.faq-answer ul {
  list-style-type: circle;
}

/* --------------------------------------------------
   ⭐ CALENDAR — FIXED LAYOUT + MIN WIDTHS
-------------------------------------------------- */

/* Align table with text margins */
.calendar-scroll {
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center; /* center the scaled table */
}

@media (min-width: 900px) {
  .calendar-scroll {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Wrapper (no scaling here anymore) */
.calendar-inner {
  display: inline-block;
  text-align: left;
}

/* Table layout */
.calendar-scroll table {
  width: auto;              /* allow shrink */
  table-layout: fixed;
  border-collapse: collapse;
  display: inline-block;    /* required for centering */
}

/* First column = double width + minimum width */
.calendar-scroll table td:first-child,
.calendar-scroll table th:first-child {
  width: calc(200% / 39);
  min-width: 36px;
}

/* All other columns equal width + minimum width */
.calendar-scroll table td:not(:first-child),
.calendar-scroll table th:not(:first-child) {
  width: calc(100% / 39);
  min-width: 18px;
}

/* Cell styling */
td, th {
  text-align: center;
  vertical-align: middle;
  font-family: sans-serif;
  font-size: 1rem;
  padding: 4px;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Calendar colors */
.Month, .MonthHeader {
  background-color: #6699ff;
  color: white;
}

.Dots {
  color: #666 !important;
  background: none !important;
}

/* Background images */
.Weekday-A, .TheWeekend-A { background-image: url("boxA.jpg"); }
.Weekday-B, .TheWeekend-B { background-image: url("boxB.jpg"); }
.Weekday-C, .TheWeekend-C { background-image: url("boxC.jpg"); }
.Weekday-D, .TheWeekend-D { background-image: url("boxD.jpg"); }
.Weekday-E, .TheWeekend-E { background-image: url("boxE.jpg"); }
.Weekday-R, .TheWeekend-R { background-image: url("boxR.jpg"); }

/* Ensure backgrounds scale */
.Weekday-A, .TheWeekend-A,
.Weekday-B, .TheWeekend-B,
.Weekday-C, .TheWeekend-C,
.Weekday-D, .TheWeekend-D,
.Weekday-E, .TheWeekend-E,
.Weekday-R, .TheWeekend-R {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain; /* IMPORTANT: allows shrinking */
}

/* Weekend header colours */
.HeaderSat, .HeaderSun {
  color: white;
  font-weight: bold;
}

.HeaderMon, .HeaderTue, .HeaderWed, .HeaderThu, .HeaderFri {
  color: black;
  font-weight: bold;
}

/* --------------------------------------------------
   ⭐ CRITICAL FIX — REMOVE MIN-WIDTHS ON PHONES
-------------------------------------------------- */
@media (max-width: 900px) {
  .calendar-scroll table td,
  .calendar-scroll table th {
    min-width: 0 !important;
  }
}

/* --------------------------------------------------
   ⭐ TABLE SCALING FOR ALL PHONES
-------------------------------------------------- */
@media (max-width: 900px) {
  .calendar-scroll table {
    transform: scale(0.30);
    transform-origin: top left;
  }
}

@media (max-width: 380px) {
  .calendar-scroll table {
    transform: scale(0.26);
  }
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.footer,
.footer-about {
  background-color: #6699ff;
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}

.footer-about {
  color: #0000ff;
}

.footer-staithes,
.footer-contact {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: bold;
}

.footer-staithes:hover,
.footer-contact:hover {
  color: hotpink;
}

.footer-logo {
  width: 20%;
  margin: 10px auto;
}

/* --------------------------------------------------
   INDEX PAGE
-------------------------------------------------- */
.feature-row {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  align-items: center;
}

.feature-text {
  flex: 0 0 32%;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (min-width: 900px) {
  .feature-text {
    font-size: clamp(1rem, 1.2vw, 1.4rem);
  }
}

.feature-image {
  flex: 0 0 68%;
  padding-right: 15px;
}

.feature-image img {
  width: 100%;
}

/* --------------------------------------------------
   FAQ SYSTEM
-------------------------------------------------- */
.faq-group {
  margin: 40px 0;
}

.faq-entry {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ccc;
  line-height: 1.6;
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .faq-entry {
    font-size: clamp(1rem, 1.2vw, 1.4rem);
  }
}

.faq-question {
  font-weight: bold;
  color: #0000ff;
  font-size: 1.2rem;
}

@media (min-width: 900px) {
  .faq-question {
    font-size: clamp(1.2rem, 1.6vw, 1.8rem);
  }
}

.faq-img {
  display: block;
  margin: 0 20px 10px 0;
}

.faq-img.right { float: right; margin-left: 20px; }
.faq-img.left  { float: left; }

.faq-break {
  clear: both;
}

/* --------------------------------------------------
   VILLAGE PAGE IMAGES
-------------------------------------------------- */
.village-img-right {
  float: right;
  width: 30%;
  margin: 0 0 15px 20px;
}

.village-img-left {
  float: left;
  width: 45%;
  margin: 0 0 15px 20px;
}

