/*
 * +------------------------------------------------------------------------+
 * | Authored by: Franciou Groenewald and Ruawan Sylvester                  |
 * | Company    : Brand Nectar                                              |
 * | Date       : 25 August 2026                                            |
 * | Updated    : 29 August 2026                                            |
 * +------------------------------------------------------------------------+
 */

/*
  Y & Co. website styles
  ----------------------
  This is the only CSS file used by the website.

  Beginner editing guide:
  1. Change the main colours in the :root section below.
  2. Use the section comments to find a page or component.
  3. Mobile styles come first. Desktop changes are near the bottom.
*/

/* =========================================================
   1. COLOURS AND BASIC SETTINGS
   ========================================================= */
:root {
  --black: #0a0a0a;
  --text: #1d1d1d;
  --grey: #6d6d6d;
  --light-grey: #f3f3ef;
  --border: #ddddda;
  --white: #ffffff;
  --green: #17663a;
  --red: #9c2929;
  --container-width: 1200px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--white);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.1;
}

h1 {
  margin-bottom: 20px;
  font-size: 42px;
}

h2 {
  margin-bottom: 16px;
  font-size: 32px;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

p:last-child {
  margin-bottom: 0;
}

:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
}

/* =========================================================
   2. REUSABLE LAYOUT CLASSES
   ========================================================= */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site main {
  flex: 1;
}

.container {
  width: 92%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.section {
  padding: 70px 0;
}

.section--compact {
  padding: 50px 0;
}

.section--soft {
  background: var(--light-grey);
}

.section--dark {
  background: var(--black);
  color: var(--white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--grey);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

.section--dark .eyebrow,
.page-hero .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.lede {
  max-width: 700px;
  color: var(--grey);
  font-size: 18px;
  line-height: 1.7;
}

.section--dark .lede {
  color: rgba(255, 255, 255, 0.72);
}

.section-heading {
  display: grid;
  gap: 20px;
  margin-bottom: 40px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   3. HEADER AND NAVIGATION
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
}

.site-logo {
  width: 116px;
  flex-shrink: 0;
}

.site-logo img {
  width: 100%;
}

.desktop-nav {
  display: none;
}

.header-booking,
.header-bookings {
  display: none !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle,
.close-nav {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
}

.menu-toggle:hover,
.close-nav:hover {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.menu-toggle svg,
.close-nav svg {
  width: 22px;
  height: 22px;
}

.nav-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 190;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-overlay.open {
  visibility: visible;
  opacity: 1;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  width: 88%;
  max-width: 380px;
  height: 100vh;
  padding: 20px;
  overflow-y: auto;
  background: var(--white);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  transform: translateX(105%);
  transition: transform 0.3s ease;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav__logo {
  width: 112px;
}

.mobile-nav__links {
  display: grid;
  margin: 20px 0 30px;
}

.mobile-nav__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border-bottom: 1px solid var(--border);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  text-decoration: none;
}

.mobile-nav__links a::after {
  color: var(--grey);
  content: ">";
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}

.mobile-nav__links a[aria-current="page"] {
  font-weight: 700;
}

.mobile-nav__footer {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.mobile-nav__note {
  margin: 8px 0 0;
  color: var(--grey);
  font-size: 13px;
}

/* =========================================================
   4. BUTTONS AND LINKS
   ========================================================= */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.button--small {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 13px;
}

.button--light {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

.button--outline {
  background: transparent;
  color: var(--black);
}

.button--outline-light {
  border-color: rgba(255, 255, 255, 0.75);
  background: transparent;
  color: var(--white);
}

.button--danger {
  border-color: var(--red);
  background: transparent;
  color: var(--red);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
  box-shadow: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--black);
  font-weight: 700;
  text-underline-offset: 4px;
}

.text-link::after {
  content: ">";
}

.hero-actions,
.cta-panel__actions,
.form-actions,
.booking-confirmation__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* =========================================================
   5. SHARED HERO, CARDS, FORMS AND FOOTER
   ========================================================= */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 500px;
  overflow: hidden;
  background: #242424;
  color: var(--white);
}

.page-hero::before,
.page-hero::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: "";
}

.page-hero::before {
  z-index: 0;
  background-image: url("../assets/images/hero-house.jpg");
  background-position: center;
  background-size: cover;
  filter: grayscale(100%);
}

.page-hero::after {
  z-index: 1;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.3));
}

.hospitality-hero::before,
.about-hero::before {
  background-image: url("../assets/images/hero-house-old.jpg");
}

.page-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 760px;
  padding-top: 70px;
  padding-bottom: 70px;
}

