:root {
  --primary: #4A6FA5;
  --secondary: #3AB795;
  --accent: #FF7E5D;
  --light: #F7F9FA;
  --dark: #333333;
  --gray: #666666;
  --light-gray: #DDDDDD;
  --success: #2e7d32;
  --warning: #ed6c02;
  --error: #d32f2f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.legal-notice {
  background-color: #fff8e1;
  border-left: 4px solid var(--warning);
  padding: 15px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  border-radius: 0 8px 8px 0;
}

.header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 30px 20px;
  border-radius: 15px;
  margin-bottom: 15px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.property-name {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: white;
}

.property-subtitle {
  font-size: 1.1rem;
  margin-bottom: 15px;
  opacity: 0.9;
  color: white;
}

.property-location {
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0.9;
  color: white;
}

.tabs {
  display: flex;
  border-bottom: 2px solid var(--light-gray);
  margin-bottom: 25px;
  overflow-x: auto;
  position: sticky;
  top: 0;
  background-color: var(--light);
  z-index: 10;
  padding-top: 10px;
}

.tab {
  padding: 15px 25px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray);
  transition: all 0.3s ease;
}

.tab:hover {
  color: var(--primary);
}

.tab.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.tab-content {
  display: none;
  padding: 20px 0;
  animation: fadeIn 0.4s ease;
}

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

.tab-content.active {
  display: block;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  margin-right: 15px;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--dark);
}

.card-subtitle {
  font-size: 0.95rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-content {
  color: var(--dark);
  margin-bottom: 15px;
  line-height: 1.7;
}

.category-tag {
  display: inline-block;
  background: rgba(74, 111, 165, 0.1);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
}

.form-container {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}

.form-title {
  font-size: 1.6rem;
  margin-bottom: 25px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--light-gray);
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn:hover {
  background-color: #3a5a8c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
  background-color: var(--secondary);
}

.btn-secondary:hover {
  background-color: #2e9b7d;
}

.btn-accent {
  background-color: var(--accent);
}

.btn-accent:hover {
  background-color: #e66a4a;
}

.btn-large {
  padding: 16px 35px;
  font-size: 1.1rem;
}

.btn:disabled {
  background-color: var(--light-gray);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.host-indicator {
  background: var(--secondary);
  color: white;
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.admin-indicator {
  background: var(--accent);
  color: white;
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--success);
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.toast.show {
  opacity: 1;
}

.toast.error {
  background-color: var(--error);
}

.toast.warning {
  background-color: var(--warning);
}

.toast.info {
  background-color: var(--primary);
}

.guide-content {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  animation: fadeIn 0.5s ease;
}

.public-guide-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.guide-item {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  border-left: 4px solid var(--secondary);
  transition: all 0.3s ease;
}

.guide-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.guide-item h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-item p {
  color: var(--dark);
  line-height: 1.7;
}

.recommendation-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  border-left: 4px solid var(--primary);
  position: relative;
}

.recommendation-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.recommendation-author {
  font-weight: 600;
  color: var(--primary);
}

.recommendation-date {
  font-size: 0.85rem;
  color: var(--gray);
  margin-left: auto;
}

.recommendation-content {
  margin-bottom: 15px;
  line-height: 1.6;
}

.recommendation-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--light-gray);
}

.social-share {
  display: flex;
  gap: 12px;
}

.social-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f5;
  color: var(--dark);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-share a:hover {
  transform: translateY(-3px);
  background: var(--primary);
  color: white;
}

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

.rating-text {
  font-size: 0.9rem;
  color: var(--gray);
}

.feedback-history-item {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 10px;
  border-left: 3px solid var(--secondary);
}

.feedback-rating {
  display: inline-flex;
  margin-top: 5px;
}

.feedback-star {
  color: #FFD700;
}

.admin-section {
  background: #f9f2ff;
  border: 2px solid #8a2be2;
  border-radius: 12px;
  padding: 25px;
  margin-top: 40px;
  display: none;
}

.admin-tabs {
  display: flex;
  border-bottom: 2px solid var(--light-gray);
  margin-bottom: 25px;
  overflow-x: auto;
}

.admin-tab {
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray);
  transition: all 0.3s ease;
}

.admin-tab:hover {
  color: #8a2be2;
}

.admin-tab.active {
  border-bottom-color: #8a2be2;
  color: #8a2be2;
}

.admin-tab-content {
  display: none;
  padding: 20px 0;
}

.admin-tab-content.active {
  display: block;
}

.qr-code-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
}

.property-list {
  margin-top: 20px;
}

.property-item {
  background: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.property-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

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

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 1.5rem;
  color: var(--dark);
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
}

.host-actions {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 8px;
}

.host-btn {
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.host-edit-btn {
  background: var(--secondary);
  color: white;
}

.host-edit-btn:hover {
  background: #2e9b7d;
}

.host-delete-btn {
  background: var(--error);
  color: white;
}

.host-delete-btn:hover {
  background: #b71c1c;
}

.interactive-stars {
  display: flex;
  margin: 10px 0;
}

.interactive-star {
  color: var(--light-gray);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
  margin-right: 3px;
}

.interactive-star:hover,
.interactive-star.filled {
  color: #FFD700;
}

.category-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.category-btn {
  padding: 8px 16px;
  background-color: #f0f0f0;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn.active {
  background-color: var(--primary);
  color: white;
}

.vote-btn {
  margin-left: 10px;
  padding: 5px 10px;
  background-color: var(--secondary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.vote-btn:disabled {
  background-color: var(--light-gray);
  cursor: not-allowed;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.pagination-btn {
  padding: 8px 16px;
  background-color: #f0f0f0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.location-share {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

footer {
  margin-top: 50px;
  padding: 20px;
  text-align: center;
  background: #f8f9fa;
  border-top: 1px solid #ddd;
}

footer .legal {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 10px;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--light-gray);
  border-top: 5px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Media Queries */
@media (max-width: 768px) {
  .property-name {
    font-size: 2rem;
  }
  
  .cards-container, .public-guide-items, .services-container {
    grid-template-columns: 1fr;
  }
  
  .tab {
    padding: 12px 15px;
    font-size: 0.9rem;
  }
  
  .guide-item {
    padding: 15px;
  }
  
  .admin-tab {
    padding: 10px 15px;
    font-size: 0.8rem;
  }
  
  .property-actions {
    flex-direction: column;
  }
  
  .modal-content {
    margin: 20px;
    padding: 20px;
  }

  .host-actions {
    position: relative;
    top: 0;
    right: 0;
    justify-content: flex-end;
    margin-bottom: 10px;
  }

  .category-selector {
    justify-content: center;
  }

  .category-btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  
  .vote-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .property-features {
    grid-template-columns: 1fr;
  }

  .filter-row {
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
  }

  .service-contact {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .service-actions {
    width: 100%;
    justify-content: space-between;
  }
}