/* CanPlaces - Main Stylesheet
   Mobile-first design with cartoon-friendly style */

:root {
  /* Pastel color palette */
  --primary: #78c2ad;
  --primary-light: #a8dadc;
  --secondary: #f8a5c2;
  --secondary-light: #ffcad4;
  --accent: #ffcb77;
  --background: #f8f9fa;
  --text: #495057;
  --success: #8fd9a8;
  --danger: #ff7096;
  --warning: #ffe066;
  --info: #6ebfff;
  --light: #ffffff;
  --dark: #343a40;
  
  /* Font families */
  --font-primary: 'Nunito', 'Segoe UI', sans-serif;
  --font-secondary: 'Quicksand', 'Arial', sans-serif;
  
  /* Border radius */
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 20px;
  
  /* Box shadows */
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.15);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-light);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center {
  text-align: center;
}

/* Navbar */
.navbar {
  background-color: var(--light);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 70px;
  margin-right: 10px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-menu {
  display: none;
  list-style: none;
}

.nav-menu.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--light);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem;
}

.nav-item {
  margin: 0.5rem 0;
}

.nav-links {
  color: var(--text);
  font-weight: 600;
  padding: 0.5rem;
  display: block;
}

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

.menu-icon {
  display: block;
  cursor: pointer;
  font-size: 1.5rem;
}

/* Button Styles */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
  margin: 0.25rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

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

.btn-accent:hover {
  background-color: #ffd68a;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

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

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

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.25rem;
}

.btn-round {
  border-radius: 50px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon i {
  margin-right: 0.5rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background-color: #fff;
  background-clip: padding-box;
  border: 2px solid #ced4da;
  border-radius: var(--border-radius);
  transition: border-color 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(120, 194, 173, 0.25);
}

.form-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #6c757d;
}

/* Card Styles */
.card {
  background-color: var(--light);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.card-text {
  margin-bottom: 1rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  background-color: rgba(0, 0, 0, 0.03);
  border-top: 1px solid rgba(0, 0, 0, 0.125);
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/hero-bg.png') no-repeat center center/cover;
  z-index: -1;
}


.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75); /* Ajusta opacidad aquí */
  z-index: 1;
}


.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Features Section */
.features {
  padding: 4rem 0;
}