.page-hero h1,
.page-hero p {
  color: var(--white);
}

.page-hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.card-grid {
  display: grid;
  gap: 20px;
}

.info-card {
  height: 100%;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
}

.info-card__number {
  display: block;
  margin-bottom: 40px;
  color: var(--grey);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.info-card p {
  color: var(--grey);
}

.cta-panel {
  display: grid;
  gap: 28px;
  padding: 34px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--black);
  color: var(--white);
}

.cta-panel h2 {
  color: var(--white);
}

.cta-panel p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
}

.form-shell {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}

.form-section {
  padding: 24px;
}

.form-section + .form-section {
  border-top: 1px solid var(--border);
}

.form-section__heading {
  margin-bottom: 24px;
}

.form-section__heading h2 {
  margin-bottom: 6px;
  font-size: 28px;
}

.form-section__heading p {
  margin-bottom: 0;
  color: var(--grey);
}

.form-grid {
  display: grid;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label,
.checkbox-field {
  font-size: 13px;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea,
.search-field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #c9c9c5;
  border-radius: 9px;
  background: var(--white);
  color: var(--text);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.search-field input:focus {
  border-color: var(--black);
  outline: 2px solid rgba(0, 0, 0, 0.12);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.form-actions {
  margin-bottom: 14px;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border-radius: 9px;
}

.form-status.is-visible {
  display: block;
}

.form-status--success {
  border: 1px solid #b9dcc4;
  background: #eef9f1;
  color: var(--green);
}

.form-status--error {
  border: 1px solid #e7bcbc;
  background: #fff2f2;
  color: var(--red);
}

.form-status .button {
  margin-top: 10px;
}

.site-footer {
  background: var(--black);
  color: var(--white);
}

.site-footer__top {
  display: grid;
  gap: 38px;
  padding-top: 58px;
  padding-bottom: 42px;
}

.footer-brand img {
  width: 122px;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 430px;
  color: rgba(255, 255, 255, 0.66);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column h2 {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.55);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-column a {
  color: var(--white);
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

/* =========================================================
   6. HOME PAGE
   ========================================================= */
.home-hero {
  background: var(--light-grey);
}

.home-hero__layout {
  display: grid;
}

.home-hero__copy {
  display: flex;
  align-items: center;
  padding: 60px 4%;
}

.home-hero__copy-inner {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.home-hero__media {
  position: relative;
  min-height: 430px;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent 50%), url("../assets/images/hero-house.jpg");
  background-position: center;
  background-size: cover;
  filter: grayscale(100%);
}

.home-hero__caption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  max-width: 440px;
  margin: 0;
  color: var(--white);
  font-size: 14px;
}

.home-actions__grid {
  display: grid;
  gap: 18px;
}

.home-action-card {
  position: relative;
  display: grid;
  gap: 28px;
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: var(--white);
  text-decoration: none;
}

.home-action-card:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.home-action-card h2 {
  color: var(--white);
  font-size: 28px;
}

.home-action-card p {
  color: rgba(255, 255, 255, 0.68);
}

.home-action-card__icon {
  width: 36px;
  filter: brightness(0) invert(1);
}

.home-action-card__arrow {
  position: absolute;
  top: 26px;
  right: 26px;
  font-size: 20px;
}

.home-categories {
  display: grid;
  gap: 18px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 330px;
  padding: 28px;
  overflow: hidden;
  border-radius: 16px;
  background-position: center;
  background-size: cover;
  color: var(--white);
  text-decoration: none;
}

.category-card::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.05));
  content: "";
}

.category-card h3,
.category-card p {
  position: relative;
  z-index: 1;
}

.category-card h3 {
  color: var(--white);
  font-size: 30px;
}

.category-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.75);
}

