/* Property Detail Page Styles */

/* Property Hero Section */
.property-detail-hero {
  padding-top: 120px;
  padding-bottom: 30px;
  background-color: #f9f9f9;
}

.back-to-catalog {
  margin-bottom: 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: #333;
  transition: color 0.3s;
  font-size: 1rem;
}

.back-link i {
  margin-right: 8px;
  font-size: 0.9rem;
}

.back-link:hover {
  color: #8b0000;
}

.property-status-tag {
  display: inline-block;
  background-color: #8b0000;
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.property-title {
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.property-location {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  color: #555;
}

.property-location i {
  margin-right: 8px;
  color: #8b0000;
}

/* Property Gallery */
.property-gallery {
  padding: 30px 0 50px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.gallery-main {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  cursor: pointer;
}

.gallery-featured-img:hover {
  transform: scale(1.02);
}



.gallery-thumbnails {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 15px;
  height: 500px;
}

.thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  cursor: pointer;
}

.thumbnail img:hover {
  transform: scale(1.05);
}

.thumbnail:hover img {
  transform: scale(1.05);
}

.thumbnail.active {
  border: 2px solid #8b0000;
}

.view-all {
  position: relative;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-all-overlay {
  color: white;
  text-align: center;
}

.view-all-overlay i {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: block;
}

.view-all-overlay span {
  font-weight: 500;
}

/* Property Overview Section */
.property-overview {
  padding: 50px 0;
  background-color: #fff;
}

.overview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.overview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eaeaea;
}

.overview-price-tag {
  font-size: 2.4rem;
  font-weight: 700;
  color: #8b0000;
}

.price-period {
  font-size: 1rem;
  font-weight: 500;
  color: #777;
}

.overview-core-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.core-detail {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  color: #333;
}

.core-detail i {
  font-size: 1.3rem;
  color: #8b0000;
  margin-right: 8px;
}

/* Property Description */
.overview-description {
  margin-bottom: 40px;
}

.overview-description h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #333;
}

.overview-description p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: #555;
}

/* Property Features */
.property-features-section {
  margin-bottom: 40px;
}

.property-features-section h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #333;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.feature-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: none !important;
}

.feature-item:hover {
  transform: none !important;
}

.feature-item i {
  font-size: 1.3rem;
  color: #8b0000;
  margin-right: 10px;
}

.feature-item span {
  font-weight: 500;
  color: #333;
}

/* Property Details Table */
.property-details-section {
  margin-bottom: 40px;
}

.property-details-section h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #333;
}

.details-table {
  border: 1px solid #eaeaea;
  border-radius: 8px;
  overflow: hidden;
}

.detail-row {
  display: flex;
  border-bottom: 1px solid #eaeaea;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  width: 40%;
  padding: 15px;
  background-color: #f9f9f9;
  font-weight: 600;
  color: #333;
}

.detail-value {
  width: 60%;
  padding: 15px;
  color: #555;
}

/* Sidebar Styles */
.overview-sidebar {
  position: relative;
}

.sidebar-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 25px;
  margin-bottom: 30px;
}

.sidebar-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
}

/* Agent Card */
.agent-header {
  display: flex;
  margin-bottom: 20px;
}

.agent-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.agent-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-info h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.agent-position {
  color: #777;
  margin-bottom: 10px;
}

.agent-rating {
  color: #FFC107;
}

.agent-rating span {
  color: #333;
  margin-left: 5px;
}

