/**
 * Property single – alternative two-row, three-column layout
 */

.property-two-row__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.property-two-row__row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}

@media (max-width: 1024px) {
  .property-two-row__row {
    grid-template-columns: 1fr 1fr;
  }
  .property-two-row__col--3 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .property-two-row__row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
}

/* Breadcrumbs */

.property-two-row__breadcrumbs {
  font-size: 0.875rem;
  color: #6b6b6b;
  margin-bottom: 1rem;
}

.property-two-row__breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.property-two-row__breadcrumbs a:hover {
  text-decoration: underline;
}

/* Title row: title + small Save/Follow next to it */

.property-two-row__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

.property-two-row__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  margin: 0;
}

.property-two-row__title-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Save/Follow next to title: small, visible on light background (override account.css white variant) */

.property-two-row .property-two-row__title-actions .dunehaus-fav-btn,
.property-two-row .property-two-row__title-actions .dunehaus-follow-btn {
  padding: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--textcolor, #333);
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  border-radius: 999px;
}

.property-two-row .property-two-row__title-actions .dunehaus-fav-btn:hover,
.property-two-row .property-two-row__title-actions .dunehaus-follow-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.3);
}

.property-two-row .property-two-row__title-actions .dunehaus-fav-btn.is-saved,
.property-two-row .property-two-row__title-actions .dunehaus-follow-btn.is-following {
  background: var(--primary, #8b7355);
  border-color: var(--primary, #8b7355);
  color: #fff;
}

/* Title & CTA (main action buttons below) */

.property-two-row__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.57rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: #2b2b2b;
  border: none;
  border-radius: 28px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.property-two-row__cta:hover {
  background: #1a1a1a;
  color: #fff;
  transform: translateY(-1px);
}

.property-two-row__cta-icon {
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V21a2 2 0 01-2 2h-1C9.716 23 3 16.284 3 8V5z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* Consultant */

.property-two-row__consultant {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 12px;
}

.property-two-row__consultant-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.property-two-row__consultant-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.property-two-row__consultant-name {
  font-weight: 600;
  color: #1a1a1a;
}

.property-two-row__consultant-role {
  font-size: 0.8125rem;
  color: #6b6b6b;
}

.property-two-row__consultant-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #2b2b2b;
  text-decoration: none;
}

.property-two-row__consultant-contact:hover {
  text-decoration: underline;
}

/* Main image */

.property-two-row__main-image-wrap {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.property-two-row__main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-two-row__main-image--placeholder {
  background: linear-gradient(135deg, #e8e6e3 0%, #f0eeeb 100%);
}

.property-two-row__map-btn {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.property-two-row__map-btn:hover {
  background: #1a1a1a;
  color: #fff;
}

.property-two-row__map-icon {
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z'/%3E%3Cpath d='M15 11a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* Col 3: tag, price, meta, features */

.property-two-row__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b6b6b;
  background: #f0eeeb;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.property-two-row__price {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.property-two-row__specs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.property-two-row__spec {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #2b2b2b;
}

.property-two-row__spec-icon {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

.property-two-row__spec-value {
  line-height: 1.2;
}

.property-two-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: #6b6b6b;
  margin-bottom: 1.25rem;
}

.property-two-row__features-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  margin: 0 0 0.5rem;
}

.property-two-row__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.property-two-row__feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #2b2b2b;
  background: #f0eeeb;
  border-radius: 999px;
}

.property-two-row__feature-pill--lifestyle {
  background: #e8f0e8;
  color: #2d5a2d;
}

.property-two-row__feature-pill--more {
  display: none;
}

.property-two-row__features.is-expanded .property-two-row__feature-pill--more {
  display: inline-flex;
}

.property-two-row__feature-more {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary, #8b7355);
  background: none;
  border: none;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  align-self: center;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.property-two-row__feature-more:hover {
  color: #6b5344;
  background: rgba(139, 115, 85, 0.1);
}

/* Thumbnails */

.property-two-row__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.property-two-row__thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.property-two-row__thumb:hover,
.property-two-row__thumb:focus {
  border-color: #8b7355;
  outline: none;
  transform: scale(1.05);
}

.property-two-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-two-row__thumb-more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b6b6b;
  background: #f0eeeb;
}

/* Row 2 */

.property-two-row__section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b6b6b;
  margin: 0 0 0.5rem;
}

.property-two-row__second-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}

.property-two-row__description-wrap {
  max-width: 100%;
}

.property-two-row__description {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
}

.property-two-row__description--full[hidden] {
  display: none;
}

.property-two-row__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: #2b2b2b;
  border: 0;
  border-radius: 28px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.property-two-row__read-more:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
}

