/* =========================
   APARTMENT PAGE LAYOUT
   ========================= */
#kvartsi-1.apartment-block {
    background-color: #f9f9f98f;
}
#kvartsi-3.apartment-block {
    background-color: #f9f9f98f;
}
.apartment-block {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  margin: 5px 0;
  position: relative;
}

.image-map-wrap,
.apartment-block-text-block,
.apartment-block-meta-inside {
  min-width: 0;
}

/* visuaalne vahe plokkide vahel 
.apartment-block::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -55px;
  width: 120px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(90, 138, 135, 0) 0%,
    rgba(90, 138, 135, 0.35) 50%,
    rgba(90, 138, 135, 0) 100%
  );
  transform: translateX(-50%);
}

.apartment-block:last-of-type::after {
  display: none;
}*/


/* =========================
   IMAGE / MAP SIDE
   ========================= */

.image-map-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f3f3f3;
  border-radius: 0px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.08);
  isolation: isolate;
}

.image-map-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 28%),
    linear-gradient(0deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0) 24%);

  pointer-events: none;
  z-index: 1;
}

.apartment-block-img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.8s ease;
}

.apartment-block:hover .apartment-block-img {
  transform: scale(1.0);
}

.apartment-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}


/* =========================
   SVG APARTMENT SHAPES
   ========================= */

.apartment-shape {
  cursor: pointer;
}

.apartment-shape polygon,
.apartment-shape rect,
.apartment-shape path {
  fill: rgba(255, 255, 255, 0);
  stroke: rgba(255, 255, 255, 0);
  stroke-width: 0;
  transition:
    fill 0.25s ease,
    stroke 0.25s ease,
    filter 0.25s ease,
    opacity 0.25s ease;
}

.apartment-shape:hover polygon,
.apartment-shape:hover rect,
.apartment-shape:hover path,
.apartment-shape.is-active polygon,
.apartment-shape.is-active rect,
.apartment-shape.is-active path {
  fill: rgba(111, 179, 67, 0.42);
  stroke: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 0 10px rgba(111, 179, 67, 0.45));
	 
}

.apartment-shape:focus polygon,
.apartment-shape:focus rect,
.apartment-shape:focus path {
  fill: rgba(111, 179, 67, 0.30);
  stroke: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 0 10px rgba(111, 179, 67, 0.45));
	  
}


/* =========================
   TEXT SIDE
   ========================= */

.apartment-block-text-block {
  width: 100%;
  padding: 20px 5%;
}
.apartment-block-meta-inside {
    position: relative;
    padding: 10px 34px 10px;
   /* background: rgba(255, 255, 255, 0.62);*/
    backdrop-filter: blur(6px);
    /* border: 1px solid rgba(90, 138, 135, 0.10); */
    border-radius: 0px;
    /* box-shadow: 0 16px 42px rgba(0, 0, 0, 0.05); */
}

/*.apartment-block-meta-inside::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 0;
  width: 4px;
  height: 58px;
  border-radius: 0px;
  background: linear-gradient(180deg, #6fa36a 0%, #5a8a87 100%);
}*/

.apartment-block-meta-inside h2 {
  margin: 0 0 28px;
  padding-left: 0px;
  font-size: 38px;
  line-height: 1.08;
  font-weight: 600;
  color: #5a8a87;
  letter-spacing: -0.03em;
}


/* =========================
   TABLE ACTIVE ROW ONLY
   ========================= */