.agent-contact {
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.contact-item i {
  font-size: 1.1rem;
  color: #8b0000;
  margin-right: 10px;
}

.agent-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.full-width {
  width: 100%;
  text-align: center;
}

.btn-secondary {
  background-color: #8b0000;
  color: white;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.3s;
  text-decoration: none;
  border: 1px solid #8b00003b;
}

.btn-secondary:hover {
  background-color: transparent;
  color: #8b0000;
}

.btn-outline {
  background-color: transparent;
  color: #333;
  border: 1px solid #ddd;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-outline:hover {
  background-color: #f9f9f9;
  border-color: #8b0000;
  color: #8b0000;
}

/* Inquiry Form */
.inquiry-form .form-group {
  margin-bottom: 15px;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: #8b0000;
}

.form-checkbox {
  display: flex;
  align-items: center;
}

.form-checkbox input {
  width: auto;
  margin-right: 10px;
}

.form-checkbox label {
  font-size: 0.85rem;
  color: #777;
}

.btn-primary {
  background-color: #8b0000;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #6a0000;
}

/* Location Map */
.map-container {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.location-map {
  width: 100%;
  height: auto;
  display: block;
}

.location-address {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  color: #333;
}

.location-address i {
  color: #8b0000;
  margin-right: 8px;
}

.location-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.location-feature {
  display: flex;
  align-items: center;
}

.location-feature i {
  font-size: 1.2rem;
  color: #8b0000;
  margin-right: 10px;
}

.feature-detail strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 3px;
}

.feature-detail span {
  font-size: 0.85rem;
  color: #777;
}

/* Similar Properties Section */
.similar-properties {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 40px;
  color: #333;
}

.properties-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.property-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.property-image {
  position: relative;
  height: 220px;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #8b0000;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.property-tag.rent {
  background-color: #1e88e5;
}

.property-details {
  padding: 20px;
}

.property-details h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

.property-details .property-location {
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.property-details .property-features {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #555;
}

.property-details .property-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #8b0000;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .properties-slider {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-main {
    height: 400px;
  }
  
  .gallery-thumbnails {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr;
    height: auto;
  }
  
  .overview-grid {
    grid-template-columns: 1fr;
  }
  
  .overview-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .overview-price-tag {
    margin-bottom: 15px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .property-title {
    font-size: 2.2rem;
  }
  
  .gallery-main {
    height: 300px;
  }
  
  .gallery-thumbnails {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
  
  .properties-slider {
    grid-template-columns: 1fr;
  }
  
  .location-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .gallery-thumbnails {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 100px 100px;
  }
  
  .property-title {
    font-size: 1.8rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .detail-row {
    flex-direction: column;
  }
  
  .detail-label,
  .detail-value {
    width: 100%;
  }
}

.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.gallery-slide {
  display: none;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.gallery-slide img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
}

.gallery-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2100;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.4);
}

.gallery-nav.prev {
  left: 20px;
}

.gallery-nav.next {
  right: 20px;
}

.gallery-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 15px;
  border-radius: 20px;
}

/* Gallery Modal Styles */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.gallery-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 0;
}

.gallery-slide-container {
  position: relative;
  width: 100%;
  height: calc(100% - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-slide.active {
  display: flex;
  opacity: 1;
  z-index: 2;
}

.gallery-slide img {
  max-width: 90%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2100;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.gallery-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 2100;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-nav.prev {
  left: 20px;
}

.gallery-nav.next {
  right: 20px;
}

.gallery-counter {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
}

.gallery-thumbnails-modal {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  display: flex;
  gap: 10px;
  max-width: 90%;
  overflow-x: auto;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  margin-top: 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.gallery-thumbnails-modal::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbnails-modal::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-thumbnails-modal::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.gallery-thumbnails-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.modal-thumbnail {
  width: 80px;
  height: 60px;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
  flex-shrink: 0;
}

.modal-thumbnail:hover {
  opacity: 0.8;
}

.modal-thumbnail.active {
  opacity: 1;
  border: 2px solid #fff;
}

.modal-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-slide-container {
    height: calc(100% - 100px);
  }
  
  .gallery-slide img {
    max-height: 50vh;
  }
  
  .gallery-nav {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .gallery-nav.prev {
    left: 10px;
  }
  
  .gallery-nav.next {
    right: 10px;
  }
  
  .gallery-thumbnails-modal {
    gap: 5px;
    margin-top: 10px;
  }
  
  .modal-thumbnail {
    width: 60px;
    height: 45px;
  }
  
  .gallery-modal-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}