:root {
  color-scheme: light;
  --ink: #171512;
  --muted: #67615a;
  --line: #e5dfd6;
  --soft: #faf7f1;
  --paper: #ffffff;
  --gold: #d79a1e;
  --gold-dark: #9f6811;
  --green: #225a47;
  --blue: #1f6373;
  --shadow: 0 24px 80px rgba(35, 30, 22, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 52px);
  color: #fff;
  transition: background 240ms ease, box-shadow 240ms ease, color 240ms ease;
}

.site-header.scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 32px rgba(40, 32, 22, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
}

.ghost-button,
.desktop-nav a,
.mobile-nav a,
.mobile-nav button {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.mobile-nav {
  position: fixed;
  top: 74px;
  left: 16px;
  right: 16px;
  z-index: 29;
  display: none;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.mobile-nav.open {
  display: grid;
  gap: 14px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 150px clamp(20px, 5vw, 70px) 64px;
  color: #fff;
  overflow: hidden;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowZoom 14s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 13, 12, 0.86), rgba(13, 13, 12, 0.25)),
    linear-gradient(0deg, rgba(13, 13, 12, 0.72), rgba(13, 13, 12, 0.05) 56%);
}

.hero-content {
  position: relative;
  width: min(740px, 100%);
  z-index: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
}

.hero-spark {
  position: absolute;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 28px rgba(215, 154, 30, 0.9);
  opacity: 0.78;
  pointer-events: none;
  animation: drift 8s ease-in-out infinite;
}

.hero-spark.one {
  left: 23%;
  top: 30%;
}

.hero-spark.two {
  right: 21%;
  top: 24%;
  animation-delay: -2.5s;
  background: #fff;
}

.hero-spark.three {
  right: 35%;
  bottom: 23%;
  animation-delay: -5s;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

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

.hero-content p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  color: #20170b;
  background: var(--gold);
  box-shadow: 0 14px 34px rgba(215, 154, 30, 0.36);
}

.secondary-button {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.hero .secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.primary-button {
  position: relative;
  overflow: hidden;
}

.primary-button::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.5), transparent 80%);
  transform: translateX(-120%);
  animation: buttonSheen 4.5s ease-in-out infinite;
  pointer-events: none;
}

.booking-summary {
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  bottom: 58px;
  z-index: 1;
  width: min(280px, calc(100% - 40px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
}

.booking-summary span,
.booking-summary small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
}

.booking-summary strong {
  display: block;
  margin: 4px 0 6px;
  font-size: 34px;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: #fff;
}

.quick-strip div {
  min-height: 116px;
  padding: 28px clamp(18px, 4vw, 44px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.quick-strip strong {
  display: block;
  color: var(--gold);
  font-size: 34px;
  animation: statPulse 3.8s ease-in-out infinite;
}

.quick-strip span {
  color: rgba(255, 255, 255, 0.76);
}

.section {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 5vw, 70px);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.booking-section,
.policy-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.section-copy p:not(.eyebrow),
.section-heading,
.booking-panel > div > p,
.policy-card li {
  color: var(--muted);
  line-height: 1.7;
}

.location-pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--green);
  background: #eef6f1;
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article,
.policy-card,
.social-card,
.contact-panel,
.booking-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(39, 31, 22, 0.08);
}

.feature-grid article {
  padding: 22px;
  overflow: hidden;
}

.feature-grid span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.gallery-section {
  background: #fff;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-auto-rows: 280px;
  gap: 12px;
}

.photo-tile {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #ddd;
  cursor: pointer;
}

.photo-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.34));
  opacity: 0;
  transition: opacity 320ms ease;
}

.photo-tile.large {
  grid-row: span 2;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.photo-tile:hover img {
  transform: scale(1.055);
}

.photo-tile:hover::after {
  opacity: 1;
}

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

.booking-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(22px, 4vw, 38px);
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

label small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  transition: border 180ms ease, box-shadow 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(215, 154, 30, 0.16);
}

textarea {
  resize: vertical;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.full-button {
  width: 100%;
}

.contact-panel {
  position: sticky;
  top: 100px;
  padding: 26px;
}

dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.bank-box {
  margin-top: 24px;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), #22201b);
}

.payment-after-submit {
  margin-top: 2px;
}

.bank-box span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.bank-box strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.bank-box p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.policy-section {
  grid-template-columns: 1fr 0.55fr;
}

.policy-card,
.social-card {
  padding: clamp(22px, 4vw, 36px);
}

.policy-card ul {
  margin: 0;
  padding-left: 20px;
}

.social-card {
  display: grid;
  gap: 14px;
}

.social-card a {
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(160px, 1fr));
  align-items: start;
  gap: 28px;
  padding: 28px clamp(20px, 5vw, 70px);
  color: #fff;
  background: var(--ink);
}