.apartment-block .tablepress tbody tr {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.apartment-block .tablepress tbody tr.is-active td {
  background-color: rgba(111, 179, 67, 0.12) !important;
}


/* =========================
   APARTMENT TABLE – PREMIUM
   ========================= */

.apartment-block-meta-inside .tablepress {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  font-size: 15px;
  line-height: 1.45;
  color: #2d2d2d;
}

/* Header */
.apartment-block-meta-inside .tablepress thead th,
.apartment-block-meta-inside .tablepress thead td {
  padding: 0 12px 14px;
  border: 0;
  border-bottom: 1px solid #9ab3af;
  background: transparent;
  color: #4f7f7b;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
}

/* Body cells */
.apartment-block-meta-inside .tablepress tbody td {
  padding: 16px 12px;
  border: 0;
  background: transparent;
  color: #2f2f2f;
  vertical-align: middle;
}

/* Row effect */
.apartment-block-meta-inside .tablepress tbody tr {
  transition: background-color 0.22s ease, transform 0.22s ease;
}

.apartment-block-meta-inside .tablepress tbody tr + tr td {
  border-top: 1px solid #eceeed;
}

/* Apartment number */
.apartment-block-meta-inside .tablepress tbody td.column-1,
.apartment-block-meta-inside .tablepress tbody td.column-1 strong {
  font-weight: 700;
  color: #1f2f2e;
}

/* Price */
.apartment-block-meta-inside .tablepress tbody td.column-6,
.apartment-block-meta-inside .tablepress tbody td.column-6 b {
  font-weight: 700;
  color: #1f2f2e;
  letter-spacing: 0.01em;
}

/* Link column */
.apartment-block-meta-inside .tablepress tbody td.column-7 {
  text-align: right;
}

.apartment-block-meta-inside .tablepress tbody td.column-7 a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4f7f7b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.apartment-block-meta-inside .tablepress tbody td.column-7 a:hover {
  color: #1f2f2e;
  transform: translateX(2px);
}

/* Hover */
.apartment-block-meta-inside .tablepress tbody tr:hover td {
  background: rgba(79, 127, 123, 0.045);
}

/* Active row from JS */
.apartment-block-meta-inside .tablepress tbody tr.is-active td {
  background: rgba(111, 179, 67, 0.11) !important;
}

/* Rounded row feel */
.apartment-block-meta-inside .tablepress tbody tr:hover td:first-child,
.apartment-block-meta-inside .tablepress tbody tr.is-active td:first-child {
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.apartment-block-meta-inside .tablepress tbody tr:hover td:last-child,
.apartment-block-meta-inside .tablepress tbody tr.is-active td:last-child {
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
}

/* Remove default striping feel */
.apartment-block-meta-inside .tablepress tbody tr.row-hover:hover td,
.apartment-block-meta-inside .tablepress tbody tr.row-striping td {
  background-color: transparent;
}

.apartment-block-meta-inside .tablepress tbody tr.row-hover:hover td {
  background: rgba(79, 127, 123, 0.045);
}


/* =========================
   TABLE SCROLL HINT
   ========================= */

.table-scroll-hint {
    border: solid 0px;
    text-align: center;
    background-color: #8d775b00;
    color: #386560;
    padding: 13px 0px;
    text-transform: uppercase;
    display: none !important;
    align-content: center;
    align-items: center;
	
}

.table-scroll-hint .arrow {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  animation: apartmentTableArrow 1.2s ease-in-out infinite;
}

@keyframes apartmentTableArrow {
  0% { transform: translateX(0); }
  50% { transform: translateX(6px); }
  100% { transform: translateX(0); }
}


/* =========================
   ENTRY CONTENT
   ========================= */

/*.entry-content {
  max-width: 1320px;
  margin: 10px auto 90px;
  padding: 52px 52px 42px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(90, 138, 135, 0.10);
  border-radius: 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.entry-content h2 {
  margin: 0 0 24px;
  font-size: 36px;
  line-height: 1.08;
  color: #5a8a87;
  letter-spacing: -0.02em;
}

.entry-content p,
.entry-content li {
  color: #404040;
}

.entry-content .tablepress {
  margin: 0 0 28px;
}*/


/* =========================
   TABLET
   ========================= */

@media (max-width: 1199px) {
  .apartment-block {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 72px;
  }

  .apartment-block-text-block {
    padding: 0;
  }

  .apartment-block-meta-inside {
    padding: 28px 26px 24px;
  }

  .apartment-block-meta-inside h2 {
    font-size: 32px;
  }

  .entry-content {
    padding: 38px 30px 30px;
    margin-bottom: 68px;
  }
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 767px) {
  .apartment-block {
    gap: 22px;
    margin-bottom: 52px;
  }

  .image-map-wrap {
    border-radius: 0px;
  }

  .apartment-block-meta-inside {
    padding: 22px 18px 18px;
    border-radius: 0px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .apartment-block-meta-inside::before {
    top: 18px;
    height: 42px;
  }

  .apartment-block-meta-inside h2 {
    font-size: 28px;
    margin-bottom: 18px;
    padding-left: 0px;
  }

.table-scroll-hint {

    display: flex !important;
  
	
}

  .apartment-block-meta-inside .tablepress {
    min-width: 760px;
    font-size: 14px;
  }

  .apartment-block-meta-inside .tablepress thead th,
  .apartment-block-meta-inside .tablepress thead td {
    padding: 0 10px 12px;
    font-size: 12px;
  }

  .apartment-block-meta-inside .tablepress tbody td {
    padding: 15px 10px;
  }

  .entry-content {
    padding: 26px 18px 22px;
    border-radius: 0px;
  }

  .entry-content h2 {
    font-size: 26px;
  }
}


/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 480px) {
  .apartment-block-meta-inside h2 {
    font-size: 29px;
  }

  .entry-content h2 {
    font-size: 24px;
  }
}