:root {
  --abc-content-width: 1400px;
  --abc-accent: #af193b;
  --abc-text: #111827;
  --abc-muted: #6b7280;
  --abc-border: #e8e8e8;
  --abc-soft: #f5f5f2;
}

/* Shared blocks */

.abc-block {
  width: 100%;
}

.abc-card-block,
.abc-contact-card {
  border: 1px solid var(--abc-border);
  border-radius: 24px;
  background: #fff;
}

.abc-card-block {
  padding: 28px 30px;
  margin: 0 0 24px;
}

.abc-card-block h2,
.abc-description-block h2 {
  margin: 0 0 20px;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--abc-text);
}

/* Gallery */

.abc-gallery-block {
  margin: 0 0 34px;
}

.abc-gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.35fr) minmax(320px, 1fr);
  grid-template-rows: 300px 300px;
  gap: 16px;
  align-items: stretch;
}

.abc-gallery-block button.abc-gallery-item {
  padding: 0 !important;
  margin: 0;
  min-width: 0;
  min-height: 0;
  border: 0 !important;
  border-radius: 20px !important;
  box-shadow: none !important;
  font-family: inherit;
  line-height: 0 !important;
  text-align: left;
  text-decoration: none;
  text-transform: none;
  appearance: none;
  -webkit-appearance: none;
}

.abc-gallery-item {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  line-height: 0;
}

.abc-gallery-item picture {
  position: absolute;
  inset: 0;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  border-radius: inherit;
}

.abc-gallery-item.is-main {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.abc-gallery-item.is-thumb {
  min-height: 300px;
}

.abc-gallery-item img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: inherit;
}

.abc-gallery-item:focus,
.abc-gallery-item:active,
.abc-gallery-item:hover {
  outline: none;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.abc-gallery-count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 11px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.96);
  color: var(--abc-text);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Header */

.abc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.abc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #fff;
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.abc-badge--dark {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.abc-header-card {
  padding: 10px 0 28px;
  margin: 0;
}

.abc-header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 30px;
  align-items: start;
}

.abc-title {
  margin: 0;
  font-size: 37px!important;
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 700;
  color: var(--abc-text);
  max-width: 760px;
}

.abc-location {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: #5f6368;
}

.abc-reference {
  margin: 9px 0 0;
  font-size: 14px;
   color: #000;
  font-weight: 700;
}

.abc-price-box {
  padding: 12px 0 0;
  text-align: right;
}

.abc-price-label {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--abc-muted);
  font-weight: 700;
}

.abc-price {
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--abc-text);
}

.abc-price-suffix {
  font-weight: 300;
}

/* Facts / Description */

.abc-gray-band {
  margin: 0 0 28px;
}

.abc-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.abc-fact {
  border: 0;
  border-radius: 18px;
  background: #fff;
  min-height: 92px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.abc-fact__value {
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
  color: var(--abc-text);
  flex-shrink: 0;
}

.abc-fact__label {
  font-size: 20px;
  line-height: 1.2;
  color: #4b5563;
  text-align: right;
}

.abc-description-block {
  padding: 0;
  margin: 0;
}



/* Features */

.abc-feature-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 18px;
  border-top: 1px solid var(--abc-border);
}

.abc-feature-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: #3f444a;
}

.abc-feature-list li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 999px;
  background: #f3e2e7;
  color: var(--abc-accent);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Details */

.abc-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
}

.abc-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--abc-border);
}

.abc-detail-row__label {
  font-size: 15px;
  color: #6b7280;
}

.abc-detail-row__value {
  font-size: 15px;
  color: var(--abc-text);
  font-weight: 700;
  text-align: right;
}

/* Location */

.abc-location-box {
  margin-top: 18px;
  min-height: 220px;
  border: 1px solid var(--abc-border);
  border-radius: 18px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.abc-location-box a {
  color: var(--abc-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
}

/* Contact */

.abc-contact-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.abc-contact-card {
  background: #f7f7f5;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.abc-contact-card--agent,
.abc-contact-card--schedule {
  padding: 22px;
}

.abc-agent-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8e8e8;
}

.abc-agent-avatar {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.abc-agent-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d9c2b0, #b88968);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.abc-agent-meta {
  min-width: 0;
}

.abc-agent-name {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--abc-text);
}

.abc-agent-address {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #5f6368;
}

.abc-agent-rows {
  margin-top: 10px;
}

.abc-agent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e8e8e8;
}