.category-card--property,
.category-card--hospitality {
  background-image: url("../assets/images/hero-house.jpg");
}

.category-card--development {
  background-image: url("../assets/images/hero-house-old.jpg");
}

.home-principles {
  display: grid;
  gap: 34px;
  align-items: center;
}

.home-principles__media {
  min-height: 420px;
  border-radius: 18px;
  background: url("../assets/images/hero-house-old.jpg") center / cover no-repeat;
  filter: grayscale(100%);
}

.home-principles__copy ul {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.home-principles__copy li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.home-principles__copy li:last-child {
  border-bottom: 1px solid var(--border);
}

.home-principles__copy li > span {
  color: var(--grey);
  font-size: 12px;
  font-weight: 700;
}

/* =========================================================
   7. PROPERTY PAGE
   ========================================================= */
.filter-bar {
  position: sticky;
  top: var(--header-height);
  z-index: 70;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.filter-bar__inner {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.filter-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.property-results {
  margin: -18px 0 26px;
  color: var(--grey);
  font-size: 13px;
}

.property-grid {
  display: grid;
  gap: 24px;
}

.property-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
}

.property-card[hidden] {
  display: none;
}

.property-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--light-grey);
}

.property-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.35s ease;
}

.property-card:hover .property-card__media img {
  transform: scale(1.03);
}

.property-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.property-card__body {
  padding: 22px;
}

.property-card__location {
  margin-bottom: 4px;
  color: var(--grey);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.property-card__body h2 {
  font-size: 28px;
}

.property-card__description {
  color: var(--grey);
}

.property-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.property-card__meta span {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--light-grey);
  color: var(--grey);
  font-size: 11px;
}

.property-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.property-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.property-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.form-readonly {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
}

.detail-hero__image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
}

.property-card--detail {
  border: none;
  padding: 0;
  background: transparent;
}

.property-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.property-card__price {
  display: grid;
  line-height: 1.2;
}

.property-card__price strong {
  font-size: 20px;
}

.property-card__price span {
  color: var(--grey);
  font-size: 12px;
}

/* =========================================================
   8. DEVELOPMENT, HOSPITALITY AND ABOUT PAGES
   ========================================================= */
.stats-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  padding: 22px;
  background: var(--white);
}

.stat strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
}

.stat span {
  color: var(--grey);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.split-feature {
  display: grid;
  gap: 34px;
  align-items: center;
}

.split-feature__media {
  min-height: 430px;
  border-radius: 18px;
  background: url("../assets/images/hero-house.jpg") center / cover no-repeat;
  filter: grayscale(100%);
}

.split-feature__media--alt {
  background-image: url("../assets/images/hero-house-old.jpg");
}

.split-feature__copy p {
  color: var(--grey);
}

.split-feature__copy .button {
  margin-top: 12px;
}

.process-list {
  display: grid;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 24px 0 24px 56px;
  border-top: 1px solid var(--border);
  counter-increment: process;
}

.process-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.process-list li::before {
  position: absolute;
  top: 25px;
  left: 0;
  color: var(--grey);
  content: "0" counter(process);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.process-list h3,
.process-list p {
  margin-bottom: 0;
}

.process-list p {
  max-width: 720px;
  color: var(--grey);
}

.project-grid {
  display: grid;
  gap: 20px;
}

.project-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 360px;
  padding: 24px;
  overflow: hidden;
  border-radius: 16px;
  background: url("../assets/images/hero-house.jpg") center / cover no-repeat;
  color: var(--white);
}

.project-card--alt {
  background-image: url("../assets/images/hero-house-old.jpg");
}

.project-card::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 65%);
  content: "";
}

.project-card > div {
  position: relative;
  z-index: 1;
}

.project-card h3 {
  color: var(--white);
}

.project-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.quote-panel {
  padding: 34px;
  border-left: 5px solid var(--black);
  background: var(--light-grey);
}

.quote-panel blockquote {
  max-width: 880px;
  margin: 0;
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.25;
}

.quote-panel p {
  margin: 20px 0 0;
  color: var(--grey);
}

.values-grid {
  display: grid;
  gap: 0;
}

