
/* ==========================================
   VACATION RENTALS PAGE
   Page-specific styling
   Global typography, colors and buttons
   inherit from global.css
========================================== */


/* ==========================================
   1. HERO SECTION
========================================== */

.vr-hero {
  min-height: 430px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(
      90deg,
      rgba(0, 24, 67, 0.62),
      rgba(0, 24, 67, 0.08)
    ),
    var(
      --vr-hero-image,
      linear-gradient(135deg, #005e9c, #00acd6)
    );
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

.vr-hero-content {
  padding-block: 125px 65px;
}

.vr-breadcrumb {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 22px;
}

.vr-breadcrumb a:hover {
  text-decoration: underline;
}

.vr-hero h1 {
  color: var(--color-white);
  max-width: 820px;
}

.vr-hero p {
  max-width: 510px;
}


/* ==========================================
   2. SECTION HEADING
========================================== */

.vr-section-heading {
  margin-bottom: 55px;
}

.vr-section-heading .eyebrow {
  margin-bottom: 10px;
}

.vr-section-heading p {
  max-width: 850px;
  margin-inline: auto;
}


/* ==========================================
   3. RENTALS MAIN LAYOUT
========================================== */

.vr-layout {
  display: grid;
  grid-template-columns: 328px minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}


/* ==========================================
   4. SEARCH SIDEBAR
========================================== */

.vr-sidebar {
  background: #fff;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.09);
  position: sticky;
  top: 20px;
}

.vr-search-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vr-search-form label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 8px;
}

.vr-search-form select,
.vr-search-form input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  padding: 12px;
  font-size: 15px;
  color: var(--color-text);
  background: #fff;
}

.vr-search-form select:focus,
.vr-search-form input:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
}

.vr-search-button {
  width: 100%;
  min-height: 54px;
  margin-top: 12px;
  border-radius: 7px;
}

.vr-form-note {
  font-size: 11px;
  color: #666;
  line-height: 1.5;
  margin-top: 6px;
}


/* ==========================================
   5. PROPERTY GRID
========================================== */

.vr-cards,
.vr-skeletons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}


/* ==========================================
   6. PROPERTY CARD
========================================== */

.vr-property-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 7px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.vr-property-card:hover {
  box-shadow: 0 8px 25px rgba(0, 24, 67, 0.08);
}


/* ==========================================
   7. PROPERTY IMAGE
========================================== */

.vr-card-image-link {
  display: block;
  width: 100%;
  aspect-ratio: 1.75;
  background: #edf3f6;
  overflow: hidden;
}

.vr-card-image-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.vr-card-image-link:hover img {
  transform: scale(1.04);
}

.vr-card-image-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: #777;
  font-size: 14px;
}


/* ==========================================
   8. PROPERTY CARD CONTENT
========================================== */

.vr-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 205px;
  padding: 18px 20px 20px;
}

/* Property type is not shown in Figma */

.vr-card-type {
  display: none;
}


/* ==========================================
   9. PRICE AND AMENITIES ROW
========================================== */

.vr-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 8px;
  min-height: 24px;
  margin-bottom: 16px;
}

/* Starting nightly price */

.vr-card-price {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--color-secondary);
  white-space: nowrap;
}

/* Amenities icons */

.vr-card-amenities {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.vr-card-amenity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #111;
  flex-shrink: 0;
}

.vr-card-amenity svg {
  display: block;
  width: 20px;
  height: 20px;
}


/* ==========================================
   10. PROPERTY TITLE
========================================== */

.vr-card-body h3,
.vr-card-body .vr-card-title {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 400;
  color: #000;
}

.vr-card-title a,
.vr-card-body h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.vr-card-title a:hover,
.vr-card-body h3 a:hover {
  color: var(--color-primary);
}


/* ==========================================
   11. PROPERTY DETAILS
========================================== */

.vr-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
  color: #999;
}

.vr-card-meta-separator {
  color: #aaa;
}


/* ==========================================
   12. VIEW PROPERTY LINK
========================================== */

.vr-view-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 4px;
  color: var(--color-secondary);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 0.2s ease;
}

.vr-view-link:hover {
  color: var(--color-primary);
}


/* ==========================================
   13. AJAX RESULTS STATUS
========================================== */

.vr-results-status {
  font-size: 13px;
  color: #777;
  margin-bottom: 14px;
}

.vr-results-status:empty {
  display: none;
}


/* ==========================================
   14. LOADING SKELETONS
========================================== */

.vr-skeletons {
  margin-top: 22px;
}

