/* Holidaysandorra - Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --winter-primary: #1B3A5C;
  --winter-accent: #5BA4E6;
  --winter-bg: #F0F4F8;
  --summer-primary: #2D7D46;
  --summer-accent: #8BC34A;
  --summer-bg: #F0F8F2;
  --cta: #E63946;
  --cta-hover: #C62828;
  --dark: #1A1A2E;
  --primary: var(--winter-primary);
  --accent: var(--winter-accent);
  --page-bg: var(--winter-bg);
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--page-bg);
  transition: background-color 0.7s ease;
}

body.summer {
  --primary: var(--summer-primary);
  --accent: var(--summer-accent);
  --page-bg: var(--summer-bg);
}

/* Navbar */
.navbar-holiday {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  transition: all 0.3s;
}
.navbar-holiday .navbar-brand {
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
}
.navbar-holiday .navbar-brand span {
  color: var(--cta);
}
.navbar-holiday .nav-link {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.navbar-holiday .nav-link:hover,
.navbar-holiday .nav-link.active {
  color: #fff;
}
.lang-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.lang-btn:hover {
  background: rgba(255,255,255,0.25);
}
.lang-dropdown {
  min-width: 120px;
}
.lang-dropdown .dropdown-item {
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
}
.lang-dropdown .dropdown-item.active {
  background-color: var(--accent);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transition: background 0.7s ease;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
  padding: 2rem 1rem;
}
.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-content h1 span {
  color: var(--cta);
}

/* Season Switcher */
.season-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  margin: 1rem 0;
  cursor: pointer;
  transition: background 0.3s;
  border: 1px solid rgba(255,255,255,0.2);
}
.season-switcher:hover {
  background: rgba(255,255,255,0.25);
}
.season-switcher .toggle-track {
  width: 48px;
  height: 26px;
  background: rgba(255,255,255,0.3);
  border-radius: 13px;
  position: relative;
  transition: background 0.3s;
}
.season-switcher .toggle-thumb {
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
body.summer .season-switcher .toggle-thumb {
  transform: translateX(22px);
}
.season-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

/* Date Picker in Hero */
.hero-date-picker {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero-date-picker input[type="date"] {
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
}
.hero-date-picker .btn-search {
  background: var(--cta);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s;
}
.hero-date-picker .btn-search:hover {
  background: var(--cta-hover);
}

/* Features Bar */
.features-bar {
  margin-top: -3rem;
  position: relative;
  z-index: 20;
}
.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid #f0f0f0;
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: rgba(91,164,230,0.1);
  color: var(--accent);
  flex-shrink: 0;
}
body.summer .feature-icon {
  background: rgba(45,125,70,0.1);
}
.feature-card h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.15rem;
}
.feature-card p {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
}

/* Section Headers */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
}
.section-subtitle {
  color: #6b7280;
  max-width: 600px;
  margin: 0.75rem auto 0;
}

/* Apartment Card */
.apt-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.apt-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  color: inherit;
}
.apt-card .card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.apt-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.apt-card:hover .card-img-wrap img {
  transform: scale(1.1);
}
.apt-card .price-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 0.35rem 0.85rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
}
.apt-card .zone-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 500;
}
.apt-card .card-body {
  padding: 1.25rem;
}
.apt-card .card-body h5 {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.apt-card .card-body p {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.apt-card .card-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #6b7280;
}
.apt-card .card-stats span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Activity Card */
.activity-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  transition: transform 0.3s;
}
.activity-card:hover {
  transform: translateY(-4px);
}
.activity-card .activity-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.activity-card h5 {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
}
.activity-card p {
  font-size: 0.8rem;
  color: #6b7280;
}
.activity-card .activity-price {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}
.cta-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.cta-section p {
  color: rgba(255,255,255,0.8);
  position: relative;
  z-index: 1;
}

/* Btn CTA */
.btn-cta {
  background: var(--cta);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.3s, transform 0.3s;
  text-decoration: none;
  display: inline-block;
}
.btn-cta:hover {
  background: var(--cta-hover);
  color: #fff;
  transform: translateY(-2px);
}

/* Footer */
.footer-holiday {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}
.footer-holiday h5 {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer-holiday a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}
.footer-holiday a:hover {
  color: #fff;
}
.footer-holiday .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
}

/* Filters Sidebar */
.filters-sidebar {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  position: sticky;
  top: 90px;
}
.filters-sidebar h4 {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
}
.filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  background: #f3f4f6;
  color: #6b7280;
  border: none;
  cursor: pointer;
}
.filter-tag .remove-tag {
  font-size: 0.6rem;
  cursor: pointer;
  opacity: 0.6;
}
.filter-tag .remove-tag:hover {
  opacity: 1;
}