.feature-title {
  text-align: center;
  margin-bottom: 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background-color: var(--light);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-item h3 {
  margin-bottom: 1rem;
}

/* Map Styles */
.map-container {
  height: 500px;
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

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

/* Place Details */
.place-details {
  padding: 2rem 0;
}

.place-header {
  margin-bottom: 2rem;
}

.place-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.amenity-tag {
  background-color: var(--primary-light);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
}

.amenity-tag i {
  margin-right: 0.5rem;
}

/* Reviews Section */
.reviews {
  padding: 2rem 0;
}

.review-card {
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  background-color: var(--light);
  box-shadow: var(--box-shadow);
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.reviewer-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
}

.review-info {
  flex: 1;
}

.reviewer-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.review-date {
  font-size: 0.875rem;
  color: #6c757d;
}

.rating {
  display: flex;
  margin-bottom: 0.5rem;
}

.star {
  color: var(--accent);
  margin-right: 0.25rem;
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: 0.75rem;
}

.footer-link a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-link a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: white;
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Utility Classes */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.ml-1 { margin-left: 0.5rem; }
.ml-2 { margin-left: 1rem; }
.ml-3 { margin-left: 1.5rem; }

.mr-1 { margin-right: 0.5rem; }
.mr-2 { margin-right: 1rem; }
.mr-3 { margin-right: 1.5rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-light { color: var(--light); }
.text-dark { color: var(--dark); }

.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-accent { background-color: var(--accent); }
.bg-success { background-color: var(--success); }
.bg-danger { background-color: var(--danger); }
.bg-light { background-color: var(--light); }
.bg-dark { background-color: var(--dark); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Profile Page */
.profile-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

.profile-sidebar {
  background-color: var(--light);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: block;
  object-fit: cover;
  background-color: var(--primary-light);
}

.profile-name {
  text-align: center;
  margin-bottom: 0.5rem;
}

.profile-info {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #6c757d;
}

.profile-menu {
  list-style: none;
}

.profile-menu-item {
  margin-bottom: 0.5rem;
}

.profile-menu-link {
  display: block;
  padding: 0.75rem;
  border-radius: var(--border-radius-sm);
  transition: all 0.3s ease;
}

.profile-menu-link:hover,
.profile-menu-link.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

.profile-menu-link i {
  margin-right: 0.5rem;
}

.profile-content {
  background-color: var(--light);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
}

.profile-tab {
  display: none;
}

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

/* Place Cards for My Places */
.my-places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.place-card {
  position: relative;
  overflow: hidden;
}

.place-status {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

.status-pending {
  background-color: var(--warning);
  color: var(--text);
}

.status-approved {
  background-color: var(--success);
  color: white;
}

.status-rejected {
  background-color: var(--danger);
  color: white;
}

.place-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Admin Page */
.admin-panel {
  padding: 2rem 0;
}

.admin-card {
  background-color: var(--light);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.admin-table th {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.admin-table tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.admin-pagination {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  margin: 0 0.25rem;
  border-radius: var(--border-radius-sm);
  background-color: var(--light);
  color: var(--text);
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-link:hover,
.page-link.active {
  background-color: var(--primary);
  color: white;
}

/* Alert Messages */
.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  border-left: 4px solid transparent;
}

.alert-success {
  background-color: rgba(143, 217, 168, 0.2);
  border-left-color: var(--success);
}

.alert-danger {
  background-color: rgba(255, 112, 150, 0.2);
  border-left-color: var(--danger);
}

.alert-warning {
  background-color: rgba(255, 224, 102, 0.2);
  border-left-color: var(--warning);
}

.alert-info {
  background-color: rgba(110, 191, 255, 0.2);
  border-left-color: var(--info);
}

/* Responsive Styles */
@media (min-width: 768px) {
  .menu-icon {
    display: none;
  }
  
  .nav-menu {
    display: flex;
    flex-direction: row;
  }
  
  .nav-item {
    margin: 0 0.75rem;
  }
  
  .nav-links {
    padding: 0.5rem 0.75rem;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .profile-container {
    grid-template-columns: 300px 1fr;
  }
  
  .place-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .container {
    padding: 0 2rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease forwards;
}

/* Custom Checkbox and Radio */
.custom-checkbox,
.custom-radio {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  display: inline-block;
  margin-right: 1rem;
}

.custom-checkbox input,
.custom-radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #ced4da;
  transition: all 0.3s ease;
}

.custom-radio .checkmark {
  border-radius: 50%;
}

.custom-checkbox .checkmark {
  border-radius: 4px;
}

.custom-checkbox input:checked ~ .checkmark,
.custom-radio input:checked ~ .checkmark {
  background-color: var(--primary);
  border-color: var(--primary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark:after,
.custom-radio input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: 6px;
  top: 2px;
  width: 4px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-radio .checkmark:after {
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

/* Image Upload Area */
.upload-area {
  border: 2px dashed #ced4da;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area:hover {
  border-color: var(--primary);
  background-color: rgba(120, 194, 173, 0.05);
}

.upload-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.upload-text {
  margin-bottom: 0;
}

.upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.preview-item {
  position: relative;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  height: 120px;
}

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

.preview-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--danger);
  font-size: 14px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  margin: 0 auto;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

/* Multi-step Form */
.form-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.form-steps::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #ced4da;
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #ced4da;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.step-title {
  font-size: 0.875rem;
  color: #6c757d;
  transition: all 0.3s ease;
}

.step.active .step-number,
.step.completed .step-number {
  background-color: var(--primary);
}

.step.active .step-title,
.step.completed .step-title {
  color: var(--primary);
  font-weight: 600;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ced4da;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1500;
}

.toast {
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-radius: var(--border-radius);
  background-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  animation: toastIn 0.3s ease forwards;
  max-width: 350px;
}

.toast-icon {
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

.toast-success .toast-icon {
  color: var(--success);
}

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

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

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

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.875rem;
  color: #6c757d;
}

.toast-close {
  color: #6c757d;
  font-size: 1.25rem;
  cursor: pointer;
  margin-left: 0.5rem;
}

@keyframes toastIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast.hiding {
  animation: toastOut 0.3s ease forwards;
}

/* Star Rating Input */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.star-rating input {
  display: none;
}

.star-rating label {
  cursor: pointer;
  font-size: 1.5rem;
  color: #ddd;
  padding: 0 0.1rem;
}

.star-rating input:checked ~ label {
  color: var(--accent);
}

.star-rating label:hover,
.star-rating label:hover ~ label {
  color: var(--accent);
}

/* Filter Controls */
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.filter-container {
  display: flex;
  flex-direction: column;
  background-color: var(--light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  box-shadow: var(--box-shadow);
}

.filter-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.filter-title h3 {
  margin-bottom: 0;
}

.filter-icon {
  transition: transform 0.3s ease;
}

.filter-icon.open {
  transform: rotate(180deg);
}

.filter-content {
  margin-top: 1.5rem;
  display: none;
}

.filter-content.open {
  display: block;
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-tag {
  background-color: #f1f3f5;
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tag.active {
  background-color: var(--primary);
  color: white;
}

.filter-tag i {
  margin-right: 0.5rem;
}

.range-filter {
  margin-bottom: 1rem;
}

.range-inputs {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.range-input {
  flex: 1;
}

.slider-container {
  margin: 1rem 0;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  background: #ddd;
  outline: none;
  border-radius: 5px;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary);
  cursor: pointer;
  border-radius: 50%;
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--primary);
  cursor: pointer;
  border-radius: 50%;
  border: none;
}

/* Dog-themed elements */
.dog-paw {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%2378c2ad" d="M256 224c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 240c-52.9 0-96-43.1-96-96s43.1-96 96-96 96 43.1 96 96-43.1 96-96 96zm154.7-350.7c-9.2-9.2-24.1-9.2-33.3 0l-22.7 22.7c-9.2 9.2-9.2 24.1 0 33.3s24.1 9.2 33.3 0l22.7-22.7c9.2-9.3 9.2-24.2 0-33.3zm-131.4-11c-15.4-15.4-40.5-15.4-55.9 0-15.4 15.4-15.4 40.5 0 55.9 15.4 15.4 40.5 15.4 55.9 0 15.4-15.4 15.4-40.5 0-55.9zM112 224c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm167.6-165.6c-13.5-13.5-35.6-13.5-49.1 0-13.5 13.5-13.5 35.6 0 49.1 13.5 13.5 35.6 13.5 49.1 0 13.5-13.5 13.5-35.6 0-49.1zM400 112c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-207.9 39.7c-12-12-31.5-12-43.5 0-12 12-12 31.5 0 43.5 12 12 31.5 12 43.5 0 12-12 12-31.5 0-43.5z"/></svg>') no-repeat center center/contain;
  margin-right: 5px;
  vertical-align: middle;
}

.bone-badge {
  position: relative;
  padding: 0.5rem 1.5rem;
  background-color: var(--accent);
  color: var(--text);
  font-weight: 600;
  border-radius: 10px;
  display: inline-block;
}

.bone-badge::before,
.bone-badge::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: var(--accent);
  border-radius: 50%;
}

.bone-badge::before {
  top: -5px;
  left: -5px;
  box-shadow: 30px 0 0 var(--accent);
}

.bone-badge::after {
  bottom: -5px;
  right: -5px;
  box-shadow: -30px 0 0 var(--accent);
}

.dog-icon {
  display: inline-block;
  width: 80px;
  height: 80px;
  background-color: var(--primary-light);
  border-radius: 50%;
  position: relative;
  margin: 0 auto 1rem;
}

.dog-icon::before {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  background-color: var(--primary);
  border-radius: 50%;
  top: 20px;
  left: 15px;
  box-shadow: 25px 0 0 var(--primary);
}

.dog-icon::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 10px;
  background-color: var(--primary);
  border-radius: 0 0 10px 10px;
  bottom: 25px;
  left: 30px;
}

/* Dog animation */
@keyframes wagTail {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
}

.dog-tail {
  position: absolute;
  width: 15px;
  height: 35px;
  background-color: var(--primary-light);
  right: 10px;
  bottom: 20px;
  border-radius: 10px;
  transform-origin: top center;
  animation: wagTail 0.5s ease-in-out infinite;
}

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 4px solid rgba(120, 194, 173, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

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

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.loading-text {
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
}


/* Características específicas para vallado y perros reactivos */
.feature-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary-light);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.feature-badge i {
  margin-right: 0.5rem;
}

.feature-badge-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  margin-right: 0.25rem;
}

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

.feature-empty {
  background-color: var(--info);
  color: white;
}

.fence-condition {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  font-weight: normal;
}

.fence-good {
  color: var(--success);
}

.fence-fair {
  color: var(--warning);
}

.fence-poor {
  color: var(--danger);
}

/* Horarios de menor afluencia */
.quiet-times-container {
  margin-bottom: 1.5rem;
}

.quiet-time-row {
  background-color: var(--light);
  border-radius: var(--border-radius-sm);
  padding: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.quiet-time-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.quiet-time-item i {
  color: var(--primary);
  margin-right: 0.75rem;
}

.quiet-time-day {
  font-weight: 600;
  margin-right: 0.5rem;
}

.quiet-time-hours {
  color: var(--text);
}

/* Estados de mantenimiento */
.maintenance-status {
  margin-bottom: 1.5rem;
}

.maintenance-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
}

.maintenance-date {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6c757d;
}

.status-good {
  background-color: var(--success);
  color: white;
}

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

.status-danger {
  background-color: var(--danger);
  color: white;
}

/* Badges para las tarjetas de lugares */
.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 0.5rem;
  z-index: 1;
}

.card-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.card-badge-fence {
  color: var(--primary);
}

.card-badge-reactive {
  color: var(--warning);
}

.card-badge-empty {
  color: var(--info);
}

/* Reviewer y dog photos estilos adicionales */
.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

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

.reviewer-placeholder i {
  font-size: 1.5rem;
  color: var(--primary);
}

.dog-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.dog-photo-item {
  position: relative;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  height: 150px;
  box-shadow: var(--box-shadow);
}

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

.dog-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem;
  font-size: 0.875rem;
}

/* Perfiles de perros y distintivos */
.dog-card {
  background-color: var(--light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.dog-card-header {
  position: relative;
  height: 180px;
}

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

.dog-img-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dog-img-placeholder i {
  font-size: 3rem;
  color: var(--primary);
}

.dog-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.reactive-badge {
  background-color: var(--warning);
  color: var(--text);
}

.dog-card-body {
  padding: 1.5rem;
}

.dog-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.dog-breed, .dog-age {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.dog-bio {
  font-size: 0.875rem;
  color: var(--text);
  margin-top: 0.75rem;
}

.dog-card-footer {
  padding: 1rem 1.5rem;
  background-color: rgba(0, 0, 0, 0.03);
  border-top: 1px solid rgba(0, 0, 0, 0.125);
}

.dog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Mapas y popups */
.map-popup {
  padding: 0.5rem;
}

.map-popup h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.map-popup p {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.popup-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.amenity-tag-small {
  background-color: var(--primary-light);
  color: var(--text);
  padding: 0.25rem 0.5rem;
  border-radius: 50px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
}

.amenity-tag-small i {
  margin-right: 0.25rem;
}

/* Empty states y elementos no encontrados */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  border-radius: var(--border-radius);
  background-color: var(--light);
  box-shadow: var(--box-shadow);
}

.no-results {
  text-align: center;
  padding: 2rem;
}

.no-images {
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f1f3f5;
  border-radius: var(--border-radius);
}

.no-images i {
  font-size: 3rem;
  color: #ced4da;
  margin-bottom: 1rem;
}



#explore-map,
#single-place-map,
#places-map,
.map-container {
    height: 400px; /* o el valor que necesites */
    width: 100%;
}




/* Sección CTA Comunidad */
.cta-community {
    padding: 4rem 1rem;
    border-radius: var(--border-radius);
    background-color: var(--primary); /* ya tiene bg-primary pero por si acaso */
    color: white;
    text-align: center;
}

.cta-community h2 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
}

.cta-community p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #f8f9fa;
}

.cta-community .btn {
    margin: 0.5rem;
}

/* Botón personalizado para WhatsApp */
.btn-whatsapp,
.cta-community .btn-outline-light {
    background-color: #25D366;
    color: white !important;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover,
.cta-community .btn-outline-light:hover {
    background-color: #1ebd5b;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

/* Botón claro para subir lugar */
.cta-community .btn-light {
    background-color: white;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-community .btn-light:hover {
    background-color: var(--primary-light);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

/* Contador de usuarios */
.cta-community strong {
    color: var(--accent);
    font-size: 1.5rem;
}





/* Logo inline en el CTA */
.canplaces-logo-inline {
    height: 3rem; /* Tamaño para desktop */
    width: auto;
    vertical-align: middle;
    margin: 0 0.25rem;
}

/* Responsive para tablets */
@media (max-width: 992px) {
    .canplaces-logo-inline {
        height: 2rem;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .canplaces-logo-inline {
        height: 3rem;
    }
}

/* Responsive para móviles muy pequeños */
@media (max-width: 480px) {
    .canplaces-logo-inline {
        height: 3rem;
    }
}