.mirka-communities-overlay {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: var(--mirka-bg);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--mirka-text);
}

@supports selector(.t396__elem:has(#mirkaCommunities)) {
  .t-rec .t396__artboard {
    overflow: visible;
  }

  .t396__elem:has(#mirkaCommunities) {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }

  .t396__elem:has(#mirkaCommunities) .tn-atom,
  .t396__elem:has(#mirkaCommunities) .tn-atom__html {
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
  }
}

#mirkaCommunities {
  width: 100%;
  max-width: 100%;
}

.mc-hero {
  padding: 44px 20px;
  margin-top: 0px;
  margin-bottom: 26px;
}

@media (max-width: 960px) {
  .mc-hero {
    margin-top: 114px;
  }
}

.mc-hero-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.mc-hero-title {
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color:  var(--mirka-primary);
  margin-bottom: 8px;
}

.mc-hero-subtitle {
  font-size: 17px;
  font-weight: 300;
  color: var(--mirka-text) ;
  max-width: 720px;
}

.mc-search-wrap {
  margin-top: 22px;
  max-width: 520px;
}

.mc-search-input {
  width: 100%;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
}

.mc-search-input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.mc-search-input:focus {
  outline: none;
  border-color: var(--mirka-accent);
  box-shadow: 0 0 0 4px rgba(68, 187, 170, 0.18);
}

.mc-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 60px;
  min-height: 70vh;
  min-width: 0;
}

.mc-results {
  font-size: 15px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mc-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  margin-bottom: 36px;
  min-width: 0;
}

@media (min-width: 580px) and (max-width: 900px) {
  .mc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mc-card {
  display: block;
  position: relative;
  isolation: isolate;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  min-width: 0;
}

.mc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.38) 100%);
  transition: opacity 0.25s;
}

.mc-card::after {
  content: attr(title);
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  color: #ffffff;
  font-size: clamp(22px, 2.1vw, 34px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 6px 20px rgba(15, 23, 42, 0.45);
  transition: opacity 0.22s;
}

.mc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  border-color: rgba(68, 187, 170, 0.5);
}

.mc-card:hover::before,
.mc-card:focus-visible::before,
.mc-card:focus-within::before {
  opacity: 0;
}

.mc-card:hover::after,
.mc-card:focus-visible::after,
.mc-card:focus-within::after {
  opacity: 0;
}

.mc-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #e5e7eb;
}

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

.mc-card-body {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  background: rgba(35, 40, 86, 0.86);
  color: #ffffff;
  transform: translateY(102%);
  opacity: 0;
  transition: transform 0.34s ease, opacity 0.34s ease;
  min-width: 0;
}

.mc-card:hover .mc-card-body,
.mc-card:focus-visible .mc-card-body,
.mc-card:focus-within .mc-card-body {
  transform: translateY(0);
  opacity: 1;
}

.mc-card-title {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: #ffffff;
}

.mc-card .mc-card-body .mc-card-title {
  display: none;
}

.mc-card-desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 14px;
}

.mc-card .mc-card-body .mc-card-desc {
  display: none;
}

.mc-card-meta {
  display: grid;
  gap: 8px;
}

.mc-card-meta-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
}

.mc-card-meta-item span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 600;
}

.mc-card-meta-item strong {
  font-size: 12px;
  color: #ffffff;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mc-empty {
  text-align: center;
  padding: 60px 20px;
  margin-top: 50px;
  grid-column: 1 / -1;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  max-width: 100%;
  overflow: hidden;
}

.mc-empty h2 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--mirka-primary);
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.mc-empty p {
  font-size: 16px;
  color: var(--mirka-text-muted);
  font-weight: 300;
  line-height: 1.55;
  max-width: 44ch;
  margin: 0 auto;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.mc-detail-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

#mirkaCommunityDetail .mc-detail-container {
  padding-top: 0;
}

@media (max-width: 960px) {
  #mirkaCommunityDetail .mc-detail-container {
    padding-top: 114px;
  }
}

.mc-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #232856;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.mc-detail-back:hover {
  color: #44bbaa;
}

.mc-detail-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #e5e7eb;
  margin-top: 20px;
  margin-bottom: 26px;
}

.mc-detail-hero img {
  width: 100%;
  height: clamp(280px, 42vw, 500px);
  object-fit: cover;
  display: block;
}

.mc-detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18) 10%, rgba(15, 23, 42, 0.72) 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.mc-detail-overlay h1 {
  color: #ffffff;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 10px;
}

.mc-detail-overlay p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 780px;
  line-height: 1.6;
  font-size: 16px;
  font-weight: 300;
}

.mc-detail-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 30px;
}

.mc-detail-meta-item {
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
}

.mc-detail-meta-item span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}

.mc-detail-meta-item strong {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.mc-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 14px;
}

.mc-section-head h2 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.mc-section-head p {
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.mc-offplan-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  margin-bottom: 36px;
}

.mc-offplan-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.mc-offplan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.mc-offplan-media {
  aspect-ratio: 16/10;
  background: #e5e7eb;
}

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

.mc-offplan-body {
  padding: 14px;
}

.mc-offplan-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
  color: #0f172a;
}

.mc-offplan-specs {
  display: grid;
  gap: 7px;
}

.mc-offplan-spec {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  background: #f8fafc;
}

.mc-offplan-spec span {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.mc-offplan-spec strong {
  font-size: 12px;
  color: #0f172a;
  font-weight: 800;
  text-align: right;
}

.mc-related {
  margin-top: 10px;
}

.mc-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mc-related-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  color: #232856;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
}