.value-row {
  display: grid;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.value-row:last-child {
  border-bottom: 1px solid var(--border);
}

.value-row h3,
.value-row p {
  margin-bottom: 0;
}

.value-row p {
  color: var(--grey);
}

/* =========================================================
   9. BOOKING PAGE
   ========================================================= */
.booking-page,
.bookings-page,
.contact-page {
  background: var(--light-grey);
}

.booking-intro,
.bookings-header,
.contact-header {
  padding: 56px 0 30px;
}

.booking-intro__grid {
  display: grid;
  gap: 26px;
  align-items: end;
}

.booking-intro__note,
.prototype-note {
  padding: 16px;
  border-left: 3px solid var(--black);
  background: var(--white);
  color: var(--grey);
  font-size: 14px;
}

.booking-layout,
.contact-layout {
  display: grid;
  gap: 24px;
  align-items: start;
  padding-bottom: 70px;
}

.booking-summary {
  padding: 24px;
  border-radius: 16px;
  background: var(--black);
  color: var(--white);
}

.booking-summary h2 {
  color: var(--white);
  font-size: 26px;
}

.booking-summary__image {
  aspect-ratio: 16 / 10;
  margin-bottom: 20px;
  border-radius: 10px;
  background: url("../assets/images/hero-house.jpg") center / cover no-repeat;
  filter: grayscale(100%);
}

.booking-summary dl,
.booking-confirmation dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  margin: 0;
}

.booking-summary dt,
.booking-summary dd,
.booking-confirmation dt,
.booking-confirmation dd {
  margin: 0;
}

.booking-summary dt {
  color: rgba(255, 255, 255, 0.62);
}

.booking-summary dd {
  text-align: right;
}

