/* Properties Canary Islands — listing page */

.properties-canary-page {
  background: #f7f8fa;
}

.properties-canary {
  padding: 48px 15px 72px;
  max-width: 1170px;
}

.properties-canary__back {
  margin: 0 0 16px;
  font-size: 14px;
}

.properties-canary__back a {
  color: #0270e0;
  text-decoration: none;
}

.properties-canary__back a:hover {
  text-decoration: underline;
}

.properties-canary h1 {
  margin: 0 0 12px;
  color: #0c2136;
  font-size: 2rem;
  font-weight: 600;
}

.properties-canary__intro {
  margin: 0 0 28px;
  max-width: 720px;
  color: #555;
  font-size: 16px;
  line-height: 1.55;
}

.properties-canary__filters {
  background: #fff;
  border: 1px solid #e4e7ec;
  padding: 20px;
  margin-bottom: 20px;
}

.properties-canary__filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
}

.properties-canary__filters-row + .properties-canary__filters-row {
  margin-top: 14px;
}

.properties-canary__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
  font-size: 13px;
  color: #333;
  font-weight: 600;
}

.properties-canary__field--grow {
  flex: 1 1 220px;
}

.properties-canary__field--check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: auto;
  padding-bottom: 10px;
  font-weight: 500;
}

.properties-canary__field input[type="search"],
.properties-canary__field input[type="number"],
.properties-canary__field select {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  background: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #222;
  box-sizing: border-box;
}

.properties-canary__field input:focus,
.properties-canary__field select:focus {
  outline: none;
  border-color: #0270e0;
}

.properties-canary__reset {
  height: 42px;
  padding: 0 18px;
  border: 1px solid #0c2136;
  background: transparent;
  color: #0c2136;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.properties-canary__reset:hover {
  background: #0c2136;
  color: #fff;
}

.properties-canary__meta {
  margin: 0 0 18px;
  font-size: 14px;
  color: #555;
  font-weight: 600;
}

.properties-canary__status {
  padding: 28px 16px;
  text-align: center;
  color: #555;
  background: #fff;
  border: 1px solid #e4e7ec;
  margin-bottom: 20px;
}

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

.property-card {
  background: #fff;
  border: 1px solid #e4e7ec;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.property-card:hover {
  box-shadow: 0 10px 28px rgba(12, 33, 54, 0.12);
  transform: translateY(-2px);
}

.property-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0c2136;
  overflow: hidden;
}

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

.property-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(12, 33, 54, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  padding: 5px 10px;
}

.property-card__body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.property-card__price {
  margin: 0;
  color: #0c2136;
  font-family: "Cabin", sans-serif;
  font-size: 22px;
  font-weight: 600;
}

.property-card__location {
  margin: 0;
  color: #555;
  font-size: 14px;
}

.property-card__specs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #333;
  font-size: 13px;
}

.property-card__specs li::before {
  content: "";
}

.property-card__cta {
  margin-top: auto;
  padding-top: 10px;
}

.property-card__cta button {
  width: 100%;
  background: #030638;
  border: 0;
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.property-card__cta button:hover {
  background: #0270e0;
}

.properties-canary__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.properties-canary__pagination button {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #0c2136;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  cursor: pointer;
}

.properties-canary__pagination button:hover:not(:disabled) {
  border-color: #0270e0;
  color: #0270e0;
}

.properties-canary__pagination button:disabled {
  opacity: 0.45;
  cursor: default;
}

.properties-canary__pagination button.is-active {
  background: #030638;
  border-color: #030638;
  color: #fff;
}

.properties-canary__pagination-label {
  font-size: 14px;
  color: #555;
  margin: 0 6px;
}

.properties-canary__partner {
  margin: 36px 0 0;
  font-size: 13px;
  color: #777;
  font-style: italic;
}

/* Modal */
.properties-canary__modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.properties-canary__modal[hidden] {
  display: none !important;
}

.properties-canary__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 56, 0.55);
}

.properties-canary__modal-dialog {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: min(90vh, 920px);
  overflow: auto;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.properties-canary__modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #0c2136;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.properties-canary__modal-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.property-detail__gallery {
  background: #0c2136;
  min-height: 280px;
}

.property-detail__gallery img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.property-detail__content {
  padding: 28px 28px 32px;
}

.property-detail__content h2 {
  margin: 0 0 8px;
  font-size: 24px;
  color: #0c2136;
}

.property-detail__price {
  margin: 0 0 12px;
  font-family: "Cabin", sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #030638;
}

.property-detail__meta {
  margin: 0 0 16px;
  color: #555;
  font-size: 14px;
}

.property-detail__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.property-detail__specs li {
  background: #f0f3f7;
  color: #0c2136;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
}

.property-detail__desc {
  margin: 0 0 20px;
  color: #444;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-line;
  max-height: 220px;
  overflow: auto;
}

.property-detail__actions a {
  display: inline-block;
  background: #0270e0;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
}

.property-detail__actions a:hover {
  background: #0048b8;
}

@media (max-width: 980px) {
  .properties-canary__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .properties-canary__modal-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .properties-canary {
    padding: 32px 12px 56px;
  }

  .properties-canary h1 {
    font-size: 1.55rem;
  }

  .properties-canary__grid {
    grid-template-columns: 1fr;
  }

  .properties-canary__field {
    flex: 1 1 100%;
  }
}