.abc-agent-row:last-child {
  border-bottom: 0;
}

.abc-agent-row__label {
  font-size: 14px;
  color: #6b7280;
}

.abc-agent-row__value {
  font-size: 14px;
  font-weight: 600;
  color: #2b2f33;
  text-align: right;
}

.abc-agent-row__link {
  color: #2b2f33;
}

.abc-agent-row__link:hover {
  color: var(--abc-accent);
}

.abc-contact-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 18px;
  padding: 14px 20px;
  border-radius: 999px;
  background: #111111;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.abc-schedule-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--abc-text);
}

.abc-schedule-copy {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #5f6368;
}

.abc-schedule-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.abc-schedule-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
}

.abc-schedule-field__value,
.abc-schedule-field__input {
  min-height: 48px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #ececec;
  padding: 13px 14px;
  font-size: 14px;
  color: #2b2f33;
  display: flex;
  align-items: center;
}

.abc-schedule-field__input {
  color: #9aa0a6;
}


@media (max-width: 1200px) {
  .abc-title {
    font-size: 48px;
  }

  .abc-feature-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .abc-header-grid {
    grid-template-columns: 1fr;
  }

  .abc-price-box {
    text-align: left;
  }

  .abc-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .abc-gallery-item.is-main,
  .abc-gallery-item.is-thumb {
    grid-column: auto;
    grid-row: auto;
    min-height: 300px;
    height: 300px;
  }

  .abc-gallery-item picture,
  .abc-gallery-item img {
    height: 100%;
  }

  .abc-gallery-item img {
    object-fit: cover;
  }

  .abc-facts,
  .abc-feature-list,
  .abc-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .abc-title {
    font-size: 38px;
  }

  .abc-price {
    font-size: 38px;
  }

  .abc-facts,
  .abc-feature-list,
  .abc-details-grid {
    grid-template-columns: 1fr;
  }

  .abc-fact {
    padding: 20px;
  }

  .abc-fact__value {
    font-size: 34px;
  }

  .abc-fact__label {
    font-size: 17px;
  }

  .abc-card-block,
  .abc-contact-card--agent,
  .abc-contact-card--schedule {
    padding: 22px 20px;
    border-radius: 20px;
  }
}


.abc-gallery-block--before-template,
.abc-gallery-block--template,
.abc-gallery-block {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 34px;
}

.abc-gallery-grid {
  width: 100%;
}

@media (max-width: 1648px) {
  .abc-gallery-block--before-template,
  .abc-gallery-block--template,
  .abc-gallery-block {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 767px) {
  .abc-gallery-block--before-template,
  .abc-gallery-block--template,
  .abc-gallery-block {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* Elementor typography inheritance */

.abc-block,
.abc-gallery-block,
.abc-gallery-block--before-template,
.abc-gallery-block--template,
.abc-header-card,
.abc-card-block,
.abc-contact-card {
  font-family: var(--e-global-typography-text-font-family, inherit);
}

.abc-title,
.abc-card-block h2,
.abc-description-block h2,
.abc-price,
.abc-fact__value,
.abc-agent-name,
.abc-schedule-title {
  font-family: var(--e-global-typography-primary-font-family, inherit);
  font-weight: var(--e-global-typography-primary-font-weight, 700);
  letter-spacing: normal;
}

.abc-badge,
.abc-location,
.abc-reference,
.abc-richtext,
.abc-fact__label,
.abc-detail-row,
.abc-agent-row,
.abc-agent-address,
.abc-schedule-copy,
.abc-schedule-field,
.abc-contact-cta,
.abc-location-box {
  font-family: var(--e-global-typography-text-font-family, inherit);
}

.abc-price-label,
.abc-detail-row__label,
.abc-schedule-field label {
  font-family: var(--e-global-typography-accent-font-family, var(--e-global-typography-text-font-family, inherit));
  font-weight: var(--e-global-typography-accent-font-weight, 600);
  letter-spacing: normal;
}