.property-two-row__read-more-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M12 4v16m8-8H4'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  transition: transform 0.2s ease;
}

.property-two-row__read-more[aria-expanded="true"] .property-two-row__read-more-icon {
  transform: rotate(45deg);
}

.property-two-row__developer-logo-wrap {
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 16px;
  text-align: center;
}

.property-two-row__developer-logo {
  max-width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

/* Fullscreen gallery – full viewport; moved to body by JS so fixed works */

.property-two-row-gallery {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  max-height: 100%;
  z-index: 999999;
  background: #1a1a1a;
  display: flex;
  align-items: stretch;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.property-two-row-gallery[data-open="true"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.property-two-row-gallery[hidden] {
  display: flex !important;
}

.property-two-row-gallery__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 48px;
  height: 48px;
  padding: 0;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.property-two-row-gallery__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.property-two-row-gallery__inner {
  display: flex;
  width: 100%;
  max-width: 100vw;
  min-height: 100%;
  height: 100vh;
}

.property-two-row-gallery__side {
  width: 25%;
  padding: 4rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.property-two-row-gallery__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.property-two-row-gallery__desc {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 1.5rem;
}

.property-two-row-gallery__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
  background: #fff;
  border: none;
  border-radius: 28px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  align-self: flex-start;
}

.property-two-row-gallery__cta:hover {
  background: #f0eeeb;
  color: #1a1a1a;
}

.property-two-row-gallery__carousel-wrap {
  position: relative;
  width: 75%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.property-two-row-gallery__carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 100%;
  max-height: 85vh;
  min-height: 300px;
}

.property-two-row-gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.property-two-row-gallery__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.property-two-row-gallery__slide img {
  width: 100%;
  height: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 28px;
}

.property-two-row-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  padding: 0;
  font-size: 1.5rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 5;
}

.property-two-row-gallery__nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.property-two-row-gallery__nav--prev {
  left: 1rem;
}

.property-two-row-gallery__nav--next {
  right: 1rem;
}

@media (max-width: 900px) {
  .property-two-row-gallery__inner {
    flex-direction: column;
  }
  .property-two-row-gallery__side {
    width: 100%;
    padding: 4rem 1.5rem 1rem;
  }
  .property-two-row-gallery__carousel-wrap {
    width: 100%;
    flex: 1;
  }
}

/* Ensure fullscreen gallery is visible and full width when open */

.property-two-row-gallery[data-open="true"] {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
}

/* Videos, Documents, Floors sections */

.property-two-row__full-col {
  width: 100%;
  grid-column: 1 / -1;
}

.property-two-row__row--videos,
.property-two-row__row--documents,
.property-two-row__row--floors {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.property-two-row__section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem;
}

.property-two-row__section-desc {
  font-size: 1rem;
  color: #6b6b6b;
  margin: 0 0 1.5rem;
}

.property-two-row__video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
}

.property-two-row__video-card {
  background: #f5f5f5;
  border-radius: 28px;
  overflow: hidden;
}

.property-two-row__video-frame {
  position: relative;
  aspect-ratio: 16/9;
  background: #1a1a1a;
}

.property-two-row__video-frame iframe,
.property-two-row__video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.property-two-row__video-title {
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
}

.property-two-row__doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1rem;
}

.property-two-row__doc-card {
  padding: 1.25rem;
  background: #f8f8f8;
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.property-two-row__doc-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: #1a1a1a;
}

.property-two-row__doc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #5e3e29;
  text-decoration: none;
}

.property-two-row__doc-link:hover {
  text-decoration: underline;
}

.property-two-row__floor {
  margin-bottom: 2.5rem;
}

.property-two-row__floor:last-child {
  margin-bottom: 0;
}

.property-two-row__floor-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.75rem;
}

.property-two-row__floor-content p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #444;
  margin: 0 0 0.5rem;
}

.property-two-row__floor-gallery {
  margin-top: 1rem;
}

.property-two-row__floor-gallery-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 0.75rem;
}

.property-two-row__floor-gallery-item {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #eee;
}

.property-two-row__floor-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}