/* ==========================================================
   Lot 117 - Shuswap Lake RV Resort
   ----------------------------------------------------------
   EVERY COLOUR, FONT AND SIZE IS SET IN THE BLOCK BELOW.
   Change a value here and it changes everywhere on the page.
   ========================================================== */

:root {
  /* --- Soft blue / green / grey palette --- */
  --page:      #f2f5f5;   /* page background - pale blue-grey     */
  --panel:     #ffffff;   /* cards and buttons                    */
  --ink:       #2c3a3c;   /* body text - deep slate               */
  --ink-soft:  #64777a;   /* quieter text, captions, sub-labels   */
  --line:      #d7e1e0;   /* hairlines and table borders          */
  --blue:      #3f6e7d;   /* headings - soft lake blue            */
  --green:     #6d9583;   /* accents, buttons - soft sage green   */
  --wash:      #e6eeed;   /* faint tint behind highlighted blocks */

  --body-font:    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --heading-font: Georgia, "Times New Roman", serif;

  --max-width:  780px;    /* how wide the text column gets        */
  --wide-width: 900px;    /* how wide the feature photos get      */
}


/* ==========================================================
   BASE
   --------------------------------------------------------
   The whole page is centre-aligned. Bullet lists are the one
   exception - they sit in a centred block but their text runs
   left, which keeps them readable.
   ========================================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0 20px 60px;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;   /* stops iOS resizing text  */
}

p {
  max-width: 640px;
  margin: 0 auto 16px;
}

a         { color: var(--blue); text-decoration: none; border-bottom: 1px solid var(--line); }
a:hover   { border-bottom-color: var(--green); color: var(--green); }

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
}


/* ==========================================================
   MENU  -  the row of page links at the top of every page
   --------------------------------------------------------
   .current is the page you are on - it gets a green underline.
   ========================================================== */

.nav {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.nav a {
  display: inline-block;
  margin: 0 14px;
  padding: 6px 2px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}

.nav a:hover   { color: var(--blue); border-bottom-color: var(--line); }
.nav a.current { color: var(--blue); border-bottom-color: var(--green); }


/* ==========================================================
   PAGE TITLE  -  the smaller heading on the inner pages
   ========================================================== */

.page-title {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 0 28px;
}

.page-title h1 {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: normal;
  font-size: 44px;
  line-height: 1.1;
  color: var(--blue);
}

/* the first section under a page title has no line above it */
.section.first { border-top: none; padding-top: 8px; }


/* ==========================================================
   NEXT PAGE LINK  -  at the bottom of each inner page
   ========================================================== */

.next {
  margin: 8px auto 40px;
  font-size: 15px;
  letter-spacing: 0.04em;
}


/* ==========================================================
   EXPLORE TILES  -  clickable photo cards on the home page
   ========================================================== */

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
}

.tile {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 0 20px;
  color: var(--ink);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.tile:hover {
  color: var(--ink);
  border-color: var(--green);
  transform: translateY(-3px);
}

.tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 16px;
}

.tile strong {
  display: block;
  font-family: var(--heading-font);
  font-weight: normal;
  font-size: 22px;
  color: var(--blue);
  margin-bottom: 4px;
}

.tile span {
  display: block;
  padding: 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}


/* ==========================================================
   COLUMNS  -  three lists side by side (Things to Do)
   ========================================================== */

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  text-align: left;
}

.columns h3 { text-align: center; margin-top: 6px; }
.columns .list { display: block; font-size: 15px; }


/* ---- RATE PANELS side by side on the rates page --------- */

.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto 10px;
}

.panels .panel { max-width: none; margin: 0; }

/* contact table: narrow label column so the email fits on one line */
.contact th { width: 30%; }
.contact td { word-break: break-word; }


/* ==========================================================
   HERO  -  the big block at the top of the home page
   ========================================================== */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 0 44px;
}

