/* Maps View - Google Maps-inspired Styles */

/* Base Layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow: hidden;
}

.maps-container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* Map Section (Left - 70%) */
.map-section {
  flex: 1;
  position: relative;
  background: #f0f0f0;
}

#map {
  height: 100%;
  width: 100%;
}

/* Hide Leaflet attribution watermark */
.leaflet-control-attribution {
  display: none;
}

/* Hide default Leaflet zoom control */
.leaflet-control-zoom {
  display: none;
}

/* Search Panel (Right - 380px) */
.search-panel {
  width: 380px;
  background: #ffffff;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.search-panel-header {
  padding: 20px;
  border-bottom: 1px solid #e5e5e5;
}

.search-panel-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.search-panel-subtitle {
  font-size: 13px;
  color: #555555;
  margin-bottom: 16px;
}

/* Search Input */
.search-input-wrapper {
  position: relative;
  margin-bottom: 12px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #555555;
}

.search-panel-input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: border-color 0.2s;
}

.search-panel-input:focus {
  outline: none;
  border-color: #4a7c23;
}

/* Filter Tags */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.filter-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f5f5f5;
  border-radius: 20px;
  font-size: 12px;
  color: #555555;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tag:hover {
  background: #e8f5e9;
  color: #4a7c23;
}

.filter-tag.active {
  background: #4a7c23;
  color: #ffffff;
}

.filter-tag .remove-icon {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* Search Panel Body */
.search-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* Quick Filters */
.quick-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.quick-filter-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #555555;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-filter-btn:hover {
  background: #e8f5e9;
  border-color: #4a7c23;
  color: #4a7c23;
}

.quick-filter-btn.active {
  background: #4a7c23;
  border-color: #4a7c23;
  color: #ffffff;
}

.quick-filter-btn svg {
  width: 14px;
  height: 14px;
}

/* Filter Section */
.filter-section {
  margin-bottom: 20px;
}

.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: #555555;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #ffffff;
  cursor: pointer;
  margin-bottom: 8px;
}

.filter-select:focus {
  outline: none;
  border-color: #4a7c23;
}

/* Amenities Grid */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.amenity-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.amenity-checkbox:hover {
  border-color: #4a7c23;
  background: #f9f9f9;
}

.amenity-checkbox input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: #4a7c23;
  cursor: pointer;
}

.amenity-checkbox span {
  font-size: 13px;
  color: #333333;
}

.amenity-checkbox:has(input:checked) {
  border-color: #4a7c23;
  background: #e8f5e9;
}

/* Search Button */
.search-panel-btn {
  width: 100%;
  padding: 12px;
  background: #4a7c23;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.search-panel-btn:hover {
  background: #2d4a14;
}

/* Results Header */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.results-count {
  font-size: 13px;
  color: #555555;
}

.results-count strong {
  color: #1a1a1a;
}

.sort-select {
  padding: 6px 10px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
}

.sort-select:focus {
  outline: none;
  border-color: #4a7c23;
}

/* Results Tabs */
.results-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.results-tab {
  flex: 1;
  padding: 10px 16px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #555555;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.results-tab:hover {
  background: #e8f5e9;
  border-color: #4a7c23;
  color: #4a7c23;
}

.results-tab.active {
  background: #4a7c23;
  border-color: #4a7c23;
  color: #ffffff;
}

.tab-badge {
  background: rgba(255, 255, 255, 0.3);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
}

.results-tab.active .tab-badge {
  background: rgba(255, 255, 255, 0.2);
}

/* Property Cards */
.properties-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.property-card {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.property-card.saved {
  border-color: #f59e0b;
}

.property-card.applied {
  border-color: #3b82f6;
}

.property-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.property-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: linear-gradient(135deg, #4a7c23 0%, #7cb342 100%);
  transition: transform 0.3s ease;
}

.property-card:hover .property-card-image {
  transform: scale(1.05);
}

.property-card-content {
  padding: 12px 16px;
}

/* Card status badges */
.card-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  z-index: 10;
}

.card-status-badge.saved {
  background: #fef3c7;
  color: #d97706;
}

