/* =========================================================
   Parrets theme — based on HTML5 UP "Read Only"
   Provençal colour palette for 8 Rue des Parrets, Fréjus
   ========================================================= */

/* ── Fonts ─────────────────────────────────────────────── */
@font-face {
  font-family: 'Source Sans Pro';
  src: url('../fonts/SourceSansPro-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Sans Pro';
  src: url('../fonts/SourceSansPro-LightIt.woff2') format('woff2');
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Source Sans Pro';
  src: url('../fonts/SourceSansPro-Semibold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Sans Pro';
  src: url('../fonts/SourceSansPro-SemiboldIt.woff2') format('woff2');
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'FontAwesome';
  src: url('../fonts/fontawesome-webfont.woff2') format('woff2');
  font-weight: normal; font-style: normal; font-display: block;
}

/* ── Provençal colour tokens ────────────────────────────── */
:root {
  --sidebar-bg:      #3c2010;   /* deep warm terracotta */
  --sidebar-accent:  #e8a84a;   /* golden ochre — active/hover nav */
  --sidebar-text:    rgba(255,255,255,0.6);
  --sidebar-border:  rgba(255,255,255,0.1);
  --link:            #9b6020;   /* warm amber */
  --link-hover:      #c47a2a;
  --accent:          #9b6020;
  --accent-dark:     #7a4c18;
  --body-text:       #3a2a1a;   /* warm dark brown */
  --heading:         #2a1a08;
  --section-alt:     #fdf5e8;   /* warm cream */
  --border:          #e8ddd0;   /* warm beige */
  --footer-bg:       #f5ede0;
  --muted:           #a08060;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym,
address, big, cite, code, del, dfn, em, img, ins, kbd, q, s,
samp, small, strike, strong, sub, sup, tt, var, b, u, i, center,
dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table,
caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas,
details, embed, figure, figcaption, footer, header, hgroup, menu,
nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0; padding: 0; border: 0; font-size: 100%;
  font: inherit; vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header,
hgroup, menu, nav, section { display: block; }
body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
table { border-collapse: collapse; border-spacing: 0; }

/* ── Grid ──────────────────────────────────────────────── */
.row { display: flex; flex-wrap: wrap; box-sizing: border-box; }
.row > * { box-sizing: border-box; padding: 0 1em; }
[class~="1u"]  { width: 8.33333%;  } [class~="2u"]  { width: 16.66667%; }
[class~="3u"]  { width: 25%;       } [class~="4u"]  { width: 33.33333%; }
[class~="5u"]  { width: 41.66667%; } [class~="6u"]  { width: 50%;       }
[class~="7u"]  { width: 58.33333%; } [class~="8u"]  { width: 66.66667%; }
[class~="9u"]  { width: 75%;       } [class~="10u"] { width: 83.33333%; }
[class~="11u"] { width: 91.66667%; } [class~="12u"] { width: 100%;      }
.row.uniform { margin: 0 -1em -1.5em; }
.row.uniform > * { padding: 0 1em 1.5em; }
@media (max-width: 480px) {
  [class*="12u(xsmall)"] { width: 100% !important; }
  [class*="6u(xsmall)"]  { width: 50%  !important; }
}
@media (max-width: 736px) {
  [class*="12u(small)"] { width: 100% !important; }
  [class*="6u(small)"]  { width: 50%  !important; }
}

/* ── Base typography ────────────────────────────────────── */
body {
  background: #fff;
  color: var(--body-text);
  font-family: 'Source Sans Pro', Helvetica, sans-serif;
  font-size: 14pt;
  font-weight: 300;
  line-height: 1.65em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--link); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--link-hover); }
strong, b { font-weight: 600; color: var(--heading); }
em, i     { font-style: italic; }
p         { margin: 0 0 1.5em; }
h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: 600;
  line-height: 1.25em;
  margin: 0 0 0.5em;
}
h2 { font-size: 1.8em; }
h3 { font-size: 1.35em; }
h4 { font-size: 1.1em; }
h5 { font-size: 0.9em; }
h6 { font-size: 0.7em; }
sub { font-size: 0.8em; position: relative; top:  0.5em; }
sup { font-size: 0.8em; position: relative; top: -0.5em; }
hr  { border: 0; border-bottom: 1px solid var(--border); margin: 1.5em 0; }

/* ── Lists ──────────────────────────────────────────────── */
ul.default, ol.default {
  list-style: disc;
  padding-left: 1.5em;
  margin: 0 0 1.5em;
}
ul.default li, ol.default li { padding: 0.25em 0; }
ol.default { list-style: decimal; }

/* ── Containers ─────────────────────────────────────────── */
.container {
  margin: 0 auto;
  max-width: calc(100% - 60px);
  width: 1080px;
}
@media (max-width: 980px)  { .container { width: 100%; } }
@media (max-width: 736px)  { .container { max-width: calc(100% - 40px); } }
@media (max-width: 480px)  { .container { max-width: calc(100% - 30px); } }

