:root {
  --charcoal: #4a4a4a;
  --green: #2f4f4f;
  --gold: #baa27e;
  --mist: #f5f5f5;
  --ink: #202525;
  --paper: #ffffff;
  --line: rgba(47, 79, 79, 0.16);
  --shadow: 0 24px 70px rgba(17, 27, 27, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: Lato, Arial, sans-serif;
}

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px clamp(18px, 4vw, 58px);
  background: rgba(245, 245, 245, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

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

.brand span {
  color: var(--green);
  font: 900 0.7rem/1 Montserrat, Arial, sans-serif;
  text-align: left;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--green);
  font-weight: 900;
  font-size: 0.92rem;
}

.language-switcher {
  display: grid;
  grid-template-columns: repeat(2, 34px);
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.language-option {
  width: 34px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: var(--green);
  background: transparent;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 900;
}

.language-option.active {
  color: var(--paper);
  background: var(--green);
}

.nav a,
.nav-login,
.text-button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 900;
}

.nav-login {
  padding: 10px 16px;
  border: 1px solid var(--gold);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 150px clamp(18px, 5vw, 78px) 36px;
  overflow: hidden;
  color: var(--paper);
  background: var(--green);
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=2200&q=85") center / cover;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(20, 36, 36, 0.9), rgba(47, 79, 79, 0.58) 48%, rgba(25, 39, 39, 0.18)),
    linear-gradient(0deg, rgba(18, 30, 30, 0.42), transparent 52%);
}

.hero-content {
  position: relative;
  max-width: 800px;
  padding-bottom: 132px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0;
  font: 900 0.78rem Montserrat, Arial, sans-serif;
}

h1,
h2,
h3 {
  font-family: Montserrat, Arial, sans-serif;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 7.4vw, 7rem);
  line-height: 0.88;
}

.hero-reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: heroReveal 800ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-content h1 {
  animation-delay: 120ms;
}

.hero-slogan {
  animation-delay: 240ms;
}

.hero-copy {
  animation-delay: 340ms;
}