/* Calendar */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.calendar-header {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: #9ca3af;
  padding: 0.25rem 0;
}
.calendar-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: transparent;
  position: relative;
  padding: 2px;
}
.calendar-day:hover:not(.disabled):not(.booked) {
  background: #f3f4f6;
}
.calendar-day .day-num {
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1;
}
.calendar-day .day-price {
  font-size: 0.5rem;
  font-weight: 600;
  line-height: 1;
  margin-top: 2px;
}
.calendar-day.disabled {
  color: #d1d5db;
  cursor: not-allowed;
}
.calendar-day.booked {
  background: #fef2f2;
  color: #fca5a5;
  text-decoration: line-through;
  cursor: not-allowed;
}
.calendar-day.selected {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.calendar-day.selected .day-price {
  color: rgba(255,255,255,0.85) !important;
}
.calendar-day.in-range {
  background: rgba(91,164,230,0.25);
  color: #fff;
}
body.summer .calendar-day.in-range {
  background: rgba(45,125,70,0.25);
}
.calendar-day.in-range .day-price {
  color: rgba(255,255,255,0.8) !important;
}
.calendar-day .holiday-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ef4444;
}
.price-normal { color: #6b7280; }
.price-weekend { color: #f97316; }
.price-holiday { color: #ef4444; }
.price-highseason { color: #a855f7; }

/* Price Legend */
.price-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.6rem;
  color: #6b7280;
}
.price-legend span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.price-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Equipment Card */
.equip-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  width: 100%;
  text-align: left;
}
.equip-card:hover {
  border-color: #d1d5db;
}
.equip-card.active {
  border-color: var(--accent);
  background: rgba(91,164,230,0.05);
}
body.summer .equip-card.active {
  background: rgba(45,125,70,0.05);
}
.equip-card .equip-icon {
  font-size: 1.3rem;
}
.equip-card .equip-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
}
.equip-card .equip-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: #6b7280;
  margin-left: auto;
}
.equip-card.active .equip-price {
  color: var(--accent);
}

/* Photo Carousel */
.detail-carousel .carousel-item img {
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
}
.detail-carousel .carousel-control-prev,
.detail-carousel .carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.detail-carousel:hover .carousel-control-prev,
.detail-carousel:hover .carousel-control-next {
  opacity: 1;
}
.detail-carousel .carousel-control-prev { left: 12px; }
.detail-carousel .carousel-control-next { right: 12px; }
.photo-counter {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  z-index: 5;
}
.thumb-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}
.thumb-strip button {
  flex-shrink: 0;
  width: 64px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.6;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.thumb-strip button.active {
  border-color: var(--accent);
  opacity: 1;
  transform: scale(1.05);
}
.thumb-strip button:hover {
  opacity: 0.9;
}
.thumb-strip button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Booking Sidebar */
.booking-sidebar {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid #f0f0f0;
  position: sticky;
  top: 90px;
  overflow: hidden;
}
.booking-sidebar .section-block {
  padding: 1.25rem;
  border-bottom: 1px solid #f0f0f0;
}
.booking-sidebar .section-block:last-child {
  border-bottom: none;
}

/* Price Breakdown */
.price-breakdown {
  background: #f9fafb;
  border-radius: 10px;
  padding: 0.75rem;
}
.price-breakdown .breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}
.price-breakdown .breakdown-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dark);
  border-top: 1px solid #e5e7eb;
  padding-top: 0.5rem;
  margin-top: 0.25rem;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.show {
  display: flex;
}
.lightbox-overlay img {
  max-width: 85vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
}
.lightbox-close:hover { color: #fff; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* Guest Counter */
.guest-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #f3f4f6;
  border-radius: 50px;
  padding: 0.2rem 0.5rem;
}
.guest-counter button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--dark);
  transition: background 0.2s;
}
.guest-counter button:hover {
  background: #e5e7eb;
}
.guest-counter .count {
  font-size: 0.8rem;
  font-weight: 600;
  width: 20px;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.2rem; }
  .hero-date-picker { flex-direction: column; gap: 0.5rem; }
  .detail-carousel .carousel-item img { height: 250px; }
  .filters-sidebar { position: static; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* Similar apartment card */
.similar-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.similar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  color: inherit;
}
.similar-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.5s;
}
.similar-card:hover img {
  transform: scale(1.1);
}