/* ── Page layout ────────────────────────────────────────── */
#header {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 22em;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2em;
  overflow-y: auto;
  overflow-x: hidden;
}
#wrapper { margin-left: 22em; min-height: 100vh; }
#main { padding: 0; }
#main > section { padding: 4em 0; }
#main > section:nth-child(even) { background: var(--section-alt); }

/* ── Sidebar content ────────────────────────────────────── */
#header header { margin-bottom: 2em; }

#header h1#logo { font-size: 1.35em; letter-spacing: -0.025em; margin: 0 0 0.3em; }
#header h1#logo a { color: #fff; font-weight: 600; }
#header h1#logo a:hover { color: rgba(255,255,255,0.8); }
#header header > p {
  color: rgba(255,255,255,0.55);
  font-size: 0.85em;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  margin: 0;
}

/* House thumbnail in sidebar */
.image.avatar {
  display: block;
  margin: 0 auto 1.25em;
  width: 8em;
  height: 6em;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.2);
}
.image.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Sidebar nav */
#nav {
  border-top: 1px solid var(--sidebar-border);
  margin-top: 1.5em;
  padding-top: 1.5em;
  width: 100%;
}
#nav > ul { list-style: none; margin: 0; padding: 0; }
#nav > ul > li { padding: 0; margin: 0; }
#nav > ul > li > a {
  display: block;
  padding: 0.6em 0;
  color: rgba(255,255,255,0.55);
  font-size: 0.85em;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.075);
  transition: color 0.2s ease;
}
#nav > ul > li > a:hover,
#nav > ul > li > a.active { color: var(--sidebar-accent); }
#nav > ul > li:last-child > a { border-bottom: 0; }

/* Book buttons in sidebar */
.sidebar-book {
  margin-top: 1.5em;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  width: 100%;
}
.sidebar-book a {
  display: block;
  padding: 0.55em 0;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  color: rgba(255,255,255,0.8);
  font-size: 0.8em;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.sidebar-book a:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* ── Section headings ───────────────────────────────────── */
header.major { text-align: center; margin-bottom: 2em; }
header.major h2 { font-size: 2.8em; letter-spacing: -0.035em; }
header.major p  { color: var(--muted); font-size: 1.1em; margin: 0.4em 0 0; }

#main > section h3 {
  border-bottom: 1px solid var(--border);
  margin-bottom: 1em;
  padding-bottom: 0.5em;
}

/* ── Highlight boxes (quick facts) ─────────────────────── */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5em;
  margin-top: 1.5em;
}
.highlight-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25em 1.4em;
  text-align: center;
}
.highlight-item .icon {
  font-size: 1.8em;
  display: block;
  margin-bottom: 0.4em;
}
.highlight-item strong {
  display: block;
  font-size: 0.95em;
  color: var(--heading);
  margin-bottom: 0.2em;
}
.highlight-item span {
  font-size: 0.85em;
  color: var(--muted);
}

/* ── Place cards (restaurants, activities) ──────────────── */
.places {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5em;
  margin-top: 1.5em;
}
.place-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.4em 1.5em;
  background: #fff;
}
.place-card h4 { margin-bottom: 0.2em; color: var(--heading); }
.place-card .place-meta {
  font-size: 0.82em;
  color: var(--muted);
  margin-bottom: 0.6em;
  letter-spacing: 0.02em;
}
.place-card p { font-size: 0.92em; margin-bottom: 0; }