.hero-actions {
  opacity: 0;
  transform: translateY(18px);
  animation: heroReveal 800ms 460ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

h2 {
  color: var(--green);
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.95;
}

h3 {
  color: var(--green);
  font-size: 1.16rem;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-slogan {
  margin: 18px 0 0;
  color: var(--gold);
  font: 900 0.78rem Montserrat, Arial, sans-serif;
}

.hero-actions,
.filters,
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn,
.quick-search button,
.filter {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover,
.quick-search button:hover,
.filter:hover,
.nav-login:hover {
  transform: translateY(-1px);
}

.primary,
.quick-search button {
  color: var(--paper);
  background: var(--green);
}

.ghost {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.slim {
  color: var(--green);
  background: var(--mist);
  border: 1px solid var(--line);
}

.quick-search {
  position: absolute;
  left: clamp(18px, 5vw, 78px);
  right: clamp(18px, 5vw, 78px);
  bottom: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  padding: 14px;
  background: rgba(245, 245, 245, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--charcoal);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(186, 162, 126, 0.24);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-band div {
  padding: 28px clamp(18px, 5vw, 78px);
  background: var(--paper);
}

.trust-band strong {
  display: block;
  color: var(--green);
  font: 900 2rem Montserrat, Arial, sans-serif;
}

.trust-band span {
  color: var(--charcoal);
}

.section,
.services,
.contact {
  padding: 96px clamp(18px, 5vw, 78px);
}

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

.section-heading p:not(.eyebrow),
.contact p {
  color: var(--charcoal);
  font-size: 1.08rem;
  line-height: 1.65;
}

.filter {
  color: var(--green);
  background: var(--paper);
  border: 1px solid var(--line);
}

.filter.active {
  color: var(--paper);
  background: var(--green);
}

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

.property-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(28, 44, 44, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.property-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(28, 44, 44, 0.14);
}

.property-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--green);
}

.property-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.property-meta,
.property-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.property-meta span,
.property-specs span,
.badge {
  padding: 6px 10px;
  color: var(--green);
  background: rgba(186, 162, 126, 0.18);
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.78rem;
}

.price {
  color: var(--green);
  font: 900 1.4rem Montserrat, Arial, sans-serif;
}

.description {
  min-height: 72px;
  color: var(--charcoal);
  line-height: 1.55;
}

.services {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) 1.35fr;
  gap: clamp(28px, 5vw, 72px);
  background: var(--green);
}

.services h2,
.services h3 {
  color: var(--paper);
}

.service-panel {
  position: sticky;
  top: 120px;
  align-self: start;
}

.service-list {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.service-list article {
  padding: 30px;
  background: rgba(255, 255, 255, 0.08);
}

.service-list span {
  color: var(--gold);
  font-weight: 900;
}

.service-list p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
}

.mayan-group {
  position: relative;
  min-height: min(76vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 80px clamp(18px, 6vw, 96px);
  color: var(--paper);
  background: var(--green);
}

.mayan-group-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(21, 37, 37, 0.94), rgba(31, 52, 52, 0.7) 52%, rgba(31, 52, 52, 0.18)),
    url("https://mayanwheelsrentacar.com/web/wp-content/uploads/2023/08/istockphoto-1167979035-170667a-1.jpg") center / cover;
  transform: scale(1.01);
  transition: transform 900ms ease;
}

.mayan-group:hover .mayan-group-media {
  transform: scale(1.035);
}

.mayan-group-content {
  position: relative;
  z-index: 1;
  max-width: 790px;
}

.mayan-group h2 {
  color: var(--paper);
  font-size: clamp(3rem, 7vw, 7.2rem);
}

.mayan-group-lead {
  max-width: 710px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.6;
}

.wheels-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.wheels-highlights span {
  padding: 8px 11px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  font-size: 0.83rem;
  font-weight: 900;
}

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

.wheels-primary {
  color: var(--green);
  background: var(--paper);
}

.wheels-secondary {
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.contact {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: clamp(28px, 5vw, 74px);
  background: var(--paper);
}

.contact-directory {
  display: grid;
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.contact-card:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-card-heading span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card-heading h3 {
  font-size: 1.3rem;
}

.contact-card address {
  color: var(--charcoal);
  font-style: normal;
  line-height: 1.55;
}

.contact-card > a,
.contact-phones a {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  color: var(--green);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-card a span {
  color: #7a8282;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.contact-phones {
  display: grid;
  gap: 10px;
}

.lead-form,
.stack-form {
  display: grid;
  gap: 12px;
}

.form-status,
.hint,
.muted {
  margin: 0;
  color: var(--charcoal);
  line-height: 1.5;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 78px);
  color: var(--green);
  border-top: 1px solid var(--line);
}

.footer img {
  width: 150px;
}

.footer-brand {
  display: grid;
  gap: 5px;
}

.footer-brand strong {
  color: var(--green);
  font: 900 0.52rem Montserrat, Arial, sans-serif;
  text-align: center;
}

.crm-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}

.crm-shell.open {
  display: block;
}

.crm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 26, 0.58);
}

.crm-panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(760px, 100%);
  overflow-y: auto;
  padding: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.crm-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--mist);
  color: var(--green);
  cursor: pointer;
  font-weight: 900;
}

.admin-toolbar {
  justify-content: space-between;
  padding: 16px;
  margin-bottom: 18px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-toolbar strong {
  display: block;
  color: var(--green);
  font: 900 1.8rem Montserrat, Arial, sans-serif;
}

.property-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wide {
  grid-column: 1 / -1;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: none;
  font-size: 0.95rem;
}

.check input {
  width: 18px;
  min-height: 18px;
}

.crm-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.crm-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.crm-item img {
  width: 110px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.crm-actions {
  display: flex;
  gap: 8px;
}

.mini-btn {
  min-width: 42px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
  color: var(--green);
  cursor: pointer;
  font-weight: 900;
}

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

  .nav {
    gap: 10px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 820px;
    padding-top: 80px;
  }

  .hero-content {
    padding-bottom: 240px;
  }

  .quick-search,
  .property-grid,
  .services,
  .contact,
  .trust-band {
    grid-template-columns: 1fr;
  }

  .service-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand span {
    display: none;
  }

  .nav a:not(.nav-login) {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .site-header {
    padding: 8px 14px;
  }

  .nav {
    gap: 7px;
  }

  .nav-login {
    padding-inline: 12px;
  }

  .section,
  .services,
  .contact {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .mayan-group {
    min-height: 680px;
    padding: 60px 20px;
  }

  .mayan-group-media {
    background-position: 62% center;
  }

  .mayan-group h2 {
    font-size: 3.4rem;
  }

  .property-form,
  .crm-item {
    grid-template-columns: 1fr;
  }

  .crm-item img {
    width: 100%;
  }

  .crm-actions {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media,
  .hero-reveal,
  .hero-actions {
    animation: none;
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
