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

:root {
  --primary-color: #14b8a6;
  --primary-dark: #0d9488;
  --secondary-color: #dc2626;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --bg-color: #ffffff;
  --border-color: #e5e7eb;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
}

.body-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.body-wrapper .main {
  flex: 1 0 auto;
}

/* Header */
.header {
  background: var(--bg-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.25rem;
  font-weight: bold;
}

.logo-img {
  height: 40px;
  width: auto;
}

.logo-text {
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

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

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.search-bar {
  display: flex;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--bg-color);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  flex-wrap: wrap;
}

.search-field {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-color);
}

.search-icon {
  font-size: 1.25rem;
}

.search-field input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 1rem;
}

.search-btn {
  padding: 0.75rem 2rem;
  background: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s;
}

.search-btn:hover {
  background: #b91c1c;
}

/* Properties Section */
.properties-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.property-card {
  background: var(--bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
}

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

/* Focus effect on property grid */
.properties-grid:hover > .property-card {
  opacity: 0.6;
  transform: scale(0.98);
}

.properties-grid > .property-card:hover {
  opacity: 1;
  transform: scale(1) translateY(-4px); /* Combine scale and existing hover transform */
}

.property-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

.property-video-preview,
.property-video-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-info {
  padding: 1.5rem;
}

.property-name {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.property-description {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.property-price {
  font-size: 1.125rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.btn-details {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-details:hover {
  background: var(--primary-dark);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none; /* Add this to remove underline from links */
  color: var(--text-color); /* Ensure text color is inherited or set */
  display: inline-block; /* Make sure padding and border apply correctly */
}

.page-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.page-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  pointer-events: none; /* Disable clicks on the active page */
}

.page-btn.disabled {
  background: #f0f0f0;
  color: #ccc;
  border-color: #e0e0e0;
  cursor: not-allowed;
  pointer-events: none; /* Disable clicks for disabled buttons */
}

.page-dots {
  padding: 0 0.5rem;
}

/* Property Detail Page */
.breadcrumbs {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  color: var(--text-light);
}

.breadcrumbs a {
  color: var(--primary-color);
  text-decoration: none;
}

.property-detail-header {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.property-detail-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.property-meta {
  color: var(--text-light);
}

.property-actions {
  display: flex;
  gap: 1rem;
}

.action-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.property-detail-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.property-gallery {
  margin-bottom: 2rem;
}

.gallery-main {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

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

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.gallery-thumbs .thumb-item {
  position: relative;
  width: 100%;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.gallery-thumbs .thumb-item:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.gallery-thumbs .thumb-item.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
}

.gallery-thumbs .thumb-item img,
.gallery-thumbs .thumb-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs .video-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem;
  border-radius: 50%;
  font-size: 1.5rem;
  pointer-events: none;
}

.gallery-main video {
  width: 100%;
  max-height: 500px;
  border-radius: 10px;
}

.property-description-section {
  margin-bottom: 3rem;
}

.property-description-section h2,
.property-description-section h3 {
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
}

.property-description-section p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.amenity-icon {
  color: var(--primary-color);
  font-weight: bold;
}

.house-rules {
  list-style: none;
  padding-left: 0;
}

.house-rules li {
  padding: 0.5rem 0;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-color);
}

.house-rules li:last-child {
  border-bottom: none;
}

.map-container {
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
}

/* Booking Widget */
.booking-widget {
  position: sticky;
  top: 100px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.booking-price {
  margin-bottom: 1.5rem;
}

.price-amount {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color);
}

.price-period {
  color: var(--text-light);
}

.booking-form {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

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

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
}

.btn-reservar {
  width: 100%;
  padding: 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.5rem;
  transition: background 0.3s;
}

.btn-reservar:hover {
  background: var(--primary-dark);
}

.booking-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
}

.price-breakdown {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.price-row.total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-weight: bold;
  font-size: 1.125rem;
  color: var(--text-color);
}

/* Footer */
.footer {
  background: #f9fafb;
  margin-top: 4rem;
  padding: 3rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 30px;
  width: auto;
}

.footer-logo-text {
  color: var(--primary-color);
  font-weight: bold;
}

.copyright {
  color: var(--text-light);
  font-size: 0.875rem;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.social-links a,
.legal-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.social-links a:hover,
.legal-links a:hover {
  color: var(--primary-color);
}

/* Contact Page */
.contact-section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 2rem;
  text-align: center;
  flex-grow: 1; /* Hace que la sección crezca */
  display: flex; /* Activa Flexbox */
  flex-direction: column; /* Apila los elementos verticalmente */
  justify-content: center; /* Centra verticalmente */
  align-items: center; /* Centra horizontalmente */
}

.contact-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-section > p {
  color: var(--text-light);
  margin-bottom: 3rem;
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.3s, box-shadow 0.3s;
  min-width: 250px;
}

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

.contact-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.contact-link {
  color: var(--primary-color);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .property-detail-content {
    grid-template-columns: 1fr;
  }

  .booking-widget {
    position: static;
  }

  .search-bar {
    flex-direction: column;
  }

  .search-field {
    width: 100%;
  }

  .properties-grid {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    gap: 1rem;
    font-size: 0.9rem;
  }
}