.card-status-badge.applied {
  background: #dbeafe;
  color: #2563eb;
}

.property-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.property-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  flex: 1;
}

.property-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #f59e0b;
  font-weight: 600;
}

.property-card-location {
  font-size: 13px;
  color: #555555;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.property-card-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
}

.card-distance {
  color: #4a7c23;
  font-weight: 500;
}

.property-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.property-card-price {
  font-size: 18px;
  font-weight: 700;
  color: #4a7c23;
}

.property-card-price span {
  font-size: 13px;
  font-weight: 400;
  color: #555555;
}

.property-card-btn {
  padding: 8px 16px;
  background: #4a7c23;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.property-card-btn:hover {
  background: #2d4a14;
}

/* Map Controls */
.map-controls {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-control-btn {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.map-control-btn:hover {
  background: #f5f5f5;
}

.map-control-btn:active {
  transform: scale(0.95);
}

.map-control-btn svg {
  width: 20px;
  height: 20px;
  color: #333333;
}

/* Map Legend */
.map-legend {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #333333;
}

.legend-marker {
  width: 16px;
  height: 16px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.legend-marker.available {
  background: #4a7c23;
}

.legend-marker.saved {
  background: #f59e0b;
}

.legend-marker.applied {
  background: #3b82f6;
}

/* Loading State */
.loading-properties {
  text-align: center;
  padding: 40px 20px;
  color: #555555;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e5e5;
  border-top-color: #4a7c23;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #555555;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: #e5e5e5;
}

.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.empty-state-description {
  font-size: 14px;
  color: #555555;
}

/* Scrollbar styling */
.search-panel-body::-webkit-scrollbar {
  width: 6px;
}

.search-panel-body::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.search-panel-body::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 3px;
}

.search-panel-body::-webkit-scrollbar-thumb:hover {
  background: #999999;
}

/* Property card animations */
.property-card {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Map popup animations */
.leaflet-popup-content {
  animation: popupFadeIn 0.2s ease-out;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Filter tag removal animation */
.filter-tag.removing {
  animation: tagRemove 0.2s ease-out forwards;
}

@keyframes tagRemove {
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}

/* Results count animation */
.results-count strong {
  transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 1024px) {
  .search-panel {
    width: 320px;
  }
}

/* Custom marker cluster styles */
.marker-cluster {
  background: rgba(74, 124, 35, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
}

.marker-cluster-small {
  width: 30px;
  height: 30px;
}

.marker-cluster-medium {
  width: 35px;
  height: 35px;
}

.marker-cluster-large {
  width: 40px;
  height: 40px;
}

/* Property card animations */
.property-card {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar styling */
.search-panel-body::-webkit-scrollbar {
  width: 6px;
}

.search-panel-body::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.search-panel-body::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 3px;
}

.search-panel-body::-webkit-scrollbar-thumb:hover {
  background: #999999;
}

/* Map popup animations */
.leaflet-popup-content {
  animation: popupFadeIn 0.2s ease-out;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Loading skeleton for property cards */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-image {
  height: 160px;
  border-radius: 12px 12px 0 0;
}

.skeleton-text {
  height: 16px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton-text.short {
  width: 60%;
}

/* Filter tag removal animation */
.filter-tag.removing {
  animation: tagRemove 0.2s ease-out forwards;
}

@keyframes tagRemove {
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}

/* Map control button active state */
.map-control-btn:active {
  transform: scale(0.95);
}

/* Property card hover effect */
.property-card:hover .property-card-image {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.property-card-image {
  transition: transform 0.3s ease;
}

/* Sort select dropdown */
.sort-select:focus {
  outline: none;
  border-color: #4a7c23;
}

/* Amenity checkbox custom styling */
.amenity-checkbox input[type='checkbox'] {
  cursor: pointer;
}

.amenity-checkbox:hover {
  border-color: #4a7c23;
  background: #f9f9f9;
}

.amenity-checkbox:has(input:checked) {
  border-color: #4a7c23;
  background: #e8f5e9;
}

/* Results count animation */
.results-count strong {
  transition: all 0.3s ease;
}

/* Login CTA Overlay */
.login-cta-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: auto;
  z-index: 1000;
  max-width: 380px;
}

.login-cta-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.login-cta-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #4a7c23 0%, #7cb342 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.login-cta-icon svg {
  width: 28px;
  height: 28px;
  color: #ffffff;
}

.login-cta-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.4;
}

.login-cta-description {
  font-size: 13px;
  color: #555555;
  margin-bottom: 16px;
  line-height: 1.5;
}

.login-cta-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.login-cta-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.login-cta-btn-primary {
  background: #4a7c23;
  color: #ffffff;
  border: none;
}

.login-cta-btn-primary:hover {
  background: #2d4a14;
}

.login-cta-btn-outline {
  background: transparent;
  color: #4a7c23;
  border: 1px solid #4a7c23;
}

.login-cta-btn-outline:hover {
  background: #e8f5e9;
}

.login-cta-dismiss {
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  color: #555555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.login-cta-dismiss:hover {
  background: #f5f5f5;
  color: #333333;
}

.login-cta-dismiss svg {
  width: 16px;
  height: 16px;
}

/* Premium Notice */
.premium-notice {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  margin-bottom: 16px;
}

.premium-notice svg {
  width: 20px;
  height: 20px;
  color: #d97706;
  flex-shrink: 0;
}

.premium-notice strong {
  color: #92400e;
  font-size: 13px;
}

.premium-notice div {
  font-size: 12px;
  color: #78350f;
  line-height: 1.4;
}

/* Property Detail State */
.property-detail-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.detail-back-button {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e5e5;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #4a7c23;
  cursor: pointer;
  transition: background 0.2s;
}

.back-btn:hover {
  background: #f5f5f5;
}

/* Detail Image */
.detail-image-container {
  position: relative;
  width: 100%;
  height: 220px;
  background: #f0f0f0;
}

.detail-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4a7c23 0%, #7cb342 100%);
  background-size: cover;
  background-position: center;
}

.detail-image-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* Detail Header */
.detail-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e5e5;
}

.detail-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.3;
}

.detail-rating-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rating-number {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.rating-stars {
  display: flex;
  gap: 2px;
}

.rating-count {
  font-size: 13px;
  color: #555555;
}

.detail-property-type {
  font-size: 13px;
  color: #555555;
}

/* Detail Tabs */
.detail-tabs {
  display: flex;
  border-bottom: 1px solid #e5e5e5;
  background: #ffffff;
}

.detail-tab {
  flex: 1;
  padding: 14px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 600;
  color: #555555;
  cursor: pointer;
  transition: all 0.2s;
}

.detail-tab:hover {
  color: #4a7c23;
}

.detail-tab.active {
  color: #4a7c23;
  border-bottom-color: #4a7c23;
}

/* Tab Content */
.detail-tab-content {
  flex: 1;
  overflow-y: auto;
}

.detail-tab-panel {
  display: none;
  padding: 20px;
}

.detail-tab-panel.active {
  display: block;
}

/* Detail Actions */
.detail-actions {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
}

.detail-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 64px;
}

.detail-action-btn:hover {
  background: #f5f5f5;
}

.detail-action-btn span:first-child {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0f2fe;
  border-radius: 50%;
  color: #0284c7;
}

.detail-action-btn:nth-child(2) span:first-child {
  background: #fce7f3;
  color: #db2777;
}

.detail-action-btn:nth-child(3) span:first-child {
  background: #d1fae5;
  color: #059669;
}

.detail-action-btn:nth-child(4) span:first-child {
  background: #fef3c7;
  color: #d97706;
}

.detail-action-btn:nth-child(5) span:first-child {
  background: #ede9fe;
  color: #7c3aed;
}

.detail-action-btn span:last-child {
  font-size: 12px;
  font-weight: 500;
  color: #333333;
}

/* Photos & Videos Section */
.photos-videos-section {
  margin-bottom: 24px;
}

.photo-video-grid {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.photo-video-grid::-webkit-scrollbar {
  height: 4px;
}

.photo-video-grid::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 2px;
}

.photo-video-grid::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 2px;
}

.photo-video-item {
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
}

.photo-video-item:hover {
  transform: scale(1.05);
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4a7c23 0%, #7cb342 100%);
}

.photo-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

.add-photos-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: #e0f2fe;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #0284c7;
  cursor: pointer;
  transition: background 0.2s;
}