.site-footer img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.site-footer a {
  display: block;
  color: var(--gold);
  font-weight: 800;
  margin-top: 8px;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
}

.site-footer strong {
  display: block;
  margin: 8px 0;
  color: var(--gold);
  font-size: 20px;
}

.footer-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px !important;
  color: #fff !important;
}

.page-hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  padding: 150px clamp(20px, 5vw, 70px) 70px;
  color: #fff;
  overflow: hidden;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04);
  animation: slowZoom 15s ease-in-out infinite alternate;
}

.page-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(13, 13, 12, 0.84), rgba(13, 13, 12, 0.24)),
    linear-gradient(0deg, rgba(13, 13, 12, 0.72), rgba(13, 13, 12, 0.08));
}

.page-hero > div {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
}

.page-hero h1 {
  font-size: clamp(42px, 7vw, 82px);
}

.page-hero p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.detail-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.detail-copy p,
.rate-card p {
  color: var(--muted);
  line-height: 1.7;
}

.rate-card,
.contact-card,
.policy-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(39, 31, 22, 0.08);
}

.rate-card {
  position: sticky;
  top: 100px;
  padding: 26px;
}

.rate-card span,
.contact-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.rate-card strong {
  display: block;
  margin: 8px 0;
  font-size: 38px;
}

.amenity-band {
  background: #fff;
}

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

.amenity-grid article,
.contact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.amenity-grid p,
.contact-card p,
.policy-block p,
.policy-block li {
  color: var(--muted);
  line-height: 1.7;
}

.policy-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.policy-block {
  padding: clamp(22px, 4vw, 34px);
}

.policy-block ul {
  margin: 0;
  padding-left: 20px;
}

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

.contact-card h2 {
  font-size: clamp(23px, 3.3vw, 38px);
  overflow-wrap: anywhere;
}

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

.property-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(39, 31, 22, 0.08);
}

.property-image-gallery {
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
  border-radius: 12px 12px 0 0;
}
.property-image-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  height: 100%;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.property-image-track::-webkit-scrollbar {
  display: none;
}
.property-image-track img {
  scroll-snap-align: start;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.property-card div {
  padding: 18px;
}

.property-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.property-card p {
  color: var(--muted);
  line-height: 1.6;
}

.property-card strong {
  color: var(--green);
  font-size: 22px;
}

.floating-book {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: #1b1307;
  background: var(--gold);
  box-shadow: 0 18px 44px rgba(126, 78, 10, 0.34);
  font-weight: 800;
  animation: floatBook 3.4s ease-in-out infinite;
}

.floating-book span {
  font-size: 13px;
}

.floating-book strong {
  margin-top: -24px;
  font-size: 18px;
}

.lightbox,
.admin-modal {
  width: min(920px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.lightbox::backdrop,
.admin-modal::backdrop {
  background: rgba(13, 12, 10, 0.72);
  backdrop-filter: blur(7px);
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #0f0f0e;
}

.lightbox > button,
.modal-head button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
  font-size: 25px;
}

.lightbox-controls {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: #fff;
}

.lightbox-controls button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.admin-modal {
  padding: 24px;
}

.modal-head {
  position: relative;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.modal-head button {
  position: static;
  color: var(--ink);
  background: var(--soft);
}

.admin-list {
  display: grid;
  gap: 12px;
  max-height: 54vh;
  overflow: auto;
  margin-bottom: 18px;
}

.admin-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--soft);
}

.admin-item strong {
  display: block;
  margin-bottom: 6px;
}

.admin-item p {
  margin: 4px 0;
  color: var(--muted);
}

.admin-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(34, 90, 71, 0.92), rgba(23, 21, 18, 0.92)),
    url("assets/living-room.jpeg") center / cover fixed;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-login,
.admin-dashboard {
  width: min(760px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: clamp(24px, 5vw, 44px);
  animation: adminRise 500ms ease both;
}

.admin-login img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 22px;
}

.admin-login h1,
.admin-dashboard h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 6vw, 62px);
}

.admin-login p:not(.eyebrow),
.admin-error {
  color: var(--muted);
  line-height: 1.65;
}

.admin-login form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.admin-error {
  min-height: 24px;
  margin: 12px 0 0;
  color: #9b2f2f;
  font-weight: 800;
}

.admin-topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-topbar.compact h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.admin-divider {
  height: 1px;
  margin: 28px 0;
  background: var(--line);
}

.property-form {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.property-admin-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
}

.property-admin-item img {
  width: 120px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
}