.eyebrow {
  margin: 0 auto 18px;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.hero h1 {
  margin: 0 0 20px;
  font-family: var(--heading-font);
  font-weight: normal;
  font-size: 60px;
  line-height: 1;
  color: var(--blue);
}

.hero h2 {
  margin: 0 0 20px;
  font-family: var(--heading-font);
  font-weight: normal;
  font-size: 44px;
  line-height: 1;
  color: var(--blue);
}

.tagline {
  max-width: 540px;
  margin: 0 auto 32px;
  font-size: 16px;
  color: var(--ink-soft);
}

.hero-actions { max-width: none; margin: 0; }


/* ---- BUTTONS -------------------------------------------- */

.button, .button-quiet {
  display: inline-block;
  margin: 0 5px 10px;
  padding: 13px 26px;      /* generous, so it's easy to tap    */
  font-size: 16px;
  border-radius: 3px;
  border-bottom: none;
}

.button {
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
}
.button:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

.button-quiet {
  color: var(--blue);
  border: 1px solid var(--line);
  background: var(--panel);
}
.button-quiet:hover { border-color: var(--green); color: var(--green); }


/* ==========================================================
   PHOTOS
   --------------------------------------------------------
   .feature  = one wide photo, wider than the text column
   .portrait = one tall photo, kept narrow and centred
   .duo      = two photos side by side (one above the other
               on a phone)
   .duo-small= two smaller photos side by side
   figcaption= the small grey line of text under a photo
   ========================================================== */

.feature {
  max-width: var(--wide-width);
  margin: 0 auto 44px;
}

/* Feature photos show in full - nothing is cropped off. Your
   wide shots are 16:9, which is what this expects.            */
.feature img { width: 100%; }

.portrait {
  max-width: 340px;
  margin: 0 auto 28px;
}

figure { margin: 0 0 20px; }

figcaption {
  margin-top: 9px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.duo, .duo-small {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
  margin: 30px auto 10px;
  align-items: start;
}

.duo       { max-width: var(--wide-width); }
.duo-small { max-width: 660px; }

.duo img {
  width: 100%;
  aspect-ratio: 16 / 9;      /* keeps the pair tidy             */
  object-fit: cover;
}

.duo-small img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}


/* ==========================================================
   SECTIONS  -  every block of content on the page
   ========================================================== */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

/* a section that holds wide photos needs the wider container */
.section-wide { max-width: var(--wide-width); }

.section h2 {
  margin: 0 0 24px;
  font-family: var(--heading-font);
  font-weight: normal;
  font-size: 32px;
  line-height: 1.2;
  color: var(--blue);
}

.section h3 {
  margin: 38px 0 14px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.section h3:first-of-type { margin-top: 6px; }


/* ==========================================================
   AT A GLANCE  -  the fact grid, three across
   ========================================================== */

.facts {
  margin: 0 auto;
  padding: 0;
  list-style: none;
  max-width: 720px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px 26px;
}

.facts li {
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.facts strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.facts span {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}


/* ==========================================================
   BULLET LISTS
   --------------------------------------------------------
   The list sits centred on the page, but the text inside it
   reads left to right as normal.
   ========================================================== */

.list {
  display: inline-block;
  text-align: left;
  margin: 0 0 16px;
  padding-left: 20px;
  max-width: 620px;
}

.list li { margin-bottom: 9px; }


/* ==========================================================
   TABLES  -  rates and contact details
   ========================================================== */

.rates, .contact {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.rates th, .contact th {
  width: 50%;
  padding: 12px 12px 12px 0;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.rates td, .contact td {
  padding: 12px 0;
  text-align: right;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.rates tr:last-child th,
.rates tr:last-child td,
.contact tr:last-child th,
.contact tr:last-child td { border-bottom: none; }

/* the tinted box the tables sit in */
.panel {
  max-width: 460px;
  margin: 0 auto 22px;
  background: var(--wash);
  border-radius: 4px;
  padding: 6px 22px 14px;
}

.panel h3 { margin-top: 14px; }


/* ==========================================================
   SMALL PRINT
   ========================================================== */

.note {
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
}

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 38px 0 0;
  border-top: 1px solid var(--line);
}

.fine {
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
}


/* ==========================================================
   TABLETS  -  narrower than 820px
   ========================================================== */

@media (max-width: 820px) {
  .facts   { grid-template-columns: 1fr 1fr; max-width: 520px; }
  .columns { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 8px; }
  .panels  { grid-template-columns: 1fr; max-width: 460px; }
  .tiles   { gap: 14px; }
  .tile strong { font-size: 19px; }
}


/* ==========================================================
   PHONES  -  narrower than 620px
   ========================================================== */

@media (max-width: 620px) {
  body         { font-size: 16px; padding: 0 16px 48px; }
  .hero        { padding: 44px 0 32px; }
  .hero h1     { font-size: 42px; }
  .tagline     { font-size: 17px; }
  .section     { padding: 34px 0; }
  .section h2  { font-size: 26px; }
  .section h3  { margin-top: 30px; }
  .facts       { grid-template-columns: 1fr; gap: 15px; max-width: 320px; }

  /* menu becomes a tidy 2 x 2 grid of tap targets */
  .nav   { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px 0; }
  .nav a { margin: 0; padding: 10px 4px; font-size: 13px; }

  .page-title    { padding: 34px 0 20px; }
  .page-title h1 { font-size: 34px; }

  /* tiles stack one per row */
  .tiles { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

  /* photos go one-per-row */
  .duo, .duo-small { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
  .feature         { margin-bottom: 30px; }
  .duo img         { aspect-ratio: 4 / 3; }

  /* buttons become full-width bars - much easier to tap */
  .button, .button-quiet { display: block; margin: 0 0 10px; }

  /* rate rows stack label-above-value instead of squishing */
  .rates th, .rates td, .contact th, .contact td {
    display: block;
    width: 100%;
    text-align: center;
    border-bottom: none;
    padding: 0;
  }
  .rates th, .contact th { padding-top: 14px; font-size: 15px; }
  .rates td, .contact td { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .rates tr:last-child td, .contact tr:last-child td { border-bottom: none; }

  .panel { padding: 6px 18px 12px; }
}
