/**
 * Premium showroom visit booking popup — scoped to .pdp-showroom-modal
 */

.pdp-showroom-modal {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0;
  color: #222;
}

.pdp-showroom-modal .overlay {
  background: rgba(245, 242, 237, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 300ms ease, visibility 300ms ease;
}

.pdp-showroom-modal .popup-container {
  width: min(1240px, calc(100vw - 40px));
  max-width: min(1240px, calc(100vw - 40px));
  max-height: 90vh;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(34, 34, 34, 0.08);
  overflow: hidden;
  transform: translate(-50%, calc(-50% + 20px));
  opacity: 0;
  transition: opacity 300ms ease, transform 300ms ease, visibility 300ms ease;
}

.pdp-showroom-modal.show .popup-container {
  transform: translate(-50%, -50%);
  opacity: 1;
}

.pdp-showroom-modal[hidden] {
  display: none !important;
}

.pdp-showroom-modal:not([hidden]) {
  display: block;
}

.pdp-showroom-scroll {
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pdp-showroom-inner {
  padding: 20px 24px 24px;
}

/* Close */
.pdp-showroom-close {
  position: absolute;
  top: 28px;
  right: 32px;
  z-index: 2;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 200ms ease;
}

.pdp-showroom-close:hover,
.pdp-showroom-close:focus {
  background: #333;
  outline: none;
}

.pdp-showroom-close:focus-visible {
  outline: 2px solid #a0b29a;
  outline-offset: 2px;
}

.pdp-showroom-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* Header */
.pdp-showroom-header {
  margin: 0 0 28px;
  padding-right: 48px;
}

.pdp-showroom-heading {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: #222;
}

.pdp-showroom-subtitle {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: #222;
}

/* Cards — equal columns aligned with booking panel edges */
.pdp-showroom-cards {
  margin: 0 0 24px;
}

.pdp-showroom-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pdp-showroom-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #e8e3dd;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.pdp-showroom-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(34, 34, 34, 0.06);
}

.pdp-showroom-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f5f2ed;
  flex-shrink: 0;
}

.pdp-showroom-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #222;
  box-shadow: 0 1px 3px rgba(34, 34, 34, 0.06);
}

.pdp-showroom-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.pdp-showroom-card:hover .pdp-showroom-card-image {
  transform: scale(1.05);
}

.pdp-showroom-card-body {
  padding: 18px 18px 20px;
  flex: 1 1 auto;
}

.pdp-showroom-card-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-style: normal;
  font-size: 14px;
  line-height: 1.5;
  color: #6d6d6d;
}

.pdp-showroom-card-pin {
  display: flex;
  flex-shrink: 0;
  margin-top: 2px;
}

.pdp-showroom-card-pin svg {
  width: 16px;
  height: 16px;
  stroke: #a0b29a;
}

.pdp-showroom-card-address-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pdp-showroom-card-street,
.pdp-showroom-card-locale {
  display: block;
}

/* Booking panel */
.pdp-showroom-booking {
  margin: 0;
  padding: 22px 26px;
  border-radius: 16px;
  background: #f5f2ed;
}

.pdp-showroom-booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.63fr);
  gap: 38px;
  align-items: center;
}

.pdp-showroom-booking-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.pdp-showroom-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(199, 184, 163, 0.35);
  color: #222;
  flex-shrink: 0;
}

.pdp-showroom-icon-wrap svg {
  width: 20px;
  height: 20px;
  stroke: #222;
  stroke-width: 1.75;
}

.pdp-showroom-booking-copy {
  min-width: 0;
}

.pdp-showroom-booking-title {
  margin: 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: #222;
}

.pdp-showroom-i-t-wrap {
  display: inline-flex;
  width: 100%;
  align-items: center;
}

.pdp-showroom-booking-text {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: #6d6d6d;
}

.pdp-showroom-booking-contact {
  min-width: 0;
}

.pdp-showroom-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pdp-showroom-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #222;
}

.pdp-showroom-contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
}

.pdp-showroom-contact-icon svg {
  width: 16px;
  height: 16px;
  stroke: #a0b29a;
  stroke-width: 1.75;
}

.pdp-showroom-contact-item a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
  transition: color 200ms ease;
}

.pdp-showroom-contact-item a:hover,
.pdp-showroom-contact-item a:focus {
  color: #a0b29a;
  text-decoration: none;
}

body.maati-showroom-modal-open {
  overflow: hidden;
}

/* Tablet */
@media (max-width: 1024px) {
  .pdp-showroom-modal .popup-container {
    width: min(980px, calc(100vw - 32px));
    max-width: min(980px, calc(100vw - 32px));
  }

  .pdp-showroom-inner {
    padding: 12px 18px 12px;
  }

  .pdp-showroom-close {
    top: 24px;
    right: 24px;
  }

  .pdp-showroom-heading {
    font-size: 24px;
  }

  .pdp-showroom-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdp-showroom-booking {
    padding: 28px;
  }

  .pdp-showroom-booking-grid {
    gap: 22px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .pdp-showroom-modal .popup-container {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .pdp-showroom-inner {
    padding: 14px 10px 14px;
  }

  .pdp-showroom-close {
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
  }

  .pdp-showroom-close svg {
    width: 14px;
    height: 14px;
  }

  .pdp-showroom-header {
    margin-bottom: 22px;
    padding-right: 40px;
  }

  .pdp-showroom-heading {
    font-size: 22px;
  }

  .pdp-showroom-cards {
    margin-bottom: 22px;
  }

  .pdp-showroom-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pdp-showroom-booking {
    padding: 24px 20px;
  }

  .pdp-showroom-booking-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .pdp-showroom-contact-list {
    gap: 14px;
  }
}