.add-photos-btn:hover {
  background: #bae6fd;
}

/* Review Summary Section */
.review-summary-section {
  margin-bottom: 24px;
}

/* Detail Info Section */
.detail-info-section {
  margin-bottom: 24px;
}

.detail-info-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

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

.detail-info-icon {
  width: 20px;
  height: 20px;
  color: #4a7c23;
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-info-content {
  flex: 1;
}

.detail-info-label {
  font-size: 12px;
  color: #555555;
  margin-bottom: 4px;
}

.detail-info-value {
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.5;
}

/* Detail Amenities Section */
.detail-amenities-section {
  margin-bottom: 24px;
}

.detail-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.detail-amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.detail-amenity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f9f9f9;
  border-radius: 8px;
  font-size: 13px;
  color: #333333;
}

.detail-amenity-item span:first-child {
  color: #4a7c23;
}

/* Detail Description Section */
.detail-description-section {
  margin-bottom: 24px;
}

.detail-description {
  font-size: 14px;
  color: #555555;
  line-height: 1.6;
}

/* Review Summary */
.review-summary {
  display: flex;
  gap: 24px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
  margin-bottom: 16px;
}

.review-summary-left {
  flex: 1;
}

.review-bar-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-bar-label {
  font-size: 13px;
  color: #555555;
  width: 12px;
  text-align: right;
}

