/* Booking website template for Hotel AI. The brand colour comes from config.js, or from the property's own
   branding in Hotel AI when the location is live; --brand-text is black or white, whichever reads better on it. */
:root {
  --brand: #1a6b5c;
  --brand-text: #ffffff;
  --ink: #17242b;
  --muted: #5b6b73;
  --line: #dfe6e9;
  --paper: #ffffff;
  --wash: #f4f7f6;
  --radius: 14px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--wash); }
a { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .75rem; }
.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--brand); margin-bottom: .35rem; }
section { padding: 2.5rem 0; }

/* Header and footer */
#site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 0; }
.brand { font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--ink); letter-spacing: -.01em; }
#site-header nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
#site-header nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding-bottom: 2px; border-bottom: 2px solid transparent; }
#site-header nav a:hover, #site-header nav a[aria-current] { border-bottom-color: var(--brand); }
footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 1.5rem 0 2.5rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-block; border: 0; border-radius: 999px; padding: .7rem 1.3rem; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--brand); color: var(--brand-text); text-decoration: none; text-align: center; }
.btn:hover, .btn:focus-visible { filter: brightness(.92); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, white); outline-offset: 2px; }

/* Photos: placeholders until the client's own photos are added (see README) */
.photo { background: linear-gradient(135deg, #7fc8b8, #1a6b5c 60%, #0f3d36); border-radius: var(--radius); min-height: 11rem; position: relative; overflow: hidden; }
.photo::after { content: "Your photo here"; position: absolute; right: .6rem; bottom: .5rem; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #ffffffb3; }
.photo-costa-azul { background: linear-gradient(160deg, #f6d9a8 0%, #f2a65a 22%, #2aa5a0 55%, #0e5a73 100%); }
.photo-pine-ridge { background: linear-gradient(160deg, #cfe3d4 0%, #6a9c78 35%, #2f5d50 70%, #1c3a3a 100%); }
.photo-wide { min-height: clamp(14rem, 34vw, 24rem); }
.photo-unit { min-height: 5.5rem; width: 7.5rem; flex: none; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 35%, white), var(--brand)); }
.photo-unit::after { content: ""; }
.photo.has-photo { background-size: cover; background-position: center; }
.photo.has-photo::after { content: none; }

/* Hero */
.hero { background: var(--paper); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: 0 2px 18px #17242b0f; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }

/* Search */
.search { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: .75rem; align-items: end; margin-top: 1.25rem; }
.search label { display: grid; gap: .25rem; font-size: .82rem; font-weight: 700; color: var(--muted); }
.search input, select { font: inherit; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
@media (max-width: 40rem) { .search { grid-template-columns: 1fr 1fr; } .search .btn { grid-column: 1 / -1; } }

/* Location cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.location-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 2px 18px #17242b0f; display: flex; flex-direction: column; }
.location-card .photo { border-radius: 0; min-height: 13rem; }
.location-card-body { padding: 1.1rem 1.25rem 1.25rem; }
.location-card:hover h3 { color: var(--brand); }

/* Offers */
.offers { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.offer { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1.15rem; display: flex; gap: 1rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.offer h3 { margin-bottom: .15rem; }
.offer p { margin: 0; }
.offer-whole { border: 2px solid var(--brand); background: color-mix(in srgb, var(--brand) 7%, white); }
.offer-price { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; justify-content: flex-end; }
.offer-price .amount { text-align: right; line-height: 1.2; }
.offer-price strong { font-size: 1.3rem; display: block; }
.notice { background: #fff8e6; border: 1px solid #f0d58a; border-radius: 10px; padding: .8rem 1rem; }
.result-location { padding: 1rem 0; }
.result-location h3 a { text-decoration: none; }

/* Units */
.units { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.unit { background: var(--paper); border-radius: var(--radius); padding: .8rem; display: flex; gap: 1rem; align-items: center; box-shadow: 0 1px 8px #17242b0a; }
.unit > div:nth-child(2) { flex: 1; }
.unit p { margin: 0; }
.unit-rate { text-align: right; white-space: nowrap; }
.unit-rate strong { font-size: 1.15rem; }
.highlights { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.highlights li { background: color-mix(in srgb, var(--brand) 10%, white); color: var(--ink); border-radius: 999px; padding: .3rem .8rem; font-size: .88rem; font-weight: 600; }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 50rem) { .two-col { grid-template-columns: 1fr; } }
.panel { background: var(--paper); border-radius: var(--radius); padding: 1.25rem; box-shadow: 0 2px 18px #17242b0f; }
.whole-callout { border-left: 5px solid var(--brand); }
.logo { max-height: 56px; max-width: 200px; }

/* Calendar */
.calendar-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.calendar-head select { width: auto; }
.legend { margin-left: auto; font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: .3rem; }
.legend .day { width: 1rem; height: 1rem; display: inline-block; padding: 0; }
.months { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dow { font-size: .72rem; font-weight: 700; color: var(--muted); text-align: center; }
.day { text-align: center; padding: .4rem 0; border-radius: 8px; font-size: .88rem; }
.day.free { background: color-mix(in srgb, var(--brand) 22%, white); font-weight: 600; }
.day.taken { background: #cfd6da; color: #6b7880; text-decoration: line-through; }
.day.past { color: #b7c0c5; }

/* Demo */
#demo-banner { background: #17242b; color: #fff; text-align: center; padding: .5rem 1rem; font-size: .88rem; }
#demo-banner a { color: #9fe0d2; }
dialog { border: 0; border-radius: var(--radius); padding: 1.5rem; max-width: 30rem; box-shadow: 0 20px 60px #0005; }
dialog::backdrop { background: #17242b99; }
