/*
Theme Name: Stay Twin Falls
Theme URI: https://staytwinfalls.com
Author: Stay Twin Falls
Description: Direct-booking theme for StayTwinFalls.com.
Version: 1.0.0
Text Domain: staytwinfalls
*/

:root {
  --ink: #14211f;
  --muted: #5f6d68;
  --forest: #163c35;
  --forest-2: #24574c;
  --canyon: #c6693d;
  --cream: #f5f0e7;
  --paper: #fffdf9;
  --line: #dfe4df;
  --shadow: 0 20px 60px rgba(20, 33, 31, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: #fff; padding: 12px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,253,249,.94); border-bottom: 1px solid rgba(20,33,31,.09); backdrop-filter: blur(14px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; font-weight: 850; letter-spacing: -.045em; font-size: 1.38rem; }
.brand span { color: var(--canyon); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { text-decoration: none; font-weight: 680; font-size: .95rem; }
.main-nav a:hover { color: var(--canyon); }
.nav-book { color: #fff !important; background: var(--forest); padding: 11px 18px; border-radius: 999px; }
.menu-toggle { display: none; border: 0; background: none; width: 46px; height: 46px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; }

.hero { position: relative; min-height: 690px; display: grid; align-items: end; overflow: hidden; background: var(--forest); }
.hero-media { position: absolute; inset: 0; display: grid; grid-template-columns: 1.25fr .75fr; }
.hero-media img { height: 100%; object-fit: cover; }
.hero-media img:last-child { border-left: 5px solid rgba(255,255,255,.35); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,25,22,.82) 0%, rgba(8,25,22,.42) 50%, rgba(8,25,22,.18) 100%); }
.hero-content { position: relative; z-index: 2; color: #fff; padding: 110px 0 74px; max-width: 750px; }
.eyebrow { margin: 0 0 14px; font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--canyon); }
.hero .eyebrow { color: #f3b08b; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.04em; }
h1 { font-size: clamp(3rem, 7.2vw, 6rem); margin-bottom: 20px; }
.hero-copy { max-width: 620px; font-size: 1.17rem; color: rgba(255,255,255,.9); margin: 0 0 30px; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; background: var(--canyon); color: #fff; font-weight: 800; text-decoration: none; cursor: pointer; }
.button:hover { transform: translateY(-1px); filter: brightness(.96); }
.button-secondary { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.55); }
.button-outline { color: var(--forest); border-color: var(--forest); background: transparent; }

.trust-strip { background: var(--forest); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 21px 24px; border-right: 1px solid rgba(255,255,255,.16); text-align: center; font-weight: 760; }
.trust-item:last-child { border-right: 0; }
.trust-item small { display: block; color: rgba(255,255,255,.65); font-weight: 550; }

.section { padding: 94px 0; }
.section-soft { background: var(--cream); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-head h2 { max-width: 740px; margin-bottom: 0; font-size: clamp(2.3rem, 5vw, 4.2rem); }
.section-head p { max-width: 470px; margin: 0; color: var(--muted); }
.property-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.property-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 35px rgba(20,33,31,.07); }
.property-card-image { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.property-card-image img { height: 100%; object-fit: cover; transition: transform .5s ease; }
.property-card:hover .property-card-image img { transform: scale(1.025); }
.rate-badge { position: absolute; left: 18px; bottom: 18px; background: #fff; padding: 9px 14px; border-radius: 999px; font-weight: 850; box-shadow: var(--shadow); }
.property-card-body { padding: 27px; }
.property-card h3 { font-size: 1.7rem; margin-bottom: 7px; }
.property-address { color: var(--muted); margin: 0 0 17px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 21px; }
.fact { background: var(--cream); border-radius: 999px; padding: 7px 11px; font-size: .82rem; font-weight: 750; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.no-cleaning { color: var(--forest-2); font-size: .9rem; font-weight: 800; }
.text-link { color: var(--canyon); font-weight: 850; text-decoration: none; }
.coming-card { grid-column: 1 / -1; min-height: 250px; padding: 44px; color: #fff; background: radial-gradient(circle at 85% 20%, rgba(198,105,61,.65), transparent 32%), var(--forest); display: flex; align-items: end; border-radius: var(--radius); }
.coming-card h3 { font-size: 2.3rem; margin-bottom: 8px; }
.coming-card p { margin: 0; color: rgba(255,255,255,.78); }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.value-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--forest); font-weight: 850; }
.value-card h3 { margin: 22px 0 9px; font-size: 1.3rem; }
.value-card p { color: var(--muted); margin: 0; }

.location-band { background: var(--canyon); color: #fff; }
.location-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.location-layout h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); margin-bottom: 18px; }
.drive-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.drive-item { padding: 18px; border: 1px solid rgba(255,255,255,.35); border-radius: 14px; }
.drive-item strong { display: block; font-size: 1.35rem; }

.property-hero { padding: 56px 0 34px; }
.breadcrumbs { font-size: .86rem; color: var(--muted); margin-bottom: 17px; }
.breadcrumbs a { color: inherit; }
.property-title-row { display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.property-title-row h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); margin-bottom: 12px; }
.property-subtitle { margin: 0; color: var(--muted); }
.property-rate { text-align: right; white-space: nowrap; }
.property-rate strong { display: block; font-size: 2rem; }
.property-rate span { color: var(--muted); font-size: .9rem; }
.gallery { display: grid; grid-template-columns: 1.35fr .65fr .65fr; grid-template-rows: 250px 250px; gap: 10px; border-radius: 22px; overflow: hidden; }
.gallery figure { margin: 0; overflow: hidden; background: var(--cream); }
.gallery figure:first-child { grid-row: 1 / 3; }
.gallery img { height: 100%; object-fit: cover; }
.property-main { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 64px; align-items: start; }
.property-content h2 { font-size: 2.1rem; margin-bottom: 15px; }
.lead { font-size: 1.14rem; color: var(--muted); }
.amenities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 26px 0 42px; padding: 0; list-style: none; }
.amenities li { border-bottom: 1px solid var(--line); padding: 0 0 12px 28px; position: relative; }
.amenities li::before { content: "✓"; position: absolute; left: 0; color: var(--canyon); font-weight: 900; }
.policy-box { padding: 25px; background: var(--cream); border-radius: 17px; margin-top: 26px; }
.policy-box h3 { margin-bottom: 10px; }
.booking-card { position: sticky; top: 100px; padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.booking-card h2 { font-size: 1.45rem; margin-bottom: 6px; }
.booking-card .rate-line { color: var(--muted); margin-top: 0; }
.booking-status { padding: 22px; border-radius: 13px; background: var(--cream); color: var(--muted); margin: 20px 0; }
.price-note { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 12px 0 0; font-size: .9rem; }
.price-note + .price-note { border-top: 0; }

.booking-card .booking_form, .booking-card .wpbc_booking_form_structure { margin-top: 20px; }
.booking-card input, .booking-card select, .booking-card textarea { width: 100%; min-height: 46px; border: 1px solid #c9d1cc; border-radius: 9px; padding: 9px 11px; }
.booking-card input[type="submit"], .booking-card button { border: 0; background: var(--canyon); color: #fff; font-weight: 800; cursor: pointer; }

.policies-page { max-width: 880px; padding: 74px 0 100px; }
.policies-page h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
.policy-section { padding: 28px 0; border-top: 1px solid var(--line); }
.policy-section h2 { font-size: 1.6rem; }
.policy-section ul { padding-left: 22px; }

.site-footer { padding: 54px 0 24px; background: #0f2823; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 40px; }
.footer-brand { font-size: 1.55rem; font-weight: 850; letter-spacing: -.04em; }
.footer-copy { color: rgba(255,255,255,.67); max-width: 470px; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: rgba(255,255,255,.82); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.55); font-size: .84rem; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 76px 0 auto; display: none; padding: 26px 20px 32px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 8px 0; font-size: 1.05rem; }
  .nav-book { text-align: center; padding: 13px 18px !important; }
  .hero { min-height: 640px; }
  .hero-media { grid-template-columns: 1fr; }
  .hero-media img:last-child { display: none; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.16); }
  .section-head, .property-title-row { align-items: start; flex-direction: column; }
  .property-rate { text-align: left; }
  .property-main { grid-template-columns: 1fr; }
  .booking-card { position: static; }
  .location-layout { grid-template-columns: 1fr; gap: 35px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 26px, 1180px); }
  .hero { min-height: 610px; }
  .hero-content { padding: 85px 0 46px; }
  h1 { font-size: 3rem; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 28px; }
  .property-grid, .value-grid { grid-template-columns: 1fr; }
  .coming-card { grid-column: auto; min-height: 300px; padding: 28px; }
  .card-footer { align-items: start; flex-direction: column; }
  .trust-item { padding: 17px 8px; font-size: .9rem; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 270px 150px 150px; }
  .gallery figure:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery figure:nth-child(n+4) { display: none; }
  .amenities { grid-template-columns: 1fr; }
  .drive-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