.booking-summary__total {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

.booking-summary__small {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.booking-confirmation {
  display: none;
  margin-bottom: 70px;
  padding: 28px;
  border: 1px solid #b8ddc4;
  border-radius: 18px;
  background: #eff9f2;
}

.booking-confirmation.is-visible {
  display: block;
}

.booking-confirmation__reference {
  display: inline-block;
  margin: 8px 0 24px;
  padding: 9px 12px;
  border: 1px dashed var(--green);
  border-radius: 8px;
  color: var(--green);
  font-family: monospace;
  font-weight: 700;
}

.booking-confirmation dl {
  max-width: 560px;
  padding: 20px 0;
  border-top: 1px solid #cae7d2;
  border-bottom: 1px solid #cae7d2;
}

.booking-confirmation__actions {
  margin-top: 24px;
}

/* =========================================================
   10. MY BOOKINGS PAGE
   ========================================================= */
.bookings-toolbar {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
}

.search-field {
  position: relative;
}

.search-field input {
  padding-right: 44px;
}

.search-field::after {
  position: absolute;
  top: 50%;
  right: 15px;
  color: var(--grey);
  content: "Search";
  font-size: 11px;
  transform: translateY(-50%);
}

.bookings-count {
  margin: 14px 0 0;
  color: var(--grey);
  font-size: 13px;
}

.bookings-list {
  display: grid;
  gap: 16px;
  padding: 24px 0 70px;
}

.booking-card {
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
}

.booking-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.booking-card__reference {
  margin-bottom: 5px;
  color: var(--grey);
  font-family: monospace;
  font-size: 12px;
}

.booking-card h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.booking-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e8f6ed;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.booking-status--cancelled {
  background: #fff0f0;
  color: var(--red);
}

.booking-card__details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.booking-card__detail span {
  display: block;
  color: var(--grey);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.booking-card__detail strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.booking-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.booking-card__total {
  display: grid;
  line-height: 1.25;
}

.booking-card__total span {
  color: var(--grey);
  font-size: 11px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 330px;
  padding: 30px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: var(--white);
  text-align: center;
}

.empty-state__inner {
  max-width: 460px;
}

.empty-state p {
  color: var(--grey);
}

/* =========================================================
   11. CONTACT PAGE
   ========================================================= */
.contact-card {
  padding: 28px;
  border-radius: 18px;
  background: var(--black);
  color: var(--white);
}

.contact-card h2,
.contact-card h3 {
  color: var(--white);
}

.contact-card p {
  color: rgba(255, 255, 255, 0.68);
}

.contact-list {
  display: grid;
  gap: 16px;
  padding: 20px 0 0;
  margin: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
}

.contact-list li {
  display: grid;
  gap: 3px;
}

.contact-list span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-list a,
.contact-list strong {
  color: var(--white);
  text-decoration: none;
}

.contact-disclaimer {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.48) !important;
  font-size: 12px;
}

/* =========================================================
   12. TABLET LAYOUTS
   ========================================================= */
@media (min-width: 640px) {
  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 40px;
  }

  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-field--full {
    grid-column: 1 / -1;
  }

  .home-actions__grid,
  .project-grid,
  .property-grid,
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-row {
    grid-template-columns: 180px 1fr;
  }

  .bookings-toolbar {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .booking-card__details {
    grid-template-columns: repeat(4, 1fr);
  }

  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* =========================================================
   13. DESKTOP LAYOUTS
   ========================================================= */
@media (min-width: 900px) {
  h1 {
    font-size: 68px;
  }

  h2 {
    font-size: 48px;
  }

  .section {
    padding: 100px 0;
  }

  .section--compact {
    padding: 68px 0;
  }

  .section-heading {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: end;
    gap: 50px;
    margin-bottom: 58px;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
  }

  .desktop-nav a {
    position: relative;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  }

  .desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 1px;
    background: var(--black);
    content: "";
    transform: scaleX(0);
    transition: transform 0.2s ease;
  }

  .desktop-nav a:hover::after,
  .desktop-nav a[aria-current="page"]::after {
    transform: scaleX(1);
  }

  .header-booking,
  .header-bookings {
    display: inline-flex !important;
  }

  .header-bookings {
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  }

  .header-bookings:hover {
    text-decoration: underline;
  }

  .menu-toggle,
  .mobile-nav,
  .nav-overlay {
    display: none;
  }

  .page-hero {
    min-height: 620px;
  }

  .page-hero__content {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .cta-panel {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 54px;
  }

  .site-footer__top {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
  }

  .home-hero__layout {
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - var(--header-height));
  }

  .home-hero__copy {
    padding: 70px 8%;
  }

  .home-hero__media {
    min-height: 620px;
  }

  .home-categories {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-principles,
  .split-feature {
    grid-template-columns: repeat(2, 1fr);
    gap: 70px;
  }

  .split-feature--reverse .split-feature__media {
    order: 2;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .booking-intro__grid {
    grid-template-columns: 1.3fr 0.7fr;
  }

  .booking-layout {
    grid-template-columns: 1fr 340px;
  }

  .booking-summary,
  .contact-card {
    position: sticky;
    top: calc(var(--header-height) + 24px);
  }

  .contact-layout {
    grid-template-columns: 1fr 360px;
  }
}

/* =========================================================
   13b. ASSISTANT DESK
   ========================================================= */
.assistant-section {
  padding-bottom: 48px;
}

.assistant-approval {
  margin: 8px 0 0;
  color: var(--grey);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.assistant-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.assistant-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--light-grey);
}

.assistant-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.assistant-photo figcaption {
  padding: 8px 12px 0;
  font-size: 13px;
  color: var(--grey);
}

.assistant-photo .button {
  margin: 8px 12px 12px;
}

/* =========================================================
   13c. MANAGER DESK
   ========================================================= */
.manager-section {
  padding-bottom: 48px;
}

.manager-report-fields[hidden] {
  display: none;
}

.manager-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.manager-section .stats-grid {
  margin-top: 18px;
}

.manager-report-block {
  margin-top: 28px;
}

.manager-report-block h2 {
  margin-bottom: 12px;
}

.manager-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}

.manager-table {
  width: 100%;
  border-collapse: collapse;
}

.manager-table th,
.manager-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  white-space: nowrap;
}

.manager-table th {
  background: var(--light-grey);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.manager-table tr:last-child td {
  border-bottom: 0;
}

/* =========================================================
   14. LARGE DESKTOP LAYOUTS
   ========================================================= */
@media (min-width: 1200px) {
  .desktop-nav {
    gap: 30px;
  }

  .property-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Reduce animation for visitors who prefer less movement. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