.property-admin-item button {
  min-height: 38px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.page-list {
  max-height: 54vh;
  overflow: auto;
  margin-bottom: 18px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  max-width: 340px;
  padding: 14px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.reveal {
  transform: translateY(28px);
  opacity: 0;
  transition: transform 700ms ease, opacity 700ms ease;
}

.reveal.visible {
  transform: translateY(0);
  opacity: 1;
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(22px, -28px, 0) scale(1.4);
  }
}

@keyframes buttonSheen {
  0%,
  45% {
    transform: translateX(-120%);
  }
  70%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes statPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes floatBook {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes adminRise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .booking-summary {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 34px;
  }

  .quick-strip,
  .split-section,
  .booking-section,
  .policy-section,
  .booking-panel,
  .detail-section,
  .policy-detail,
  .contact-grid,
  .property-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    position: static;
  }

  .rate-card {
    position: static;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 230px;
  }

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

@media (max-width: 620px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand span {
    font-size: 14px;
  }

  .hero {
    min-height: 88vh;
    align-items: center;
    padding: 112px 18px 30px;
  }

  h1 {
    font-size: 44px;
    line-height: 0.98;
  }

  .page-hero {
    min-height: 68vh;
    padding: 116px 18px 44px;
  }

  .page-hero h1 {
    font-size: 42px;
  }

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

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(13, 13, 12, 0.84), rgba(13, 13, 12, 0.52)),
      linear-gradient(0deg, rgba(13, 13, 12, 0.76), rgba(13, 13, 12, 0.18) 62%);
  }

  .booking-summary {
    width: 100%;
    padding: 18px;
  }

  .booking-summary strong {
    font-size: 30px;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .floating-book {
    display: none;
  }

  .floating-book strong {
    font-size: 16px;
  }

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

  .quick-strip div {
    min-height: 96px;
    padding: 20px;
  }

  .feature-grid,
  .gallery-grid,
  .two-column,
  .amenity-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-auto-rows: 300px;
  }

  .photo-tile.large {
    grid-row: span 1;
  }

  .section {
    padding: 64px 18px;
  }

  .admin-topbar {
    display: grid;
  }

  .property-admin-item {
    grid-template-columns: 1fr;
  }

  .property-admin-item img {
    width: 100%;
    height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* UI Polishes & Enhancements */

/* Button Loading State */
.button-loading {
  position: relative !important;
  color: transparent !important;
  pointer-events: none !important;
  user-select: none !important;
}

.button-loading::before {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 20px !important;
  height: 20px !important;
  margin-left: -10px !important;
  margin-top: -10px !important;
  border: 2px solid rgba(0, 0, 0, 0.15) !important;
  border-top-color: currentColor !important;
  border-radius: 50% !important;
  animation: buttonSpinner 0.6s linear infinite !important;
  z-index: 10 !important;
}

/* For dark buttons with light loading spinners */
.primary-button.button-loading::before,
.floating-book.button-loading::before {
  border: 2px solid rgba(255, 255, 255, 0.25) !important;
  border-top-color: #20170b !important;
}

@keyframes buttonSpinner {
  to { transform: rotate(360deg); }
}

/* Skeleton Loading Screens */
.skeleton-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 140px;
  box-shadow: 0 18px 50px rgba(39, 31, 22, 0.08);
}

.skeleton-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.3) 20%,
    rgba(255, 255, 255, 0.6) 60%,
    rgba(255, 255, 255, 0)
  );
  animation: shimmer 1.6s infinite;
}

.skeleton-line {
  height: 16px;
  width: 100%;
  background: #eee;
  border-radius: 4px;
}

.skeleton-line.short {
  width: 50%;
}

.skeleton-line.title {
  height: 24px;
  width: 80%;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Admin Dashboard Grid Updates */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
  width: 100%;
}

.stat-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(35, 30, 22, 0.06);
}

.stat-card span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.stat-card strong {
  display: block;
  font-size: 38px;
  color: var(--ink);
  margin-top: 4px;
}

.admin-grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 42px);
  align-items: start;
  width: 100%;
}

/* Image Upload Preview */
.image-preview {
  margin-top: 10px;
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px dashed var(--line);
  background: var(--soft);
}

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

/* Badge States */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-available {
  background: #eef6f1;
  color: var(--green);
}

.badge-booked {
  background: #fdf2f2;
  color: #9b2f2f;
}

