:root {
  --bg: #f5eddf;
  --text: #17191d;
  --muted: #71685b;
  --line: #e6d8c2;
  --primary: #173b2b;
  --primary-dark: #0d261b;
  --surface: #fffdf8;
  --accent: #a97d3c;
  --accent-soft: #fbf3e6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(245, 237, 223, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  filter: drop-shadow(0 10px 18px rgba(13, 38, 27, 0.18));
}

.nav {
  display: flex;
  gap: 18px;
  color: #2e302e;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--primary);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(48px, 8vw, 104px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(245, 237, 223, 0.55) 0%, rgba(245, 237, 223, 0.24) 45%, rgba(245, 237, 223, 0.04) 100%),
    url("hero-resort-mar.png") center / cover no-repeat;
}

.hero-content {
  max-width: 760px;
  text-shadow: 0 2px 16px rgba(255, 253, 248, 0.86);
}

.hero h1 {
  color: #0f241b;
}

.hero .eyebrow {
  color: #123524;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 1;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.08;
}

h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.18rem;
}

.hero-text {
  max-width: 620px;
  margin: 22px 0 0;
  color: #2e302e;
  font-size: 1.15rem;
  font-weight: 600;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--primary);
  color: #fff;
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.section {
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 clamp(18px, 5vw, 72px) clamp(18px, 5vw, 36px);
}

.quick-actions a {
  display: grid;
  gap: 6px;
  min-height: 118px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
  text-decoration: none;
  box-shadow: 0 16px 38px rgba(23, 25, 29, 0.06);
}

.quick-actions strong {
  color: var(--primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.quick-actions span {
  color: var(--muted);
}

.search-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  margin: 0 clamp(18px, 5vw, 72px) clamp(18px, 5vw, 48px);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 50px rgba(23, 25, 29, 0.08);
}

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

.search-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}

.search-tabs span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.search-tabs .active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.property-search label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.property-search select,
.property-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.register-property .section-heading p {
  max-width: 720px;
  color: var(--muted);
}

.property-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 920px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(23, 25, 29, 0.08);
}

.property-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.property-form input,
.property-form select,
.property-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.property-form input[type="file"] {
  padding: 10px;
}

.property-form textarea {
  resize: vertical;
}

.property-form small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.property-form .full,
.property-form button {
  grid-column: 1 / -1;
}

.property-form button {
  border: 0;
  cursor: pointer;
}

.property-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
}

.property-form .consent input {
  width: auto;
  margin-top: 4px;
}

.success-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(245, 237, 223, 0.82), rgba(245, 237, 223, 0.36)),
    url("hero-resort-mar.png") center / cover no-repeat;
}

.success-wrap {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(24px, 6vw, 72px);
}

.success-card {
  max-width: 720px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 52px);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 24px 60px rgba(23, 25, 29, 0.16);
}

.success-card h1 {
  font-size: clamp(2.1rem, 6vw, 4rem);
}

.success-card p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

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

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

.property-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(23, 25, 29, 0.08);
}

.property-image {
  min-height: 190px;
  background:
    linear-gradient(135deg, rgba(13, 38, 27, 0.18), rgba(169, 125, 60, 0.18)),
    linear-gradient(135deg, #d8c8b8, #f6efe4);
}

.property-one {
  background:
    linear-gradient(135deg, rgba(13, 38, 27, 0.18), rgba(169, 125, 60, 0.22)),
    linear-gradient(135deg, #cfc1ae, #fbf3e6);
}

.property-two {
  background:
    linear-gradient(135deg, rgba(13, 38, 27, 0.16), rgba(169, 125, 60, 0.18)),
    linear-gradient(135deg, #e3d5c1, #ffffff);
}

.property-three {
  background:
    linear-gradient(135deg, rgba(13, 38, 27, 0.22), rgba(169, 125, 60, 0.14)),
    linear-gradient(135deg, #d9ccb9, #f5eddf);
}

.property-content {
  padding: 20px;
}

.property-content p {
  color: var(--muted);
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.property-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.property-content strong {
  color: var(--primary);
}

.property-image.has-photo {
  background-position: center;
  background-size: cover;
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  background: var(--primary-dark);
  color: #fff;
}

.stats div {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 16px;
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}

.stats span {
  color: #e9dfd0;
}

.card {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.card p,
.split p,
.contact p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.about-section {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
}

.about-heading {
  max-width: 780px;
}

.about-heading h2 {
  margin-bottom: 0;
}

.about-content {
  align-items: center;
}

.split p {
  margin: 0;
  font-size: 1.08rem;
}

.about-text {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.about-text p {
  margin: 0;
}

.about-photo {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(23, 25, 29, 0.08);
}

.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: clamp(18px, 5vw, 72px);
  padding: clamp(28px, 5vw, 48px);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-dark), #214b38);
  color: #fff;
}

.contact .eyebrow,
.contact p {
  color: #e9dfd0;
}

.contact p {
  max-width: 620px;
  margin-bottom: 0;
}

.contact .button.primary {
  flex: 0 0 auto;
  background: var(--accent);
  color: #271c04;
}

.contact-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.owner-page {
  min-height: 100vh;
}

.owner-hero {
  padding: clamp(48px, 8vw, 88px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(245, 237, 223, 0.88), rgba(245, 237, 223, 0.54)),
    url("hero-resort-mar.png") center / cover no-repeat;
}

.owner-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.1rem;
}

.owner-form {
  max-width: 1100px;
}

.form-note {
  grid-column: 1 / -1;
  border-left: 4px solid var(--accent);
  padding: 14px 16px;
  background: var(--accent-soft);
  color: var(--muted);
  font-weight: 700;
}

.panel-wrap {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 5vw, 72px);
}

.panel-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(23, 25, 29, 0.08);
}

.login-box {
  max-width: 520px;
}

.hidden {
  display: none !important;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.panel-list {
  display: grid;
  gap: 12px;
}

.panel-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.panel-item strong {
  color: var(--primary);
}

.panel-item p {
  margin: 0;
  color: var(--muted);
}

.danger {
  border: 1px solid #b77b6a;
  background: #fff8f4;
  color: #7b2e1d;
}

@media (max-width: 820px) {
  .topbar,
  .footer,
  .contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .split,
  .grid,
  .properties,
  .quick-actions,
  .stats,
  .search-band,
  .property-search,
  .property-form {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 4.2rem);
  }
}