.mc-related-links a:hover {
  border-color: #44bbaa;
  color: #44bbaa;
  background: rgba(68, 187, 170, 0.08);
}

.mc-static-intro {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
}

.mc-static-intro h1,
.mc-static-intro h2,
.mc-static-intro h3,
.mc-static-intro h4,
.mc-static-intro h5,
.mc-static-intro h6 {
  font-weight: 400;
  color: var(--mirka-primary);
  font-size: 20px;
}

.mc-static-intro p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 20px;
}

.mc-static-intro strong {
  font-weight: 700;
  color: var(--mirka-primary);
}

.mc-live-head {
  margin-top: 50px;
  margin-bottom: 14px;
  max-width: 100%;
}

.mc-live-head h2 {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--mirka-primary);
  margin-bottom: 6px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.mc-live-head p {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.mc-prop-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  margin-bottom: 40px;
}

.mc-prop-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mc-prop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.mc-prop-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #e5e7eb;
  overflow: hidden;
}

.mc-prop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.mc-prop-card:hover .mc-prop-media img {
  transform: scale(1.05);
}

.mc-prop-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  width: calc(100% - 24px);
  max-width: 260px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  word-break: break-word;
  text-overflow: ellipsis;
  line-height: 1.05;
}

.mc-prop-brand .sub {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  opacity: 0.9;
}

.mc-prop-body {
  padding: 18px;
}

.mc-prop-price {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--mirka-text);
}

.mc-prop-desc {
  font-size: 14px;
  color: var(--mirka-text-muted);
  line-height: 1.5;
  margin: 0;
}

.mc-prop-meta {
  display: flex;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.mc-prop-m {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.mc-prop-skeleton {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  animation: mc-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.mc-prop-skeleton-media {
  aspect-ratio: 4 / 3;
  background: #e5e7eb;
}

.mc-prop-skeleton-body {
  padding: 18px;
}

.mc-prop-skeleton-price {
  height: 28px;
  background: #e5e7eb;
  border-radius: 6px;
  margin-bottom: 10px;
  width: 60%;
}

.mc-prop-skeleton-line {
  height: 14px;
  background: #e5e7eb;
  border-radius: 4px;
  margin-bottom: 8px;
}

.mc-prop-skeleton-meta {
  display: flex;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid #f1f5f9;
}

.mc-prop-skeleton-item {
  height: 16px;
  width: 60px;
  background: #e5e7eb;
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .mc-detail-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .mc-hero {
    padding: 30px 16px;
  }

  .mc-hero-title {
    font-size: 30px;
  }

  .mc-hero-subtitle {
    font-size: 15px;
  }

  .mc-container,
  .mc-detail-container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .mc-grid,
  .mc-offplan-grid,
  .mc-prop-grid {
    gap: 14px;
  }

  .mc-prop-brand {
    font-size: 16px;
    max-width: 220px;
    -webkit-line-clamp: 5;
    line-clamp: 5;
  }

  .mc-card::before,
  .mc-card::after {
    opacity: 0;
  }

  .mc-card-body {
    transform: translateY(0);
    opacity: 1;
  }

  .mc-detail-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mc-section-head {
    flex-direction: column;
    gap: 6px;
  }

  .mc-section-head h2 {
    font-size: 26px;
  }

  .mc-live-head h2 {
    font-size: 26px;
  }

  .mc-live-head {
    margin-top: 36px;
    margin-bottom: 12px;
  }

  .mc-live-head p {
    font-size: 13px;
  }

  .mc-empty {
    padding: 42px 14px;
  }

  .mc-empty h2 {
    font-size: 22px;
    line-height: 1.25;
  }

  .mc-empty p {
    font-size: 15px;
    line-height: 1.5;
  }
}

@media (max-width: 579px) {
  .mc-grid,
  .mc-offplan-grid,
  .mc-prop-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mc-card {
    aspect-ratio: auto;
    height: 460px;
  }

  .mc-card-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: 50%;
  }

  .mc-card-body {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    opacity: 1;
    height: 50%;
    background: #232856;
    overflow: auto;
  }

  .mc-live-head {
    margin-top: 28px;
    margin-bottom: 10px;
  }

  .mc-live-head h2 {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 4px;
  }

  .mc-live-head p {
    font-size: 12px;
    line-height: 1.45;
  }

  .mc-empty {
    padding: 34px 12px;
    border-radius: 12px;
  }

  .mc-empty h2 {
    font-size: 20px;
    margin-bottom: 8px;
    line-height: 1.25;
  }

  .mc-empty p {
    font-size: 14px;
    line-height: 1.45;
    max-width: 32ch;
  }
}

@media (max-width: 480px) {
  .mc-hero-title {
    font-size: 26px;
  }

  .mc-search-input {
    height: 48px;
    font-size: 15px;
  }

  .mc-card-title {
    font-size: 21px;
  }

  .mc-detail-overlay {
    padding: 16px;
  }

  .mc-detail-overlay p {
    font-size: 14px;
  }

  .mc-detail-meta {
    grid-template-columns: 1fr;
  }

  .mc-offplan-title {
    font-size: 19px;
  }

  .mc-live-head {
    margin-top: 22px;
    margin-bottom: 8px;
  }

  .mc-live-head h2 {
    font-size: 20px;
    line-height: 1.25;
    margin-bottom: 3px;
  }

  .mc-live-head p {
    font-size: 12px;
  }

  .mc-empty {
    padding: 30px 10px;
  }

  .mc-empty h2 {
    font-size: 18px;
  }

  .mc-empty p {
    font-size: 13px;
    max-width: 30ch;
  }
}
