/* Listing Detail Page Styles */

/* Container */
#listing-detail-container {
  padding: 2rem 0;
}

/* Hero Section */
.listings-header {
  background: #f8f9fa;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.detail-page-subtitle {
  color: #ffb81c;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* 가격/위치/공유 히어로 카드 - 투명한 배경 */
.price-location-hero-card {
background: rgba(255, 255, 255, 255.9);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 0px solid rgba(255, 255, 255, 0.3);
border-radius: 8px;
padding: 1.15rem;
display: flex;
align-items: center;
gap: 2rem;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
transition: all 0.2s ease;
max-width: 800px;
margin: 0 auto;
}

.price-location-hero-card:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
background: rgba(255, 255, 255, 0.9);
}

/* 가격 섹션 스타일 */
.price-location-hero-card .price-section {
display: flex;
align-items: center;
gap: 1rem;
flex: 1;
}

.price-location-hero-card .price-icon {
width: 40px;
height: 40px;
background: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
color: #2c3e50;
font-size: 25px;
transition: all 0.2s ease;
}

.price-location-hero-card .price-icon:hover {
background: #e9ecef;
color: #000;
}

.price-location-hero-card .price-info {
display: flex;
flex-direction: column;

}

.price-location-hero-card .price-label {
color: #666;
font-size: 0.7rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.5px;
}

.price-location-hero-card .price-value {
color: #2c3e50;
font-size: 1.05rem;
font-weight: 500;
line-height: 0.7;
}

/* 위치 섹션 스타일 */
.price-location-hero-card .location-section {
display: flex;
align-items: center;
gap: 1rem;
flex: 2;
}

.price-location-hero-card .location-icon {
width: 40px;
height: 40px;
background: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
color: #2c3e50;
font-size: 25px;
transition: all 0.2s ease;
}

.price-location-hero-card .location-icon:hover {
background: #e9ecef;
color: #000;
}

.price-location-hero-card .location-info {
display: flex;
flex-direction: column;
gap: 0.25rem;
}

.price-location-hero-card .location-label {
color: #6c757d;
font-size: 0.7rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.5px;
}

.price-location-hero-card .location-value {
color: #2c3e50;
font-size: 1.05rem;
font-weight: 500;
line-height: 0.7;
}

/* 공유 섹션 스타일 */
.price-location-hero-card .share-section {
display: flex;
flex-direction: column;


}

.price-location-hero-card .share-label {
color: #6c757d;
font-size: 0.75rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.5px;
}

.price-location-hero-card .share-buttons {
display: flex;
gap: 0.5rem;
}

/* 소셜 버튼 스타일 - 깔끔한 디자인 */
.price-location-hero-card .share-btn {
width: 40px;
height: 40px;
border: 0px solid #ea4335;
border-radius: 60px;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
cursor: pointer;
transition: all 0.2s ease;
background: #ffb81c;
color: #fff;
}

.price-location-hero-card .share-btn:hover {
background: #000000;
color: #ffffff;
border-color: #000000;
transform: translateY(-1px);
}

.price-location-hero-card .share-btn:active {
transform: translateY(0);
}

/* Overview Section */
.overview-section {
  background: #fff;
  border-radius: 3px;
  padding: 20px;
  margin-bottom: 25px;
  margin-top: -65px;
}

.overview-header {
  text-align: center;
  margin-bottom: 20px;
}

.overview-note {
  font-size: 0.75rem;
  color: #666;
  margin: 0 0 8px 0;
  text-align: right;
}

.overview-section h2 {
  font-size: 1.6rem;
  font-weight: 300;
  margin: 5px 0 15px 0;
  color: #333;
  text-align: left;
}

.overview-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 0 0 20px 0;
}

.overview-header .action-buttons {
  display: block !important;
  margin: 10px 0 5px 0 !important;
  width: 100% !important;
  text-align: right !important;
}

.overview-header .favorite-btn,
.overview-header .alert-btn {
  width: 35px !important;
  height: 35px !important;
  border: 1px solid #ddd !important;
  border-radius: 50% !important;
  background: white !important;
  color: #666 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  margin: 0 5px 0 0 !important;
  vertical-align: top !important;
  float: none !important;
  position: static !important;
}

.overview-header .favorite-btn:hover, .overview-header .alert-btn:hover {
  background: #f8f9fa !important;
  border-color: #ccc !important;
}

.overview-header .favorite-btn.active, .overview-header .alert-btn.active {
  background: #ffb81c !important;
  border-color: #ffb81c !important;
  color: white !important;
}

