/*
Theme Name: Jathan Direct Stays
Theme URI: https://bnb.jathanproperties.com
Author: Codex
Description: Direct booking theme for Jathan Properties with property listings, booking search, and admin property fields.
Version: 3.0.12
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: shortstay-theme
*/

:root {
  --text: #181512;
  --muted: #5e5a54;
  --line: #d9d2c8;
  --paper: #ffffff;
  --soft: #f4f1ec;
  --accent: #b5651d;
  --accent-dark: #7c4217;
  --ink: #242424;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  width: auto;
  max-width: 220px;
  max-height: 58px;
  object-fit: contain;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.05;
}

.main-nav,
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #2d2a25;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.hero {
  min-height: 620px;
  margin: 0;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(12, 10, 8, 0.62), rgba(12, 10, 8, 0.16)), url("assets/images/p01_01_X5.png") center / cover no-repeat;
}

.hero-content {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto 74px;
  color: #fff;
  text-align: center;
}

.eyebrow,
.price {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 500;
  line-height: 1.02;
}

.hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 18px auto 28px;
  font-size: clamp(17px, 2vw, 22px);
}

.solid-button,
.outline-button,
.search-button,
.book-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 11px 18px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.outline-button,
.book-button {
  background: #fff;
  color: var(--accent-dark);
}

.availability {
  width: min(1040px, calc(100% - 40px));
  margin: -42px auto 70px;
  position: relative;
  z-index: 5;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.availability h2,
.intro h2,
.trust-band h2,
.single-summary h1,
.booking-panel h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
}

.availability h2 {
  text-align: center;
}

.search-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 16px;
}

label,
.field label {
  display: block;
  margin-bottom: 5px;
  color: #312e2a;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: #2d2a25;
  font: inherit;
  padding: 9px 12px;
}

.search-button {
  width: 100%;
}

.intro {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto 54px;
  text-align: center;
}

.archive-hero {
  width: min(860px, calc(100% - 40px));
  margin: 70px auto 38px;
  text-align: center;
  display: grid;
  justify-items: center;
}

.archive-hero h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 500;
  line-height: 1.05;
  text-align: center;
}

.archive-hero p:not(.eyebrow) {
  margin: 0 auto;
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
}

.intro h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.properties {
  margin: 0;
}

.property-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 42%) minmax(0, 470px);
  justify-content: center;
  gap: 30px;
  padding: 70px 20px;
  background: #fff;
}

.property-card:nth-child(even) {
  background: var(--soft);
}

.property-image {
  align-self: center;
  aspect-ratio: 1.42 / 1;
  overflow: hidden;
  border: 1px solid #bdb6ab;
  background: #eee;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-body {
  align-self: center;
}

.property-body h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.02;
}

.property-subtitle {
  margin: 4px 0 18px;
  font-size: 19px;
  line-height: 1.18;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.facts > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(181, 101, 29, 0.24);
  background: rgba(244, 241, 236, 0.8);
}

.fact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--accent-dark);
}

.fact-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.single-summary .facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.single-summary .facts > span {
  min-height: 104px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 16px 10px;
  border-color: rgba(181, 101, 29, 0.28);
  background: rgba(255, 252, 248, 0.94);
  box-shadow: 0 12px 26px rgba(43, 31, 20, 0.06);
  text-align: center;
}

.single-summary .fact-icon,
.single-summary .fact-icon svg {
  width: 32px;
  height: 32px;
}

.description {
  margin: 0 0 18px;
  color: #2d2a25;
  font-size: 15px;
  line-height: 1.36;
}

.book-button {
  min-height: 35px;
  padding: 8px 14px;
  font-size: 10px;
}

.trust-band {
  width: min(var(--max), calc(100% - 40px));
  margin: 64px auto 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-band p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.google-reviews {
  width: min(var(--max), calc(100% - 40px));
  margin: 64px auto 84px;
  scroll-margin-top: 96px;
}

.reviews-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.reviews-header h2 {
  max-width: 680px;
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.08;
}

.reviews-header p:not(.eyebrow) {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 240px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 34px rgba(43, 31, 20, 0.06);
}

.review-card h3,
.review-card p {
  margin: 0;
}

.review-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
}

.review-card p:not(.review-rating) {
  color: #332f29;
  line-height: 1.55;
}

.review-rating {
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 800;
}

.review-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.site-main,
.property-single {
  width: min(var(--max), calc(100% - 40px));
  margin: 52px auto 88px;
}

.single-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 38px;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 42px;
}