/* Responsive Dashboard Layout */
@media (max-width: 900px) {
  .admin-grid-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================= */
/* STRIPE-LIKE LIGHT THEME */
/* ========================================================= */

.admin-theme-dark {
  --admin-bg: #f7f9fc;
  --admin-surface: #ffffff;
  --admin-border: #e2e8f0;
  --admin-text: #1a1f36;
  --admin-muted: #697386;
  --admin-primary: #635bff;
  --admin-primary-hover: #0a2540;
  --admin-danger: #ed5f74;
  --admin-success: #00d924;
  background-color: var(--admin-bg);
  color: var(--admin-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.admin-glass-panel,
.glass-effect {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.05), 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Login Screen */
.admin-login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #f7f9fc;
}

.login-panel {
  width: 100%;
  max-width: 400px;
  padding: 48px 40px;
  text-align: center;
}

.admin-logo-glow {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.login-brand h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: #1a1f36;
}

.login-brand p {
  color: var(--admin-muted);
  margin-bottom: 32px;
  font-size: 14px;
}

.admin-form .form-group {
  margin-bottom: 20px;
  text-align: left;
}

.admin-form label {
  display: block;
  margin-bottom: 8px;
  color: #3c4257;
  font-size: 13px;
  font-weight: 600;
}

.badge-optional {
  display: inline-block;
  margin-left: 6px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: normal;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  color: #1a1f36;
  font-family: inherit;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  resize: vertical;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.2);
}

.admin-btn-primary {
  background: var(--admin-primary);
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.2s;
}

.admin-btn-primary:hover {
  background: var(--admin-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.12);
}

.admin-btn-secondary.outline {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  color: #3c4257;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.2s;
}

.admin-btn-secondary.outline:hover {
  border-color: #c1c9d2;
  color: #1a1f36;
}

.full-width {
  width: 100%;
}

.admin-error-text {
  color: var(--admin-danger);
  margin-top: 16px;
  font-size: 13px;
}

/* Dashboard Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--admin-surface);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
}

.sidebar-brand {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid var(--admin-border);
}

.sidebar-brand img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.sidebar-nav {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav .nav-item {
  padding: 10px 14px;
  border-radius: 6px;
  color: #3c4257;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
}

.sidebar-nav .nav-item:hover {
  background: #f7f9fc;
  color: #1a1f36;
}

.sidebar-nav .nav-item.active {
  background: #f3f3f8;
  color: var(--admin-primary);
  font-weight: 600;
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  padding: 48px;
  background: var(--admin-bg);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.admin-eyebrow {
  color: var(--admin-muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0 0 4px;
}

.admin-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #1a1f36;
  line-height: 1.2;
}

.admin-stats-row {
  display: flex;
  gap: 16px;
}

.admin-stat-card {
  padding: 16px 20px;
  min-width: 160px;
}

.stat-label {
  display: block;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 28px;
  font-weight: 600;
  color: #1a1f36;
}

.admin-grid-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.admin-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-section h2 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1f36;
  margin: 0;
}

.admin-list-container {
  padding: 24px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-form.glass-effect {
  padding: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--admin-muted);
  font-size: 12px;
  margin: 20px 0;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--admin-border);
}
.form-divider span {
  padding: 0 10px;
}

/* Updated Standard File Input */
.file-upload-wrapper {
  margin-top: 4px;
}
.file-upload-wrapper input[type="file"] {
  border: 1px solid var(--admin-border);
  padding: 8px;
  background: #fff;
  border-radius: 6px;
  width: 100%;
  color: #3c4257;
  font-size: 13px;
  cursor: pointer;
}
.file-upload-wrapper input[type="file"]::file-selector-button {
  background: #f7f9fc;
  border: 1px solid var(--admin-border);
  border-radius: 4px;
  padding: 4px 8px;
  margin-right: 12px;
  color: #3c4257;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.file-upload-wrapper input[type="file"]::file-selector-button:hover {
  background: #e2e8f0;
}

.upload-placeholder {
  display: none; /* Hide the old placeholder text */
}

.admin-image-preview img {
  width: 100%;
  border-radius: 6px;
  margin-top: 12px;
  border: 1px solid var(--admin-border);
}

.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }

/* Item Cards */
.admin-item-card {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.admin-item-card strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1a1f36;
  margin-bottom: 4px;
}

.admin-item-card p {
  color: #4f566b;
  margin: 4px 0;
  font-size: 13px;
}

.admin-item-card.property {
  display: flex;
  gap: 16px;
}

.admin-item-card.property img {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--admin-border);
}

.admin-item-card .actions {
  margin-top: 12px;
}

.btn-remove {
  background: transparent;
  color: var(--admin-danger);
  border: 1px solid rgba(237, 95, 116, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-remove:hover {
  background: #fff1f3;
  border-color: var(--admin-danger);
}

.admin-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1a1f36;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 100;
}

.admin-toast.show {
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1024px) {
  .admin-grid-columns {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    width: 200px;
  }
  .admin-main {
    margin-left: 200px;
  }
}

@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--admin-border);
  }
  .sidebar-brand {
    padding: 16px;
    justify-content: center;
  }
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 12px 16px;
    gap: 8px;
    white-space: nowrap;
  }
  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }
  .admin-main {
    margin-left: 0;
    padding: 20px;
  }
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .admin-stats-row {
    flex-direction: column;
    width: 100%;
  }
  .admin-stat-card {
    width: 100%;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .admin-item-card.property {
    flex-direction: column;
  }
  .admin-item-card.property img {
    width: 100%;
    height: 180px;
  }
  .login-panel {
    padding: 32px 24px;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }
}