/* Property Details Row */
.property-details-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 15px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
}

.detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-icon i {
  color: #69727D;
  font-size: 2rem;
}

.detail-content {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 14px;
  color: #666;


}

.detail-value {
  font-size: 16px;
  font-weight: 400;
  color: #000;
}

/* Stats Row */
.stats-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.stat-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon i {
  color: #69727D;
  font-size: 1.6rem;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 14px;
  color: #666;
}

.stat-value {
  font-size: 16px;
  color: #000;
}

/* Descriptions Section */
.descriptions-section {
  padding: 10px;
  margin-bottom: 30px;
}

.descriptions-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.description-content {
  font-size: 1rem;
  line-height: 1.6;
  color: #000;
  margin-bottom: 25px;
}

.features-list {
  display: flex;
  gap: 30px;
}

.features-column {
  flex: 1;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.feature-item i {
  margin-right: 10px;
  font-size: 0.9rem;
}

.feature-item span {
  font-size: 0.95rem;
  color: #555;
}

/* Gallery Section */
.gallery-section {
  padding: 10px;
  margin-bottom: 30px;
}

/* Discussion Section - Modern Design */
.discussion-section {
  margin-top: 40px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid #f0f2f5;
}

.discussion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #e9ecef;
}

.discussion-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discussion-title h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.comment-count {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.sort-options {
  position: relative;
}

.sort-select {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: #495057;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

.sort-select:focus {
  outline: none;
  border-color: #ffb81c;
  box-shadow: 0 0 0 3px rgba(255, 184, 28, 0.1);
}

/* New Comment Box */
.new-comment-box {
  display: flex;
  gap: 16px;
  padding: 28px;
  background: #fafbfc;
  border-bottom: 1px solid #e9ecef;
}

.user-avatar {
  flex-shrink: 0;
}

.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.avatar-circle.bg-blue {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.avatar-circle.bg-green {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.avatar-circle.bg-purple {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.avatar-circle.bg-orange {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.comment-input-area {
  flex: 1;
}

.comment-textarea {
  width: 100%;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  transition: all 0.3s ease;
  font-family: inherit;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.comment-textarea:focus {
  outline: none;
  border-color: #ffb81c;
  box-shadow: 0 0 0 3px rgba(255, 184, 28, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.comment-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.char-counter {
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: 500;
}

.action-buttons {
  display: flex;
  gap: 12px;
}

.btn-cancel, .btn-post {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-cancel {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #dee2e6;
}

.btn-cancel:hover {
  background: #e9ecef;
  color: #495057;
}

.btn-post {
  background: linear-gradient(135deg, #ffb81c 0%, #e6a519 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 184, 28, 0.3);
}

.btn-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 184, 28, 0.4);
}

/* Login Required Section */
.login-required {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 28px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #e9ecef;
}

.login-icon {
  font-size: 3rem;
  color: #dee2e6;
}

.login-text h4 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
}

.login-text p {
  margin: 0 0 16px 0;
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.5;
}

.login-btn {
  display: inline-block;
  background: linear-gradient(135deg, #ffb81c 0%, #e6a519 100%);
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 184, 28, 0.3);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 184, 28, 0.4);
  text-decoration: none;
  color: white;
}

/* Comments Container */
.comments-container {
  padding: 0;
}

.comment-thread {
  border-bottom: 1px solid #f0f2f5;
}

.comment-thread:last-child {
  border-bottom: none;
}

.comment-item {
  display: flex;
  gap: 16px;
  padding: 24px 28px;
  transition: background-color 0.3s ease;
}

.comment-item:hover {
  background: #fafbfc;
}

.reply-item {
  margin-left: 60px;
  padding-left: 28px;
  border-left: 3px solid #e9ecef;
  background: #f8f9fa;
}

.reply-item:hover {
  background: #f1f3f4;
}

.comment-avatar {
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.author-name {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 0.95rem;
}

.comment-time {
  color: #6c757d;
  font-size: 0.85rem;
  font-weight: 500;
}

.verified-badge, .realtor-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 12px;
  font-weight: 600;
}

.verified-badge {
  background: #e8f5e8;
  color: #2e7d32;
}

.realtor-badge {
  background: #fff3e0;
  color: #f57c00;
}

.comment-text {
  color: #374151;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 16px;
  word-wrap: break-word;
}

.comment-actions-bar {
  display: flex;
  gap: 20px;
  align-items: center;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #6c757d;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: #f8f9fa;
  color: #495057;
}

.like-btn:hover {
  color: #dc3545;
}

.reply-btn:hover {
  color: #0d6efd;
}

.share-btn:hover {
  color: #198754;
}

/* Load More Section */
.load-more-section {
  padding: 24px 28px;
  text-align: center;
  background: #fafbfc;
}

.load-more-btn {
  background: white;
  border: 2px solid #e9ecef;
  color: #6c757d;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.load-more-btn:hover {
  background: #f8f9fa;
  border-color: #dee2e6;
  color: #495057;
  transform: translateY(-1px);
}

/* Loading and Error States */
.loading-comments {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
  font-size: 0.95rem;
}

.loading-comments i {
  margin-right: 8px;
  color: #ffb81c;
}

.error-message {
  text-align: center;
  padding: 40px 20px;
  color: #dc3545;
  font-size: 0.95rem;
  background: #f8d7da;
  border-radius: 8px;
  margin: 20px;
}

.no-comments {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
  font-size: 1rem;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .discussion-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .new-comment-box {
    flex-direction: column;
    gap: 12px;
  }
  
  .comment-actions {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .action-buttons {
    width: 100%;
    justify-content: flex-end;
  }
  
  .comment-item {
    padding: 20px 16px;
  }
  
  .reply-item {
    margin-left: 30px;
    padding-left: 16px;
  }
  
  .login-required {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

  
.gallery-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.main-gallery-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 525px;
  margin-bottom: 15px;
}

.main-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease-in-out;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.main-gallery-image:hover .gallery-nav {
  opacity: 1;
}

.gallery-nav-btn {
  background: rgba(255, 255, 255, 0.5);
  border: none;
  color: #333;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-nav-btn:hover {
  background: white;
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);    
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.thumbnail-item {
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 8px;
}

.thumbnail-item:hover {
  transform: scale(1.05);
  border-color: #ffb81c;
}

.thumbnail-item.active {
  border-color: #ffb81c;
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(255, 184, 28, 0.3);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* Contact Agent Sticky Section */
.contact-agent-sticky {
  position: sticky;
  top: 20px;
  z-index: 100;
}

.contact-agent-card {
  background: white;
  padding: 35px;
}

.agent-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.agent-card-header h3 {
  font-size: 1.4rem;
  margin: 0;
  color: #000;
  font-weight: 300;    
}

.action-buttons {
  display: flex;
  gap: 10px;
}

.action-btn {
  width: 35px;
  height: 35px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: white;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: #f8f9fa;
  border-color: #ccc;
}

.action-btn.active {
  background: #ffb81c;
  border-color: #ffb81c;
  color: white;
}

.agent-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.agent-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

.agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #333;
}

.agent-title {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

.contact-buttons {
  display: flex;
  gap: 5px;
  margin-bottom: 25px;
}

.contact-btn {
  width: 35px;
  height: 35px;
  border-radius: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-size: 1.0rem;
  transition: all 0.3s ease;
}

.phone-btn {
  background: #007bff;
}

.phone-btn:hover {
  background: #0056b3;
  color: white;
}

.whatsapp-btn {
  background: #FFE812;
  color:#000;
}

.whatsapp-btn:hover {
  background: #1da851;
  color: #FFE812;
}

.email-btn {
  background: #dc3545;
}

.email-btn:hover {
  background: #c82333;
  color: white;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 5px;
}

.form-control {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #ffb81c;
  box-shadow: 0 0 0 2px rgba(255, 184, 28, 0.2);
}

.send-message-btn {
  background: #ffb81c;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.send-message-btn:hover {
  background: #e6a519;
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 991px) {
  .contact-agent-sticky {
      position: static;
      margin-top: 30px;
  }
  
  .price-location-hero-card {
      flex-direction: column;
      gap: 1.5rem;
      text-align: center;
  }
}

@media (max-width: 768px) {
  .property-details-row,
  .stats-row {
      flex-direction: column;
      gap: 10px;
  }
  
  .features-list {
      flex-direction: column;
      gap: 15px;
  }
  
  .thumbnail-grid {
      grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-buttons {
      gap: 10px;
  }
  
  .contact-btn {
      width: 40px;
      height: 40px;
      font-size: 1rem;
  }
}

@media (max-width: 480px) {
  #listing-detail-container {
      padding: 1rem 0;
  }
  
  .overview-section,
  .descriptions-section,
  .gallery-section,
  .contact-agent-card {
      padding: 20px;
  }
  
  .thumbnail-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}