.review-bar-track {
  flex: 1;
  height: 8px;
  background: #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
}

.review-bar-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.review-summary-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.review-score {
  font-size: 48px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
}

.review-stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
}

.review-total {
  font-size: 13px;
  color: #0284c7;
  cursor: pointer;
}

.review-total:hover {
  text-decoration: underline;
}

/* Write Review Button */
.write-review-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: #e0f2fe;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #0284c7;
  cursor: pointer;
  margin-bottom: 20px;
  transition: background 0.2s;
}

.write-review-btn:hover {
  background: #bae6fd;
}

/* Reviews List */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Review Filters */
.review-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.review-filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #555555;
  cursor: pointer;
  transition: all 0.2s;
}

.review-filter-btn:hover {
  background: #e8f5e9;
  border-color: #4a7c23;
  color: #4a7c23;
}

.review-filter-btn.active {
  background: #4a7c23;
  border-color: #4a7c23;
  color: #ffffff;
}

.review-filter-btn svg {
  width: 14px;
  height: 14px;
}

.filter-count {
  font-size: 11px;
  opacity: 0.8;
}

.review-item {
  padding-bottom: 20px;
  border-bottom: 1px solid #f5f5f5;
}

.review-item:last-child {
  border-bottom: none;
}

.review-item-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.review-author-avatar {
  width: 36px;
  height: 36px;
  background: #4a7c23;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.review-author-info {
  flex: 1;
}

.review-author-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.review-date {
  font-size: 12px;
  color: #555555;
}

.review-item-rating {
  display: flex;
  gap: 2px;
}

.review-text {
  font-size: 14px;
  color: #333333;
  line-height: 1.6;
  margin-top: 8px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .search-panel {
    width: 100%;
    border-radius: 20px 20px 0 0;
    margin-top: -20px;
  }

  .detail-actions {
    flex-wrap: wrap;
  }

  .detail-action-btn {
    min-width: 60px;
  }

  .photo-video-grid {
    gap: 6px;
  }

  .photo-video-item {
    width: 100px;
    height: 75px;
  }

  .review-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }

  .review-filter-btn {
    flex-shrink: 0;
  }

  .review-summary {
    flex-direction: column;
    gap: 16px;
  }

  .map-controls {
    top: auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
  }

  .filter-tags {
    max-height: 60px;
    overflow-y: auto;
  }

  .login-cta-overlay {
    left: 50%;
    transform: translateX(-50%);
    bottom: 100px;
    max-width: calc(100% - 40px);
  }
}
