* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: #202923;
  background: #ffffff;
}

.page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
  padding: 30px;
  border-radius: 14px;
  background: #e8efe8;
}
a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px 3%;
  background: #ffffff;
  border-bottom: 1px solid #e5e8df;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
}

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

.floating-nav {
  display: flex;
  gap: 6px;
  padding: 7px;
  border: 1px solid #e9e7df;
  border-radius: 50px;
  background: #ffffff;
}

.floating-nav a {
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
}

.floating-nav a:hover,
.floating-nav a[aria-current="page"] {
  background: #e8efe8;
  color: #246346;
}

.signin {
  justify-self: end;
  padding: 13px 24px;
  border-radius: 30px;
  background: #202923;
  color: #ffffff;
  font-size: 14px;
}

.signin:hover,
.contact-button:hover {
  background: #194b34;
}

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 30px 60px;
}


.eyebrow {
  margin: 0 0 12px;
  color: #246346;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
}

h1 {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -1px;
}

.page-intro p:last-child {
  margin: 0;
  color: #747b73;
  font-size: 15px;
}

.mode-switch {
  display: flex;
  padding: 5px;
  border: 1px solid #e0e5dc;
  border-radius: 30px;
  background: #ffffff;
  white-space: nowrap;
}

.mode-switch a {
  padding: 11px 18px;
  border-radius: 25px;
  font-size: 13px;
}

.mode-switch a[aria-current="page"] {
  background: #246346;
  color: #ffffff;
}

.properties {
  position: relative;
}

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

.category-options {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
}

.category-options label {
  padding: 10px 18px;
  border: 1px solid #dde3d8;
  border-radius: 24px;
  background: #ffffff;
  color: #596354;
  font-size: 13px;
  cursor: pointer;
}

#all:checked ~ .category-options label[for="all"],
#apartments:checked ~ .category-options label[for="apartments"],
#villas:checked ~ .category-options label[for="villas"],
#studios:checked ~ .category-options label[for="studios"] {
  background: #e8efe8;
  color: #246346;
  border-color: #246346;
}

.filter-input:focus-visible ~ .category-options {
  outline: 2px solid #246346;
  outline-offset: 5px;
  border-radius: 24px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 30px;
}

#apartments:checked ~ .property-grid .property-card:not(.apartment),
#villas:checked ~ .property-grid .property-card:not(.villa),
#studios:checked ~ .property-grid .property-card:not(.studio) {
  display: none;
}

.property-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0e5db;
  border-radius: 14px;
  background: #ffffff;
}

.gallery {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.slides {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #e7ebe3;
}

.slide {
  display: none;
  position: absolute;
  inset: 0;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-1:checked ~ .slides .slide-1,
.photo-2:checked ~ .slides .slide-2,
.photo-3:checked ~ .slides .slide-3 {
  display: block;
}

.photo-arrow {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding-bottom: 3px;
  box-sizing: border-box;
  border-radius: 50%;
  background: #ffffff;
  color: #202923;
  font-family: Arial, sans-serif;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.previous {
  left: 14px;
}

.next {
  right: 14px;
}

.photo-arrow:hover {
  background: #e8efe8;
}

.photo-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #ffffff;
  font-size: 11px;
}

.photo-dots {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 20px;
  background: #ffffff;
}

.photo-dots label {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd2c7;
  cursor: pointer;
}

.photo-1:checked ~ .photo-dots .dot-1,
.photo-2:checked ~ .photo-dots .dot-2,
.photo-3:checked ~ .photo-dots .dot-3 {
  background: #246346;
}

.gallery input:focus-visible ~ .slides {
  outline: 3px solid #246346;
  outline-offset: -3px;
}

.card-body {
  padding: 24px;
}

.card-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 12px;
}

.property-type {
  color: #747b73;
}

.availability {
  color: #246346;
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.location {
  margin: 0 0 18px;
  color: #747b73;
  font-size: 14px;
}

.price {
  margin: 0 0 20px;
  color: #246346;
  font-size: 26px;
  font-weight: 600;
}

.price span {
  color: #747b73;
  font-size: 13px;
  font-weight: 400;
}

.features {
  display: flex;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e7ebe2;
  color: #596354;
  font-size: 13px;
}

.property-details {
  margin: 18px 0;
  font-size: 13px;
  line-height: 1.7;
}

.property-details summary {
  color: #202923;
  font-weight: 500;
  cursor: pointer;
}

.property-details p {
  margin: 12px 0;
  color: #747b73;
}

.contact-button {
  display: block;
  padding: 13px;
  border-radius: 8px;
  background: #246346;
  color: #ffffff;
  text-align: center;
  font-size: 14px;
}

.page-footer {
  padding: 24px 3%;
  border-top: 1px solid #e0e5db;
  text-align: center;
}

.page-footer a {
  font-size: 20px;
  font-weight: 500;
}

.page-footer p {
  margin: 8px 0 0;
  color: #747b73;
  font-size: 13px;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid #246346;
  outline-offset: 4px;
}