/* Breakwater Guide: independent guide to The Ville Resort-Casino, Townsville */
:root {
  --bone: #f5f2ea;
  --paper: #fffdf8;
  --sand: #e6dccb;
  --ink: #18242b;
  --ink-soft: #46535a;
  --leaf: #2c5a4a;
  --leaf-deep: #1d3d32;
  --bloom: #a3245f;
  --bloom-soft: #f6e3ec;
  --line: #d6cbb6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 clamp(1rem, 0.96rem + 0.2vw, 1.0625rem)/1.65 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-underline-offset: 3px; }
a:hover { color: var(--bloom); }
:focus-visible { outline: 3px solid var(--bloom); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; border: 0; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 10000; }
.skip:focus { left: 8px; top: 8px; }

/* utility strip */
.strip { background: var(--leaf-deep); color: #e9efe9; font-size: .82rem; }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.strip a { color: #fff; }
.strip-note { display: flex; align-items: center; gap: 10px; }
.age { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 24px; padding: 0 6px; border: 1.5px solid currentColor; border-radius: var(--r); font-weight: 700; font-size: .78rem; letter-spacing: .02em; }

/* header */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 900; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { flex: 0 0 auto; }
.brand-name { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; line-height: 1.1; display: block; }
.brand-sub { display: block; font-size: .74rem; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }
.topnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.topnav a { display: block; padding: 8px 10px; color: var(--ink); text-decoration: none; font-size: .93rem; border-bottom: 2px solid transparent; }
.topnav a:hover, .topnav a[aria-current="page"] { border-bottom-color: var(--bloom); color: var(--ink); }
.menu-open { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--ink); border-radius: var(--r); padding: 8px 12px; font: 600 .9rem var(--sans); color: var(--ink); cursor: pointer; }
.menu-open span { display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor; }

/* drawer lives in body, outside the sticky header */
.drawer-shade { position: fixed; inset: 0; background: rgba(12, 18, 22, .55); z-index: 9980; opacity: 0; visibility: hidden; transition: opacity .2s; }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); height: 100dvh; background: var(--paper); z-index: 9990; transform: translateX(100%); visibility: hidden; pointer-events: none; transition: transform .25s ease, visibility .25s; display: flex; flex-direction: column; overflow-y: auto; }
.drawer.is-open { transform: none; visibility: visible; pointer-events: auto; }
.drawer-shade.is-open { opacity: 1; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.1rem; }
.drawer-close { background: none; border: 1px solid var(--line); border-radius: var(--r); width: 40px; height: 40px; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.drawer ul { list-style: none; margin: 0; padding: 8px 0; }
.drawer a { display: block; padding: 12px 20px; color: var(--ink); text-decoration: none; border-left: 3px solid transparent; }
.drawer a:hover, .drawer a[aria-current="page"] { border-left-color: var(--bloom); background: var(--bone); }
.drawer-foot { margin-top: auto; padding: 18px 20px; font-size: .85rem; color: var(--ink-soft); border-top: 1px solid var(--line); }

@media (max-width: 1080px) {
  .topnav { display: none; }
}

/* opening picture with overlay card */
.opening { position: relative; background: var(--ink); }
.opening-photo img { width: 100%; height: clamp(420px, 72vh, 720px); object-fit: cover; }
.opening-card { position: absolute; left: var(--gut); bottom: clamp(20px, 5vw, 56px); max-width: 620px; background: var(--paper); padding: clamp(20px, 3vw, 36px); border-top: 5px solid var(--bloom); box-shadow: 0 14px 40px rgba(0, 0, 0, .28); }
.opening-card p { color: var(--ink-soft); }
.opening-card h1 { margin-bottom: .35em; }
.credit { font-size: .76rem; color: var(--ink-soft); }
.opening .credit { position: absolute; right: 10px; bottom: 8px; color: #fff; background: rgba(0, 0, 0, .55); padding: 2px 8px; border-radius: var(--r); }
.opening .credit a { color: #fff; }
@media (max-width: 720px) {
  .opening-photo img { height: 300px; }
  .opening-card { position: static; max-width: none; box-shadow: none; }
  .opening .credit { bottom: auto; top: 270px; }
}

/* page title band for inner pages */
.pagehead { background: var(--leaf-deep); color: #f3efe6; padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); }
.pagehead p { max-width: 720px; color: #d9e2dc; font-size: 1.06rem; }
.crumbs { font-size: .84rem; margin-bottom: 14px; color: #c9d6cf; }
.crumbs a { color: #fff; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }

/* links that act as actions */
.act { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: var(--r); font-weight: 600; text-decoration: none; border: 2px solid var(--leaf); background: var(--leaf); color: #fff; cursor: pointer; font-size: .97rem; font-family: var(--sans); }
.act:hover { background: var(--leaf-deep); border-color: var(--leaf-deep); color: #fff; }
.act-line { background: transparent; color: var(--leaf); }
.act-line:hover { background: var(--leaf); color: #fff; }
.act-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* stay facts bar */
.staybar { background: var(--paper); border-bottom: 1px solid var(--line); }
.staybar dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.staybar dl > div { padding: 20px 18px; border-left: 1px solid var(--line); }
.staybar dl > div:first-child { border-left: 0; padding-left: 0; }
.staybar dt { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.staybar dd { margin: 0; font-family: var(--serif); font-size: 1.08rem; }
@media (max-width: 860px) {
  .staybar dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staybar dl > div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .staybar dl > div:nth-child(-n+2) { border-top: 0; }
}

/* sections */
.band { padding: clamp(44px, 7vw, 92px) 0; }
.band-paper { background: var(--paper); }
.band-sand { background: var(--sand); }
.band-dark { background: var(--ink); color: #eef0ec; }
.band-dark a { color: #f3c6da; }
.band-dark .lede, .band-dark p { color: #d7dcd8; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 760px; }
.section-head { max-width: 780px; margin-bottom: clamp(24px, 4vw, 40px); }

.split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.split.flip { grid-template-columns: 5fr 7fr; }
.split.flip .split-media { order: 2; }
.split-media figure { margin: 0; }
.split-media img { width: 100%; border-radius: var(--r); }
@media (max-width: 860px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
}
figure { margin: 0; }
figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: 8px; }
.band-dark figcaption { color: #b9c2bd; }

/* tick list */
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding: 7px 0 7px 30px; border-bottom: 1px dotted var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--bloom); border-bottom: 2px solid var(--bloom); transform: rotate(-45deg); }

/* venue / room tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 22px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; }
.tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r) var(--r) 0 0; }
.tile-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.tile-body p { color: var(--ink-soft); font-size: .96rem; }
.tile-body > :last-child { margin-bottom: 0; }
.tag { display: inline-block; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--bloom); font-weight: 700; margin-bottom: 6px; }
.tile .more { margin-top: auto; font-weight: 600; }

/* wide photo list (around town) */
.places { display: grid; gap: 28px; }
.place { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(18px, 4vw, 40px); align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(14px, 2vw, 22px); }
.place img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
@media (max-width: 760px) { .place { grid-template-columns: 1fr; } }

/* room table */
.roomlist { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); }
.roomlist th, .roomlist td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.roomlist thead th { background: var(--leaf-deep); color: #fff; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.roomlist tbody th { font-family: var(--serif); font-size: 1.05rem; white-space: nowrap; }
@media (max-width: 680px) {
  .roomlist thead { display: none; }
  .roomlist, .roomlist tbody, .roomlist tr, .roomlist th, .roomlist td { display: block; width: 100%; }
  .roomlist tr { border-bottom: 2px solid var(--line); }
  .roomlist td, .roomlist tbody th { border: 0; padding: 6px 16px; }
  .roomlist tbody th { padding-top: 14px; white-space: normal; }
  .roomlist td::before { content: attr(data-label) ": "; font-weight: 600; }
}

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--bloom); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; background: var(--paper); border: 3px solid var(--bloom); border-radius: 50%; }
.timeline .year { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; display: block; color: var(--leaf); }
.band-dark .timeline .year { color: #f3c6da; }

/* note boxes */
.note { background: var(--bloom-soft); border-left: 4px solid var(--bloom); padding: 16px 20px; border-radius: var(--r); margin: 0 0 1.4em; }
.note p:last-child { margin: 0; }
.note-leaf { background: #e3ece7; border-left-color: var(--leaf); }

/* questions */
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; padding: 18px 36px 18px 0; font-family: var(--serif); font-size: 1.12rem; list-style: none; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font: 400 1.5rem var(--sans); color: var(--bloom); }
.qa details[open] summary::after { content: "\2212"; }
.qa details > div { padding: 0 0 18px; color: var(--ink-soft); }

/* two column text */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }

/* address card + map */
.addr { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.addr address { font-style: normal; line-height: 1.7; }
.mapbox { position: relative; background: var(--sand); border: 1px solid var(--line); border-radius: var(--r); min-height: 340px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* legal text */
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.5rem); margin-top: 1.8em; }
.legal-meta { color: var(--ink-soft); font-size: .92rem; }

/* form */
.form { display: grid; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 30px); }
.form label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; }
.form input, .form textarea, .form select { width: 100%; padding: 12px 14px; border: 1px solid #b6aa93; border-radius: var(--r); font: inherit; background: #fff; color: var(--ink); }
.form textarea { min-height: 150px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: auto; margin-top: 5px; }
.form-status { margin: 0; padding: 12px 14px; border-radius: var(--r); }
.form-status.ok { background: #e3ece7; color: var(--leaf-deep); }
.form-status.err { background: var(--bloom-soft); color: #7a1546; }

/* footer */
.foot { background: var(--ink); color: #cfd6d2; font-size: .92rem; padding: clamp(40px, 6vw, 64px) 0 24px; }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 28px; }
.foot h2 { font-size: 1rem; color: #fff; font-family: var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 7px; }
.foot address { font-style: normal; }
.foot-rg { border-top: 1px solid #34434b; margin-top: 30px; padding-top: 20px; display: flex; gap: 14px; align-items: flex-start; }
.foot-rg .age { color: #fff; flex: 0 0 auto; }
.foot-base { margin-top: 18px; font-size: .82rem; color: #a9b4ae; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* age gate: state set before first paint */
html:not(.ag-lock) .agegate { display: none; }
.ag-lock body { overflow: hidden; }
.agegate { position: fixed; inset: 0; z-index: 10001; background: rgba(16, 26, 30, .96); display: flex; align-items: center; justify-content: center; padding: 16px; }
.agegate-box { background: var(--paper); max-width: 480px; width: 100%; padding: clamp(22px, 4vw, 36px); border-top: 5px solid var(--bloom); border-radius: var(--r); text-align: center; }
.agegate-box .age { color: var(--bloom); font-size: 1.1rem; height: 40px; min-width: 56px; margin-bottom: 14px; }
.agegate-box .act-row { justify-content: center; }
.agegate-out { margin-top: 14px; font-size: .9rem; }

/* cookie banner */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9000; max-width: 640px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--leaf); border-radius: var(--r); padding: 16px 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.cookie p { margin: 0 0 12px; font-size: .92rem; }
.cookie .act-row { margin: 0; }
.cookie .act { padding: 9px 16px; }

/* inline icons */
.ico { width: 22px; height: 22px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -5px; }
.iconrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 0 28px; border-top: 1px solid var(--line); }
.iconrow > div { display: flex; gap: 14px; padding: 18px 14px 18px 0; border-bottom: 1px solid var(--line); }
.iconrow .ico { width: 30px; height: 30px; color: var(--bloom); }
.iconrow h3 { font-size: 1.08rem; margin-bottom: .25em; }
.iconrow p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.credits-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--paper); }
.credits-table th, .credits-table td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.credits-table img { width: 120px; }
@media (max-width: 680px) { .credits-table { display: block; overflow-x: auto; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

a[href^="tel:"] { white-space: nowrap; }
@media (max-width: 400px) {
  .brand-sub { display: none; }
  .strip .wrap > p:last-child { display: none; }
}
.tile-credit { margin: auto 0 0; padding-top: 12px; }
.tile .more + .tile-credit { margin-top: 0; }
