/* PROPERTY DETAILS PAGE */

/* Back to Search */
.back-to-search {
  padding: 15px 0;
  background: white;
  border-bottom: 1px solid #e5e9f2;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #0a3c72;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: #e6a01b;
  gap: 8px;
}

/* Property Main Section */
.property-main {
  padding: 30px 0;
  background: #f8f9fc;
}

/* Gallery Section */
.gallery-section {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.main-image {
  position: relative;
  width: 100%;
  padding-top: 66.67%;
  background: #e5e9f2;
  overflow: hidden;
}

.main-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-fsbo {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #0a3c72;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  z-index: 2;
}

.badge-price {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: #0a3c72;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 24px;
  font-weight: 900;
  z-index: 2;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.gallery-nav.prev {
  left: 15px;
}

.gallery-nav.next {
  right: 15px;
}

.image-counter {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}

.thumbnail-strip {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
}

.thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumbnail:hover {
  border-color: #e6a01b;
}

.thumbnail.active {
  border-color: #0a3c72;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Property Header */
.property-info {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.property-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 15px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid #d5dce6;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #0a3c72;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn:hover {
  border-color: #0a3c72;
  background: #f8f9fc;
}

.property-info h1 {
  font-size: 28px;
  font-weight: 900;
  color: #0b2f59;
  margin: 0 0 8px;
}

.property-address {
  font-size: 16px;
  color: #6c757d;
  margin: 0 0 20px;
}

.property-specs {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #0b2f59;
}

.listing-meta {
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 20px;
}

.separator {
  margin: 0 8px;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-primary-cta {
  background: linear-gradient(135deg, #e2a02b, #cf8507);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 3px 8px rgba(230, 160, 27, 0.3);
  transition: all 0.3s ease;
}

.btn-primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 13px rgba(230, 160, 27, 0.4);
}

.btn-secondary-cta {
  background: white;
  color: #0a3c72;
  border: 2px solid #0a3c72;
  border-radius: 6px;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-secondary-cta:hover {
  background: #0a3c72;
  color: white;
  transform: translateY(-2px);
}

.protection-badge {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #f8f9fc;
  border-radius: 6px;
  border: 1px solid #e5e9f2;
}

.protection-text strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: #0b2f59;
  margin-bottom: 4px;
}

.protection-text p {
  font-size: 12px;
  color: #6c757d;
  margin: 0;
  line-height: 1.4;
}

/* Contact Sidebar */
.contact-sidebar {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: #0b2f59;
}

.sidebar-header {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  padding: 20px;
  background: #0a3c72;
  border-radius: 8px 8px 0 0;
  margin: -24px -24px 24px -24px;
}

.sidebar-header svg {
  order: 2;
}

.sidebar-header-text {
  order: 1;
  flex: 1;
}

.sidebar-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.sidebar-header-text h2 {
  font-size: 22px;
  font-weight: 900;
  color: white;
  margin: 0 0 4px;
}

.sidebar-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

.contact-sidebar h4 {
  font-size: 16px;
  font-weight: 900;
  color: #0b2f59;
  margin: 0 0 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d5dce6;
  border-radius: 6px;
  background: white;
  color: #0b2f59;
  font-size: 14px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9ca3af;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0a3c72;
  background: #f8f9fc;
}

.btn-send-message {
  width: 100%;
  background: linear-gradient(135deg, #e2a02b, #cf8507);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 13px 24px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 3px 8px rgba(230, 160, 27, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.btn-send-message:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 13px rgba(230, 160, 27, 0.4);
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #6c757d;
  margin: 0 0 20px;
}

.why-buy-section {
  padding-top: 20px;
  border-top: 1px solid #e5e9f2;
  margin-bottom: 20px;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #0b2f59;
  margin-bottom: 10px;
  line-height: 1.4;
}

.benefits-list svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.payment-estimate {
  padding-top: 20px;
  border-top: 1px solid #e5e9f2;
}

.estimate-note {
  font-size: 11px;
  color: #6c757d;
  margin: 0 0 10px;
}

.payment-amount {
  font-size: 36px;
  font-weight: 900;
  color: #0b2f59;
  margin-bottom: 15px;
}

.payment-amount span {
  font-size: 18px;
  font-weight: 600;
}

.payment-breakdown {
  margin-bottom: 15px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #0b2f59;
  margin-bottom: 8px;
}

.calculator-link {
  font-size: 13px;
  font-weight: 700;
  color: #0a3c72;
  text-decoration: none;
  transition: color 0.3s ease;
}

.calculator-link:hover {
  color: #e6a01b;
}

/* Property Details Tabs */
.property-details-tabs {
  padding: 40px 0 60px;
  background: white;
}

.tabs-nav {
  display: flex;
  gap: 5px;
  margin-bottom: 30px;
  border-bottom: 2px solid #e5e9f2;
  overflow-x: auto;
}

.tab-link {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 900;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.tab-link:hover {
  color: #0a3c72;
}

.tab-link.active {
  color: #0a3c72;
  border-bottom-color: #0a3c72;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content h2 {
  font-size: 24px;
  font-weight: 900;
  color: #0b2f59;
  margin: 0 0 15px;
}

.tab-content p {
  font-size: 15px;
  color: #4c5f76;
  line-height: 1.7;
  margin-bottom: 20px;
}

.property-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e5e9f2;
}

.detail-label {
  font-size: 14px;
  font-weight: 600;
  color: #6c757d;
}

.detail-value {
  font-size: 14px;
  font-weight: 700;
  color: #0b2f59;
}

.location-address {
  font-size: 16px;
  font-weight: 600;
  color: #0b2f59;
  margin-bottom: 20px;
}

.map-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.map-image {
  width: 100%;
  height: auto;
  display: block;
}

.btn-view-map {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: #0a3c72;
  border: 2px solid #0a3c72;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.btn-view-map:hover {
  background: #0a3c72;
  color: white;
  transform: translateX(-50%) translateY(-2px);
}

/* CTA Section */
.cta-section {
  padding: 50px 0;
  background: #0a3c72;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
}

.cta-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-icon svg {
  width: 35px;
  height: 35px;
}

.cta-content-text {
  flex: 1;
  color: white;
  text-align: left;
}

.cta-content-text h3 {
  font-size: 22px;
  font-weight: 900;
  color: white;
  margin: 0 0 6px;
  line-height: 1.3;
}

.cta-content-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.btn-start-listing {
  background: linear-gradient(135deg, #e2a02b, #cf8507);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 14px 32px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 3px 8px rgba(230, 160, 27, 0.3);
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-start-listing:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 13px rgba(230, 160, 27, 0.4);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .property-main {
    padding: 25px 0;
  }

  .property-info h1 {
    font-size: 24px;
  }

  .contact-sidebar {
    margin-top: 20px;
  }

  .property-details-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 30px 25px;
  }

  .btn-start-listing {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .property-main {
    padding: 20px 0;
  }

  .property-info {
    padding: 16px;
  }

  .property-info h1 {
    font-size: 22px;
  }

  .property-specs {
    gap: 15px;
  }

  .spec-item {
    font-size: 13px;
  }

  .cta-buttons {
    gap: 8px;
  }

  .contact-sidebar {
    padding: 20px;
  }

  .sidebar-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .payment-amount {
    font-size: 32px;
  }

  .tabs-nav {
    gap: 3px;
  }

  .tab-link {
    padding: 10px 16px;
    font-size: 11px;
  }

  .tab-content h2 {
    font-size: 22px;
  }

  .cta-content-text h3 {
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .badge-fsbo {
    font-size: 10px;
    padding: 6px 12px;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
  }

  .property-info h1 {
    font-size: 20px;
  }

  .property-specs {
    flex-direction: column;
    gap: 10px;
  }

  .action-btn {
    padding: 7px 12px;
    font-size: 12px;
  }

  .sidebar-header-text h2 {
    font-size: 18px;
  }

  .payment-amount {
    font-size: 28px;
  }

  .tab-link {
    padding: 8px 12px;
    font-size: 10px;
  }

  .cta-box {
    padding: 25px 20px;
  }

  .cta-content-text h3 {
    font-size: 18px;
  }
}