.property-copy {
  max-width: 720px;
  font-size: 18px;
}

.booking-panel {
  align-self: start;
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--soft);
  box-shadow: 0 18px 36px rgba(43, 31, 20, 0.07);
}

.booking-form {
  display: grid;
  gap: 14px;
}

.booking-message {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent-dark);
  font-weight: 700;
}

.booking-small {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.booking-form textarea {
  resize: vertical;
}

.property-gallery-slider {
  width: 100%;
  margin: 0;
}

.gallery-main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eee;
  border: 1px solid rgba(181, 101, 29, 0.18);
}

.gallery-slide-button {
  width: 100%;
  height: 100%;
  display: none;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  padding: 0;
}

.gallery-slide-button.is-active {
  display: block;
}

.gallery-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
  padding: 0;
  transform: translateY(-50%);
}

.gallery-prev {
  left: 16px;
}

.gallery-next {
  right: 16px;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumb {
  width: 92px;
  min-width: 92px;
  height: 66px;
  min-height: 66px;
  overflow: hidden;
  border: 2px solid transparent;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.gallery-thumb.is-active {
  border-color: var(--accent);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 64px 84px;
  background: rgba(13, 10, 8, 0.94);
}

.lightbox-image {
  width: min(100%, 1280px);
  max-height: calc(100vh - 140px);
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  cursor: pointer;
  line-height: 1;
  letter-spacing: 0;
}

.lightbox-close {
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0 0 3px;
  font-size: 34px;
}

.lightbox-nav {
  top: 50%;
  width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 0 0 5px;
  font-size: 42px;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-count {
  position: fixed;
  bottom: 22px;
  left: 50%;
  margin: 0;
  color: #fff;
  font-weight: 700;
  transform: translateX(-50%);
}

.checkout-page {
  width: min(1120px, calc(100% - 40px));
  margin: 54px auto 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 34px;
  align-items: stretch;
}

.checkout-summary {
  min-height: 590px;
  display: flex;
  align-items: end;
  padding: 42px;
  background-position: center;
  background-size: cover;
  color: #fff;
}

.checkout-copy {
  max-width: 620px;
}

.checkout-copy .eyebrow {
  color: #f2b66d;
}

.checkout-summary h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 500;
  line-height: 1.02;
}

.checkout-summary p:not(.eyebrow) {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: 19px;
  line-height: 1.42;
}

.payment-methods {
  display: grid;
  gap: 18px;
  align-content: start;
}

.checkout-card {
  padding: 26px;
  border: 1px solid var(--line);
  background: #fff;
}

.checkout-card h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
}

.checkout-card p {
  margin: -6px 0 16px;
  color: var(--muted);
}

.checkout-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #e6b7a6;
  background: #fff7f3;
  color: #7c2d12;
  font-weight: 700;
}

.checkout-alert span {
  display: block;
  margin-top: 4px;
  color: #5e5a54;
  font-weight: 400;
}

.checkout-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.checkout-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.checkout-card dt {
  color: var(--muted);
}

.checkout-card dd {
  margin: 0;
  font-weight: 700;
}

.checkout-total dd {
  color: var(--accent-dark);
  font-size: 24px;
}

.payment-methods form {
  display: grid;
  gap: 14px;
}

.payment-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  padding: 16px;
  text-align: left;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.payment-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.payment-brand {
  width: 140px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1;
}

