:root {
  --single-radius-lg: 22px;
  --single-radius-md: 16px;
  --single-radius-sm: 12px;
  --single-border: #d4e4fb;
  --single-ink: #123556;
  --single-muted: #5a7392;
}

.public-single-shell {
  padding: 1.4rem 0 2.4rem;
  background:
    radial-gradient(circle at 10% 0%, rgba(69, 126, 186, 0.12), transparent 28%),
    radial-gradient(circle at 95% 10%, rgba(76, 147, 159, 0.12), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  border: 1px solid #d7e6fa;
  border-radius: 24px;
  box-shadow: 0 18px 34px rgba(14, 61, 122, 0.1);
}

.public-single-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.single-back-link {
  color: #1f4d7f;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #cfe0f7;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.44rem 0.8rem;
  box-shadow: 0 8px 18px rgba(16, 58, 106, 0.16);
  transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.single-back-link:hover {
  color: #163b63;
  text-decoration: none;
  background: #ffffff;
  transform: translateY(-1px);
}

.single-theme-pill {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 0.75rem;
  border-radius: 999px;
  border: 1px solid #cfe0f7;
  background: rgba(255, 255, 255, 0.96);
  color: #1f4d7f;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.38rem 0.76rem;
  box-shadow: 0 8px 18px rgba(16, 58, 106, 0.12);
}

.single-head-actions {
  display: none;
}

.single-map-link,
.single-share-link {
  border-radius: 999px;
  padding: 0.46rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.single-map-link {
  border: 1px solid #4f7d86;
  background: linear-gradient(135deg, #2f6570, #3f7e88);
  color: #f8fbff;
  box-shadow: 0 8px 16px rgba(35, 78, 89, 0.24);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.single-map-link:hover {
  color: #f8fbff;
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 10px 20px rgba(35, 78, 89, 0.3);
}

.single-media-column {
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
}

.single-map-link-below {
  align-self: flex-start;
}

.single-share-link {
  border: 1px solid #d4bf87;
  background: linear-gradient(135deg, #fff8e6, #f4e6c5);
  color: #775c1b;
}

.public-single-hero {
  border: 1px solid var(--single-border);
  border-radius: var(--single-radius-lg);
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(244, 250, 255, 0.96));
  box-shadow: 0 20px 38px rgba(10, 43, 92, 0.16);
  padding: 0.95rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.95rem;
}

.single-media {
  position: relative;
  border: 1px solid #c8dcf8;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f1ff, #dbeaff);
  min-height: 300px;
  padding: 0.38rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.single-media.is-gallery-trigger {
  cursor: zoom-in;
}

.single-media img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  border: 1px solid #d4e4fb;
  transition: transform .24s ease, filter .24s ease;
}

.single-media.is-gallery-trigger:hover img {
  transform: scale(1.01);
  filter: saturate(1.04);
}

.single-open-gallery {
  display: none;
  position: absolute;
  top: 0.58rem;
  left: 0.58rem;
  z-index: 2;
  border-radius: 999px;
  border: 1px solid rgba(227, 206, 156, 0.88);
  background: rgba(14, 45, 68, 0.86);
  color: #f7fbff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.24rem 0.56rem;
  box-shadow: 0 8px 16px rgba(7, 31, 55, 0.26);
}

.single-open-gallery:hover {
  filter: brightness(1.05);
}

.single-media-placeholder {
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  color: var(--single-muted);
  background: linear-gradient(135deg, #eef5ff, #e6f0ff);
}

.single-photo-count {
  position: absolute;
  right: 0.58rem;
  bottom: 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(223, 203, 150, 0.82);
  background: rgba(29, 69, 88, 0.84);
  color: #edf6ff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.56rem;
}

.single-info {
  border: 1px solid #d4e5fb;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  padding: 1rem 1.04rem;
  box-shadow: 0 12px 24px rgba(20, 69, 128, 0.08);
}

.single-title-wrap h1 {
  margin: 0.28rem 0 0;
  font-size: 1.42rem;
  line-height: 1.22;
  color: var(--single-ink);
  letter-spacing: -0.01em;
}

.single-code {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #d8c28d;
  background: #fff8e9;
  color: #775c1b;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.56rem;
}

.single-pills {
  margin-top: 0.68rem;
  display: flex;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.single-pill {
  border-radius: 999px;
  border: 1px solid #cddff9;
  background: linear-gradient(135deg, #f7fbff, #eef5ff);
  color: #34557c;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.56rem;
}

.single-price-wrap {
  margin-top: 0.8rem;
}

.single-price-label {
  display: block;
  font-size: 0.73rem;
  font-weight: 800;
  color: #7288a6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.single-price-value {
  display: block;
  margin-top: 0.16rem;
  font-size: 1.5rem;
  color: #1f5a69;
  letter-spacing: -0.01em;
}

.single-location {
  margin: 0.7rem 0 0;
  color: var(--single-muted);
  font-size: 0.88rem;
}

.single-description {
  margin-top: 0.82rem;
  border: 1px solid #d6e6fb;
  border-radius: var(--single-radius-sm);
  background: linear-gradient(180deg, #f8fbff, #f2f8ff);
  color: #395676;
  line-height: 1.58;
  font-size: 0.9rem;
  padding: 0.78rem 0.82rem;
}

.single-cta-row {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.single-gallery-link,
.single-whatsapp-link {
  border-radius: 12px;
  padding: 0.48rem 0.74rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.single-gallery-link {
  border: 1px solid #89adcf;
  background: linear-gradient(135deg, #eef6ff, #dfecff);
  color: #1b4c7a;
  box-shadow: 0 8px 16px rgba(31, 89, 158, 0.12);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.single-gallery-link:hover {
  color: #1b4c7a;
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 10px 18px rgba(31, 89, 158, 0.18);
}

.single-whatsapp-link {
  border: 1px solid #2e9067;
  background: linear-gradient(135deg, #24a35f, #2db871);
  color: #f7fffb;
}

.single-whatsapp-link:hover {
  color: #f7fffb;
  text-decoration: none;
}

.single-share-feedback {
  margin: 0.62rem 0 0;
  min-height: 1rem;
  color: #2d5f8f;
  font-size: 0.8rem;
  font-weight: 700;
}

.single-thumbs-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.72rem;
}

.single-thumbs-grid-inline {
  margin-top: 0.05rem;
}

.single-gallery-link-below-thumbs {
  margin-top: 0.2rem;
  align-self: flex-start;
}

.single-thumb-btn {
  border: 1px solid #cfe0f8;
  border-radius: 13px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 0.25rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 8px 16px rgba(14, 63, 122, 0.08);
}

.single-thumb-btn.is-active {
  border-color: #3c6d99;
  box-shadow: 0 0 0 2px rgba(60, 109, 153, 0.14);
}

.single-thumb-btn img {
  width: 100%;
  height: 92px;
  border-radius: 10px;
  border: 1px solid #d5e5fb;
  object-fit: cover;
  display: block;
}

.single-thumb-btn:hover {
  transform: translateY(-1px);
}

.single-gallery-modal .modal-content {
  border: 1px solid rgba(72, 108, 146, 0.62);
  background: linear-gradient(180deg, #0f2235, #0a1a2a);
  color: #edf5ff;
}

.single-gallery-modal .modal-header {
  border-bottom: 1px solid rgba(117, 148, 183, 0.36);
}

.single-gallery-modal .btn-close {
  filter: invert(1) grayscale(1) brightness(220%);
}

.single-gallery-modal .modal-body {
  padding: 0.8rem;
}

#singleGalleryCarousel {
  border-radius: 14px;
  overflow: hidden;
  background: #05121f;
}

.single-gallery-modal-image {
  width: 100%;
  max-height: calc(100vh - 220px);
  object-fit: contain;
  background: #05121f;
  display: block;
}

.single-gallery-modal .carousel-control-prev,
.single-gallery-modal .carousel-control-next {
  width: 12%;
}

.single-gallery-modal .carousel-control-prev-icon,
.single-gallery-modal .carousel-control-next-icon {
  background-size: 2rem 2rem;
  filter: drop-shadow(0 0 6px rgba(2, 9, 16, 0.9));
}

.single-gallery-modal-counter {
  margin: 0.62rem 0 0;
  text-align: center;
  color: #d9ebff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

@media (max-width: 991.98px) {
  .public-single-shell {
    border-radius: 20px;
  }

  .public-single-hero {
    grid-template-columns: 1fr;
  }

  .single-media img,
  .single-media,
  .single-media-placeholder {
    min-height: 270px;
  }
}

@media (max-width: 767.98px) {
  .single-open-gallery {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .single-thumbs-grid,
  .single-thumbs-grid-inline {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .public-single-shell {
    padding-top: 0.9rem;
    border-radius: 16px;
  }

  .public-single-head {
    flex-direction: column;
    align-items: stretch;
  }

  .single-back-link {
    text-align: center;
  }

  .single-map-link,
  .single-share-link {
    text-align: center;
  }

  .single-map-link-below {
    width: 100%;
    text-align: center;
  }

  .single-title-wrap h1 {
    font-size: 1.16rem;
  }

  .single-cta-row {
    justify-content: center;
  }

  .single-gallery-link {
    text-align: center;
  }

  .single-gallery-link-below-thumbs {
    width: 100%;
  }

  .single-media img,
  .single-media,
  .single-media-placeholder {
    min-height: 290px;
  }

  .single-gallery-modal .modal-content {
    min-height: 100vh;
    border-radius: 0;
  }

  .single-gallery-modal .modal-body {
    padding: 0.52rem;
  }

  .single-gallery-modal-image {
    max-height: calc(100vh - 176px);
  }
}

.site-theme--moderno .public-single-shell {
  background:
    radial-gradient(circle at 12% 0%, rgba(48, 137, 150, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fcff 0%, #eef7fb 100%);
  border-color: #d7e7f7;
}

.site-theme--padrao .public-single-shell {
  background:
    radial-gradient(circle at 12% 0%, rgba(78, 128, 196, 0.06), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-color: #d7e5f7;
}

.site-theme--padrao .public-single-hero {
  background:
    radial-gradient(circle at 85% -14%, rgba(255, 255, 255, 0.22), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
}

.site-theme--padrao .single-map-link,
.site-theme--padrao .single-gallery-link,
.site-theme--padrao .single-whatsapp-link {
  box-shadow: 0 10px 18px rgba(15, 63, 138, 0.12);
}

.site-theme--padrao .single-info,
.site-theme--padrao .single-media,
.site-theme--padrao .single-description,
.site-theme--padrao .single-thumb-btn,
.site-theme--padrao .single-gallery-modal .modal-content {
  border-color: #d7e6f7;
}

.site-theme--padrao .single-theme-pill,
.site-theme--padrao .single-back-link {
  background: rgba(255, 255, 255, 0.96);
  border-color: #cfe0f7;
}

.site-theme--moderno .public-single-hero {
  background:
    radial-gradient(circle at 85% -14%, rgba(255, 255, 255, 0.22), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
}

.site-theme--moderno .single-map-link,
.site-theme--moderno .single-gallery-link,
.site-theme--moderno .single-whatsapp-link {
  box-shadow: 0 10px 18px rgba(15, 63, 138, 0.14);
}

.site-theme--moderno .single-info,
.site-theme--moderno .single-media,
.site-theme--moderno .single-description,
.site-theme--moderno .single-thumb-btn,
.site-theme--moderno .single-gallery-modal .modal-content {
  border-color: #d7e6f7;
}

.site-theme--moderno .single-theme-pill,
.site-theme--moderno .single-back-link {
  background: rgba(255, 255, 255, 0.96);
  border-color: #cfe0f7;
}

.site-theme--dark .public-single-shell {
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.08), transparent 24%),
    linear-gradient(180deg, #050b16 0%, #0b1220 100%);
  border-color: rgba(148, 163, 184, 0.18);
}

.site-theme--dark .public-single-hero {
  background:
    radial-gradient(circle at 85% -14%, rgba(34, 211, 238, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(8, 15, 28, 0.98), rgba(11, 19, 35, 0.98));
  border-color: rgba(148, 163, 184, 0.18);
}

.site-theme--dark .single-back-link,
.site-theme--dark .single-theme-pill {
  background: rgba(15, 23, 42, 0.94);
  color: #e5eefc;
  border-color: rgba(148, 163, 184, 0.22);
}

.site-theme--dark .single-back-link:hover {
  color: #ffffff;
  background: rgba(30, 41, 59, 0.98);
  border-color: rgba(125, 211, 252, 0.42);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.42);
}

.site-theme--dark .single-info,
.site-theme--dark .single-media,
.site-theme--dark .single-description,
.site-theme--dark .single-thumb-btn,
.site-theme--dark .single-gallery-modal .modal-content {
  background: rgba(8, 15, 28, 0.96);
  border-color: rgba(148, 163, 184, 0.18);
}

.site-theme--dark .single-title-wrap h1,
.site-theme--dark .single-price-value,
.site-theme--dark .single-location,
.site-theme--dark .single-description,
.site-theme--dark .single-share-feedback,
.site-theme--dark .single-gallery-link {
  color: #e5eefc;
}

.site-theme--dark .single-code {
  border-color: rgba(250, 204, 21, 0.58);
  background: linear-gradient(135deg, #fde68a, #facc15);
  color: #111827;
  box-shadow: 0 10px 22px rgba(250, 204, 21, 0.18);
}

.site-theme--dark .single-pill {
  border-color: rgba(125, 211, 252, 0.34);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
  color: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-theme--dark .single-price-label {
  color: #93c5fd;
}

.site-theme--dark .single-map-link {
  border-color: rgba(45, 212, 191, 0.56);
  background: linear-gradient(135deg, #0f766e, #0ea5e9);
  color: #f8fbff;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.2);
}

.site-theme--dark .single-gallery-link {
  border-color: rgba(250, 204, 21, 0.48);
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #1f2937;
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.22);
}

.site-theme--dark .single-map-link:hover,
.site-theme--dark .single-gallery-link:hover {
  color: #ffffff;
  filter: brightness(1.05) saturate(1.04);
}

.site-theme--dark .single-gallery-link:hover {
  color: #111827;
}

.site-theme--dark .single-open-gallery {
  border-color: rgba(250, 204, 21, 0.58);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.92));
  color: #fef3c7;
}
