/* ===================================================
   FLORIDA HOMES – Property Detail Page Styles
   =================================================== */

/* ── Breadcrumb ── */
.breadcrumb-wrap {
  padding: 1.25rem 0 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--brand);
  text-decoration: none;
  transition: opacity 0.18s;
}

.breadcrumb a:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* ── Gallery ── */
.prop-gallery {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.gallery-main {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  background: rgba(16, 34, 44, 0.06);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gallery-main:hover img {
  transform: scale(1.03);
}

.gallery-expand-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  transition: background 0.2s, transform 0.2s;
}

.gallery-expand-btn:hover {
  background: #fff;
  transform: translateY(-2px);
}

.prop-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.gallery-thumbs {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 0.65rem;
}

.gallery-thumb {
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: rgba(16, 34, 44, 0.06);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.06);
  filter: brightness(0.88);
}

.gallery-thumb::after {
  content: "🔍";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.25s;
}

.gallery-thumb:hover::after {
  opacity: 1;
}

/* ── Property Content Layout ── */
.prop-content {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

.prop-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.prop-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  margin-top: 0.3rem;
}

.prop-price-block {
  text-align: right;
  flex-shrink: 0;
}

.prop-price {
  display: block;
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--brand);
  line-height: 1;
}

.prop-price-note {
  font-size: 0.78rem;
  color: var(--muted);
  display: block;
  margin-top: 0.3rem;
}

/* ── Stats Bar ── */
.prop-stats {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.prop-stat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 34, 44, 0.09);
  border-radius: 14px;
  padding: 0.65rem 1.1rem;
  font-size: 0.92rem;
  box-shadow: 0 2px 8px rgba(16, 34, 44, 0.06);
}

.prop-stat-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.prop-stat strong {
  font-weight: 700;
  color: var(--ink);
  display: block;
  line-height: 1.2;
}

.prop-stat span {
  color: var(--muted);
  font-size: 0.78rem;
}

/* ── Tabs ── */
.prop-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid rgba(16, 34, 44, 0.1);
  margin-bottom: 1.75rem;
}

.prop-tab {
  background: none;
  border: none;
  padding: 0.75rem 1.3rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  border-radius: 0;
}

.prop-tab:hover {
  color: var(--brand);
}

.prop-tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.prop-tab-panel {
  display: none;
  animation: fadeIn 0.25s ease;
}

.prop-tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.prop-description-text {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.75rem;
}

.feature-category h3 {
  font-size: 1rem;
  font-family: "DM Serif Display", serif;
  color: var(--brand);
  margin-bottom: 0.8rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.4;
}

.feature-list li::before {
  content: "✓";
  color: var(--brand);
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ── Location Tab ── */
.location-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.location-address {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 34, 44, 0.09);
  border-radius: 18px;
  padding: 1.3rem;
  box-shadow: 0 4px 16px rgba(16, 34, 44, 0.07);
}

.location-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
}

.location-address h4 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-family: "DM Serif Display", serif;
}

.location-address p {
  color: var(--muted);
  font-size: 0.9rem;
}

.location-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.75rem;
}

.location-highlight {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(16, 34, 44, 0.09);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.location-highlight strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand);
  margin-bottom: 0.25rem;
}

/* ── Sidebar ── */
.prop-sidebar {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.contact-card__price {
  font-family: "DM Serif Display", serif;
  font-size: 1.75rem;
  color: var(--brand);
  margin: 0 0 1.1rem;
  line-height: 1;
}

.realtor-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.3rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid rgba(16, 34, 44, 0.08);
}

.realtor-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #14b8a6);
  color: #fff;
  display: grid;
  place-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.realtor-info strong {
  display: block;
  font-size: 0.96rem;
}

.realtor-info p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.realtor-stars {
  font-size: 0.82rem;
  color: #f5a623;
  margin-top: 0.15rem;
}

.realtor-stars span {
  color: var(--muted);
  font-weight: 600;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-card__note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.85rem 0 0;
}

/* ── Quick Facts ── */
.prop-quick-facts {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 34, 44, 0.08);
  border-radius: 18px;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.prop-quick-facts h4 {
  font-size: 0.9rem;
  font-family: "DM Serif Display", serif;
  color: var(--brand);
  margin: 0 0 0.85rem;
}

.quick-fact {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(16, 34, 44, 0.06);
}

.quick-fact:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.quick-fact-label {
  color: var(--muted);
}

.quick-fact-value {
  font-weight: 600;
  color: var(--ink);
}

/* ── Similar Properties ── */
.similar-section .listing-item {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.similar-section .listing-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(16, 34, 44, 0.14);
}