.payment-brand-stripe {
  background: #635bff;
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.payment-brand-paypal {
  gap: 0;
  border: 1px solid #d5d9e0;
  background: #fff;
  font-size: 24px;
  font-weight: 800;
}

.payment-brand-paypal > span:first-child {
  color: #003087;
}

.payment-brand-paypal > span:last-child {
  color: #009cde;
}

.payment-card > span:last-child {
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #333;
  font-size: 14px;
}

.footer-nav,
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.empty-content {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto 64px;
  text-align: center;
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
  }

  .nav-wrap {
    min-height: 66px;
  }

  .custom-logo {
    max-width: 190px;
    max-height: 52px;
  }

  .main-nav {
    display: none;
  }

  .search-form,
  .property-card,
  .single-hero,
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .property-card {
    gap: 22px;
    padding: 48px 20px;
  }

  .property-body {
    width: min(100%, 620px);
    margin: 0 auto;
  }

  .checkout-page {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    min-height: 440px;
  }

  .booking-panel {
    position: static;
  }

  .trust-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .reviews-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .site-header {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  }

  .nav-wrap {
    width: calc(100% - 20px);
    min-height: 60px;
    justify-content: flex-start;
    gap: 12px;
  }

  .brand {
    max-width: 190px;
    min-width: 0;
  }

  .custom-logo {
    max-width: 178px;
    max-height: 48px;
  }

  .brand-text {
    font-size: 20px;
  }

  .hero {
    min-height: 480px;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-bottom: 44px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .availability {
    width: calc(100% - 24px);
    margin: -24px auto 42px;
    padding: 20px;
  }

  .intro,
  .archive-hero {
    width: calc(100% - 28px);
  }

  .archive-hero {
    margin: 40px auto 24px;
  }

  .archive-hero h1,
  .intro h2 {
    font-size: clamp(30px, 10vw, 40px);
  }

  .intro p,
  .archive-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .property-card {
    gap: 18px;
    padding: 34px 14px;
  }

  .property-body h2 {
    font-size: clamp(28px, 9vw, 36px);
  }

  .property-subtitle {
    font-size: 17px;
  }

  .facts {
    gap: 8px;
  }

  .facts > span {
    font-size: 12px;
  }

  .footer-inner {
    width: calc(100% - 28px);
    align-items: flex-start;
    flex-direction: column;
  }

  .checkout-page {
    width: calc(100% - 24px);
    margin-top: 28px;
    gap: 18px;
  }

  .property-single {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    margin: 0 auto 56px;
  }

  .property-single * {
    max-width: 100%;
  }

  .single-hero {
    display: block;
    width: 100%;
    gap: 26px;
    margin-bottom: 30px;
  }

  .property-gallery-slider {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
  }

  .single-summary,
  .booking-layout {
    width: auto;
    margin-left: 14px;
    margin-right: 14px;
  }

  .single-summary {
    padding-top: 28px;
  }

  .single-summary h1 {
    font-size: clamp(31px, 10vw, 42px);
    overflow-wrap: anywhere;
  }

  .single-summary > p:not(.price) {
    font-size: 15px;
  }

  .single-summary .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .single-summary .facts > span {
    width: 100%;
    min-width: 0;
    min-height: 82px;
    padding: 12px 8px;
    box-shadow: 0 8px 18px rgba(43, 31, 20, 0.04);
    overflow: hidden;
    overflow-wrap: anywhere;
  }

  .single-summary .fact-icon,
  .single-summary .fact-icon svg {
    width: 24px;
    height: 24px;
  }

  .single-summary .fact-icon {
    flex-shrink: 0;
  }

  .gallery-main {
    aspect-ratio: 4 / 3;
    border-left: 0;
    border-right: 0;
  }

  .gallery-nav {
    width: 38px;
    height: 38px;
    min-height: 38px;
    font-size: 28px;
  }

  .gallery-prev {
    left: 10px;
  }

  .gallery-next {
    right: 10px;
  }

  .gallery-thumbs {
    width: auto;
    gap: 8px;
    margin: 10px 8px 0;
    overscroll-behavior-inline: contain;
  }

  .gallery-thumb {
    width: 70px;
    min-width: 70px;
    height: 50px;
    min-height: 50px;
  }

  .property-copy {
    max-width: 100%;
    font-size: 16.5px;
    line-height: 1.52;
    overflow-wrap: break-word;
  }

  .property-copy h1,
  .property-copy h2,
  .property-copy h3 {
    line-height: 1.18;
  }

  .booking-panel {
    padding: 20px;
  }

  .checkout-summary,
  .checkout-card {
    padding: 22px;
  }

  .checkout-summary {
    min-height: 380px;
  }

  .checkout-summary h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .payment-card {
    grid-template-columns: 1fr;
  }

  .payment-brand {
    width: 132px;
  }

  .trust-band {
    width: calc(100% - 28px);
    margin: 42px auto 54px;
  }

  .google-reviews {
    width: calc(100% - 28px);
    margin: 42px auto 56px;
  }

  .reviews-header {
    gap: 18px;
  }

  .reviews-header h2 {
    font-size: clamp(30px, 10vw, 40px);
  }

  .reviews-header p:not(.eyebrow) {
    font-size: 16px;
  }

  .review-card {
    min-height: auto;
    padding: 18px;
  }

  .gallery-lightbox {
    padding: 58px 18px;
  }

  .lightbox-image {
    max-height: calc(100vh - 124px);
  }

  .lightbox-nav {
    width: 46px;
    height: 46px;
    min-height: 46px;
    font-size: 34px;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }
}