/* ── Buttons ────────────────────────────────────────────── */
input[type="submit"],
input[type="reset"],
.button {
  appearance: none;
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  font-size: 0.85em;
  font-weight: 600;
  height: 3em;
  letter-spacing: 0.1em;
  line-height: 3em;
  padding: 0 2em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
input[type="submit"]:hover,
.button:hover { border-color: var(--accent); color: var(--accent); }

.button.special {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.button.special:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.button.large { font-size: 1em; height: 3.25em; line-height: 3.25em; padding: 0 2.5em; }

.actions {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.75em; margin-top: 1em;
}
.actions li { padding: 0; }

/* ── Book CTA block ─────────────────────────────────────── */
.book-cta {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  margin-top: 1.5em;
}
.book-cta a {
  display: inline-block;
  padding: 0.75em 2em;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.book-cta a.airbnb {
  background: #ff5a5f;
  color: #fff;
}
.book-cta a.airbnb:hover { background: #e04a50; }
.book-cta a.booking {
  background: #003580;
  color: #fff;
}
.book-cta a.booking:hover { background: #002a66; }

/* ── Images ─────────────────────────────────────────────── */
.image { display: inline-block; }
.image img { max-width: 100%; display: block; }
.image.fit { display: block; width: 100%; }
.image.fit img { width: 100%; }

/* Hero image */
.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin-bottom: 2em;
}

/* Photo gallery strip */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75em;
  margin: 1.5em 0;
}
.photo-strip img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* ── Guest info sections ────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5em;
  margin-top: 1.5em;
}
.info-block {
  border-left: 3px solid var(--accent);
  padding-left: 1.25em;
}
.info-block h4 { margin-bottom: 0.4em; }
.info-block p  { font-size: 0.92em; margin-bottom: 0; }

/* ── Floor plan list ────────────────────────────────────── */
.floors { list-style: none; padding: 0; margin: 1.5em 0; }
.floors li {
  padding: 1em 0 1em 1.25em;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.floors li:last-child { border-bottom: 0; }
.floors li::before {
  content: '';
  position: absolute;
  left: 0; top: 1.2em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.floors li strong { display: block; margin-bottom: 0.25em; }

/* ── Footer ─────────────────────────────────────────────── */
#footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 2em 0;
}
#footer .container { text-align: center; }
ul.copyright {
  list-style: none; padding: 0;
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 0.25em 1.5em; font-size: 0.85em; color: var(--muted);
}
ul.copyright a { color: var(--muted); }
ul.copyright a:hover { color: var(--link); }
ul.copyright li { padding: 0; }

/* ── Mobile nav ─────────────────────────────────────────── */

#navPanel {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 150;
  width: 80%; max-width: 20em;
  background: var(--sidebar-bg);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 4em 2em 2em;
}
#navPanel nav { display: flex; flex-direction: column; }
#navPanel nav a.link {
  display: block; padding: 0.8em 0;
  color: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.075);
  font-size: 0.9em; letter-spacing: 0.075em; text-transform: uppercase;
}
#navPanel nav a.link:last-child { border-bottom: 0; }
#navPanel nav a.link:hover { color: var(--sidebar-accent); }

body.navPanel-visible #navPanel { transform: translateX(0); }
body.navPanel-visible::after {
  content: ''; position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.4);
}

/* Mobile brand bar */
#mobile-brand { display: none; }
@media (max-width: 736px) {
  #mobile-brand {
    display: block; position: sticky; top: 0; z-index: 90;
    background: var(--sidebar-bg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .mobile-brand-inner {
    display: flex; align-items: center; gap: 0.75em;
    padding: 0.6em 1em;
  }
  .mobile-brand-avatar {
    width: 2.2em; height: 2.2em;
    border-radius: 4px; object-fit: cover;
    border: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
  }
  .mobile-brand-home { text-decoration: none; }
  .mobile-brand-text {
    display: flex; flex-direction: column; flex: 1;
    min-width: 0;
  }
  .mobile-brand-name {
    color: #fff; font-weight: 600; font-size: 0.9em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .mobile-brand-title {
    color: rgba(255,255,255,0.55); font-size: 0.72em;
    letter-spacing: 0.06em; text-transform: uppercase;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .mobile-brand-toggle {
    display: flex; flex-direction: column; justify-content: center;
    gap: 5px; padding: 0.5em; cursor: pointer; flex-shrink: 0;
  }
  .mobile-brand-toggle span {
    display: block; width: 22px; height: 2px;
    background: rgba(255,255,255,0.8); border-radius: 2px;
  }
}

/* ── Responsive layout ──────────────────────────────────── */
@media (max-width: 980px) {
  #header  { width: 20em; }
  #wrapper { margin-left: 20em; }
}
@media (max-width: 736px) {
  #header  { display: none; }
  #wrapper { margin-left: 0; }
  #main > section { padding: 3em 0; }
  .highlights  { grid-template-columns: repeat(2, 1fr); }
  .places      { grid-template-columns: 1fr; }
  .info-grid   { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .book-cta    { flex-direction: column; }
  .book-cta a  { text-align: center; }
}
@media (max-width: 480px) {
  body { font-size: 12pt; }
  #main > section { padding: 2.5em 0; }
  .highlights { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr; }
}

/* ── Utility ────────────────────────────────────────────── */
.container--narrow { max-width: 780px; }
.muted { color: var(--muted); }
.breadcrumb { font-size: 0.82em; color: var(--muted); margin-bottom: 1.5em; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--link); }

/* Appliance photos in guest info */
#single-page img {
  max-width: 100%;
  border-radius: 6px;
  margin: 0.75em 0 1em;
  border: 1px solid var(--border);
}

/* Single page content */
#single-page { padding: 4em 0; }
#single-page .container--narrow h1 { font-size: 2.4em; margin-bottom: 0.6em; }
#single-page .container--narrow h2 { font-size: 1.8em; margin-top: 1.5em; }
#single-page .container--narrow h2:first-child { margin-top: 0; }
#single-page ul, #single-page ol {
  list-style: disc; padding-left: 1.5em; margin: 0 0 1.5em;
}
#single-page ol { list-style: decimal; }
#single-page li { margin-bottom: 0.4em; }
