/* Property Detail Modal Styles */
.property-detail {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Image Gallery Slider */
.property-gallery-slider {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.gallery-main {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.gallery-slides {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
  width: 100%;
}

.gallery-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.gallery-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Gallery Controls */
.gallery-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.gallery-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #333;
  pointer-events: all;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gallery-btn:hover {
  background: white;
  transform: scale(1.1);
}

.gallery-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Gallery Progress Bar */
.gallery-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
}

.gallery-progress-bar {
  height: 100%;
  background: #1a73e8;
  width: 0;
  transition: width linear;
}

.gallery-progress-bar.active {
  animation: progressBar 10s linear infinite;
}

@keyframes progressBar {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Gallery Indicators */
.gallery-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-dot.active {
  background: white;
  width: 30px;
  border-radius: 5px;
}

/* Gallery Counter */
.gallery-counter {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  backdrop-filter: blur(10px);
}

/* Thumbnail Strip */
.gallery-thumbnails {
  display: flex;
  gap: 10px;
  padding: 15px;
  background: white;
  overflow-x: auto;
  scroll-behavior: smooth;
  border-top: 1px solid #e9ecef;
}

.gallery-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.gallery-thumb {
  min-width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb.active {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.gallery-thumb:hover {
  transform: scale(1.05);
}

/* Property Info Container */
.property-info-container {
  padding: 30px;
  background: #f8f9fa;
}

/* Property Header Card */
.property-header-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.property-title-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.property-title-info h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 8px;
  font-weight: 600;
}

.property-badges {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge.verified {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge.featured {
  background: #fff3e0;
  color: #e65100;
}

.badge.hot {
  background: #ffebee;
  color: #c62828;
}

.property-price-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  min-width: 200px;
}

.price-label {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 5px;
}

.price-value {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 5px;
}

.price-per-m2 {
  font-size: 14px;
  opacity: 0.9;
}

/* Stats Grid */
.property-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  font-size: 24px;
  color: #1a73e8;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 13px;
  color: #666;
}

/* Info Cards */
.info-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.info-card h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card h3 i {
  color: #1a73e8;
}

/* Details Grid */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.detail-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.detail-item:hover {
  background: #e3f2fd;
  transform: translateX(5px);
}

.detail-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  margin-right: 15px;
  color: #1a73e8;
}

.detail-content {
  flex: 1;
}

.detail-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 2px;
}

.detail-value {
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #e8f5e9;
  border-radius: 8px;
  font-size: 14px;
  color: #2e7d32;
}

.feature-item i {
  font-size: 16px;
}

/* Agent Contact Card */
.agent-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 30px;
  color: white;
  position: relative;
  overflow: hidden;
}

.agent-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.agent-header {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.agent-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid white;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-info {
  flex: 1;
}

.agent-name {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 5px;
}

.agent-title {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 3px;
}

.agent-company {
  font-size: 14px;
  opacity: 0.9;
}

.agent-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.agent-stars {
  display: flex;
  gap: 3px;
}

.agent-stars i {
  color: #ffd700;
}

.agent-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.agent-stat {
  text-align: center;
}

.agent-stat-value {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
}

.agent-stat-label {
  font-size: 12px;
  opacity: 0.9;
}

/* Contact Buttons */
.contact-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
}

.contact-btn {
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.contact-btn.primary {
  background: white;
  color: #333;
}

.contact-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contact-btn.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

.contact-btn.zalo {
  background: #0068ff;
  color: white;
}

.contact-btn.facebook {
  background: #1877f2;
  color: white;
}

.contact-btn.email {
  background: #ea4335;
  color: white;
}

/* Location Card */
.location-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.location-map {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.location-details {
  display: grid;
  gap: 12px;
}

.location-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.location-item i {
  width: 20px;
  color: #1a73e8;
}

/* Nearby Places */
.nearby-places {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.nearby-place {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nearby-place:hover {
  background: #e3f2fd;
  transform: translateX(5px);
}

.nearby-place-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  color: #1a73e8;
}

.nearby-place-info {
  flex: 1;
}

.nearby-place-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
}

.nearby-place-distance {
  font-size: 12px;
  color: #999;
}

/* Action Footer */
.property-action-footer {
  position: sticky;
  bottom: 0;
  background: white;
  border-top: 1px solid #e9ecef;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.footer-price {
  flex: 1;
}

.footer-price-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 5px;
}

.footer-price-value {
  font-size: 24px;
  color: #dc3545;
  font-weight: bold;
}

.footer-actions {
  display: flex;
  gap: 15px;
}

.footer-btn {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.footer-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.footer-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.footer-btn.secondary {
  background: white;
  color: #333;
  border: 2px solid #e9ecef;
}

.footer-btn.secondary:hover {
  background: #f8f9fa;
  border-color: #1a73e8;
  color: #1a73e8;
}

/* Responsive Gallery */
@media (max-width: 768px) {
  .gallery-main {
    height: 300px;
  }

  .contact-buttons {
    grid-template-columns: 1fr;
  }

  .property-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .property-action-footer {
    flex-direction: column;
    gap: 15px;
  }

  .footer-actions {
    width: 100%;
  }

  .footer-btn {
    flex: 1;
    justify-content: center;
  }
}