.prop-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ── Footer ── */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.25rem 0;
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand-mark {
  background: linear-gradient(135deg, var(--brand), #14b8a6);
}

.site-footer p {
  font-size: 0.85rem;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 22, 0.96);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: min(90vw, 1200px);
  max-height: 85vh;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  transition: opacity 0.2s;
}

.lightbox-close {
  position: absolute;
  top: 1.3rem;
  right: 1.6rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.3rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  margin: 0;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .prop-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-thumbs {
    grid-template-rows: none;
    grid-template-columns: repeat(4, 1fr);
    height: 90px;
  }

  .gallery-thumb::after {
    display: none;
  }

  .prop-content {
    grid-template-columns: 1fr;
  }

  .prop-sidebar {
    position: static;
  }

  .prop-header {
    flex-direction: column;
    gap: 0.6rem;
  }

  .prop-price-block {
    text-align: left;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-thumbs {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
  }

  .prop-stats {
    gap: 0.5rem;
  }

  .prop-stat {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .location-highlights {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-nav {
    display: none;
  }

  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* ── Tour Modal ── */
.tour-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.tour-modal[hidden] {
  display: none;
}

.tour-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 22, 0.55);
  backdrop-filter: blur(5px);
}

.tour-modal-box {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: 24px;
  padding: 2.25rem 2rem 2rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 32px 80px rgba(16, 34, 44, 0.28);
  animation: tourModalIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tourModalIn {
  from { opacity: 0; transform: scale(0.9) translateY(24px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

.tour-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(16, 34, 44, 0.07);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.tour-modal-close:hover {
  background: rgba(16, 34, 44, 0.13);
  color: var(--ink);
}

.tour-modal-heading {
  font-size: 1.65rem;
  margin: 0.3rem 0 0;
}

.tour-modal-prop {
  font-size: 0.88rem !important;
  color: var(--brand) !important;
  font-weight: 600;
  min-height: 1.2em;
  margin-bottom: 0 !important;
}

.tour-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.4rem;
}

.tour-form label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.tour-form input {
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(16, 34, 44, 0.14);
  border-radius: 12px;
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 1rem;
  width: 100%;
}

.tour-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}

.tour-form input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.btn--wa {
  margin-top: 0.25rem;
  justify-content: center !important;
  gap: 0.5rem;
  background: #25d366 !important;
  border-color: #25d366 !important;
  color: #fff !important;
}

.btn--wa:hover {
  background: #1db954 !important;
  border-color: #1db954 !important;
}

.btn--wa:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ── TikTok Video Tab ── */
.video-embed-wrap {
  padding: 0.5rem 0 1.5rem;
}

.tiktok-embed-container {
  display: flex;
  justify-content: center;
}

.tiktok-iframe {
  width: 340px;
  height: 600px;
  border: none;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.video-link-fallback {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1rem 0;
}

.video-link-fallback p {
  color: var(--muted);
  font-size: 1rem;
}

@media (max-width: 400px) {
  .tiktok-iframe {
    width: 100%;
    height: 500px;
  }
}

/* ── Catalog View ── */
.catalog-header {
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.catalog-header .section-head {
  text-align: left;
}

.catalog-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-top: 0.35rem;
}

.catalog-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.catalog-search-wrap {
  flex: 1;
  min-width: 220px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--muted);
  pointer-events: none;
}

.catalog-search-input {
  width: 100%;
  padding: 0.8rem 1.1rem 0.8rem 2.8rem;
  border: 1.5px solid rgba(16, 34, 44, 0.14);
  border-radius: 14px;
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.catalog-search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}

.catalog-search-input::placeholder {
  color: var(--muted);
}

.catalog-filter {
  padding: 0.8rem 2.4rem 0.8rem 1.1rem;
  border: 1.5px solid rgba(16, 34, 44, 0.14);
  border-radius: 14px;
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234f6773' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
    no-repeat right 0.9rem center;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
  min-width: 170px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.catalog-filter:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}

/* ── Catalog Card Extras ── */
.catalog-location {
  font-size: 0.82rem !important;
  color: var(--brand) !important;
  margin: 0.2rem 0 !important;
}

.catalog-subtitle {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.3rem !important;
}

.catalog-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

/* ── Share button (catalog cards) ── */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1.5px solid rgba(16, 34, 44, 0.15);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}

.share-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(15, 139, 141, 0.06);
}

/* ── Share button (detail sidebar) ── */
.btn--share {
  gap: 0.5rem;
}

/* ── Catalog responsive ── */
@media (max-width: 640px) {
  .catalog-controls {
    flex-direction: column;
  }

  .catalog-search-wrap,
  .catalog-filter {
    width: 100%;
  }

  .catalog-card-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