.vr-skeletons[hidden] {
  display: none;
}

.vr-skeleton-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  overflow: hidden;
}

.vr-skeleton-image {
  aspect-ratio: 1.75;
}

.vr-skeleton-body {
  padding: 20px;
}

.vr-skeleton-line {
  height: 17px;
  border-radius: 5px;
  margin-bottom: 14px;
}

.vr-skeleton-line.short {
  width: 40%;
}

.vr-skeleton-line.medium {
  width: 70%;
}

.vr-shimmer {
  background: linear-gradient(
    100deg,
    #e9ecef 20%,
    #f8f9fa 40%,
    #e9ecef 60%
  );
  background-size: 200% 100%;
  animation: vr-shimmer 1.4s linear infinite;
}

@keyframes vr-shimmer {
  to {
    background-position-x: -200%;
  }
}


/* ==========================================
   15. LOAD MORE BUTTON
========================================== */

.vr-load-more {
  display: block;
  margin: 25px auto 0;
}

.vr-load-more[hidden] {
  display: none;
}


/* ==========================================
   16. FAQ SECTION
========================================== */

.vr-faq-section {
  background: var(--color-bg-light);
}

.vr-faq-layout {
  display: grid;
  grid-template-columns: 40% minmax(0, 1fr);
  gap: 55px;
}

.vr-faq-layout > div:first-child p {
  max-width: 380px;
}

.vr-faq-list {
  border: 1px solid var(--color-primary);
  border-radius: var(--border-radius);
  padding: 0 18px;
}

.vr-faq-list details + details {
  border-top: 1px solid var(--color-border);
}

.vr-faq-list summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  padding: 18px 25px 18px 0;
  position: relative;
}

.vr-faq-list summary::-webkit-details-marker {
  display: none;
}

.vr-faq-list summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 11px;
  font-size: 24px;
  font-weight: 400;
}

.vr-faq-list details[open] summary {
  color: var(--color-primary);
}

.vr-faq-list details[open] summary::after {
  content: '−';
}

.vr-faq-list details p {
  font-size: 14px;
  padding-bottom: 16px;
}


/* ==========================================
   17. CTA SECTION
========================================== */

.vr-cta-section {
  padding: 60px 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 24, 67, 0.55),
      rgba(0, 24, 67, 0.12)
    ),
    var(
      --vr-cta-image,
      linear-gradient(120deg, #0060a5, #00acd6)
    );
  background-size: cover;
  background-position: center;
  color: #fff;
}

.vr-cta-section h2 {
  color: #fff;
}

.vr-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}


/* ==========================================
   18. RESPONSIVE - TABLET
========================================== */

@media (max-width: 1199px) {

  .vr-card-body {
    padding: 18px;
  }

  .vr-card-price {
    font-size: 15px;
  }

  .vr-card-body h3,
  .vr-card-body .vr-card-title {
    font-size: 18px;
  }

  .vr-card-amenities {
    gap: 7px;
  }

}


/* ==========================================
   19. RESPONSIVE - SMALL TABLET
========================================== */

@media (max-width: 991px) {

  .vr-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .vr-sidebar {
    padding: 18px;
  }

  .vr-cards,
  .vr-skeletons {
    grid-template-columns: 1fr;
  }

  .vr-faq-layout {
    gap: 30px;
  }

}


/* ==========================================
   20. RESPONSIVE - MOBILE
========================================== */

@media (max-width: 767px) {

  .vr-hero {
    min-height: 350px;
  }

  .vr-hero-content {
    padding-block: 110px 45px;
  }

  .vr-desktop-break {
    display: none;
  }

  .vr-layout {
    grid-template-columns: 1fr;
  }

  .vr-sidebar {
    position: static;
    padding: 22px;
  }

  .vr-cards,
  .vr-skeletons {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .vr-section-heading {
    margin-bottom: 32px;
  }

  .vr-card-body {
    min-height: 190px;
    padding: 18px;
  }

  .vr-card-price-row {
    margin-bottom: 14px;
  }

  .vr-card-price {
    font-size: 16px;
  }

  .vr-card-body h3,
  .vr-card-body .vr-card-title {
    font-size: 19px;
  }

  .vr-card-meta {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .vr-faq-layout {
    grid-template-columns: 1fr;
  }

  .vr-cta-section {
    padding: 45px 0;
  }

}


/* ==========================================
   21. ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {

  .vr-shimmer {
    animation: none;
  }

  .vr-property-card,
  .vr-card-image-link img,
  .vr-card-title a,
  .vr-view-link {
    transition: none;
  }

}
