/**
 * VRCC Rental Search - Public Styles (prm Themed)
 *
 * Level-1 UI components for property search with prm-inspired styling.
 * Includes comprehensive color palette, typography, spacing, and responsive design.
 *
 * @package VRCC\OwnerRezSync\PublicFacing
 * @since 2.1.0
 */

/* ========================================
  CSS Variables - prm Theme
   ======================================== */
:root {
  /* prm Brand Colors */
  --vrcc-primary: #007FAD;
  --vrcc-primary-hover: #005A8B;
  --vrcc-secondary: #595959;
  --vrcc-border: #E0E0E0;
  --vrcc-border-hover: #007FAD;
  --vrcc-background: #FFFFFF;
  --vrcc-background-alt: #F7F7F7;
  --vrcc-text: #2C2C2C;
  --vrcc-text-light: #595959;
  --vrcc-text-lighter: #888888;
  --vrcc-error: #D32F2F;
  --vrcc-success: #008A05;
  --vrcc-rating: #FFB81C;

  /* Extended Design System */
  --vrcc-radius: 8px;
  --vrcc-radius-sm: 4px;
  --vrcc-radius-lg: 12px;
  --vrcc-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --vrcc-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --vrcc-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --vrcc-transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========================================
   Screen Reader Only
   ======================================== */
.vrcc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
  Search Wrapper - prm Inspired
   ======================================== */
.vrcc-search-wrapper {
  background: var(--vrcc-background);
  border: 1px solid var(--vrcc-border);
  border-radius: var(--vrcc-radius-lg);
  box-shadow: var(--vrcc-shadow);
  padding: 28px;
  margin-bottom: 32px;
  transition: box-shadow 0.3s ease;
}

.vrcc-search-wrapper:focus-within {
  box-shadow: var(--vrcc-shadow-md);
}

/* ========================================
   Search Form
   ======================================== */
.vrcc-search-form {
  display: grid;
  grid-template-columns: 2fr 2fr 1.5fr auto;
  gap: 16px;
  align-items: end;
}

.vrcc-search-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.vrcc-field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--vrcc-text);
}

.vrcc-label-text {
  display: block;
}

.vrcc-icon {
  flex-shrink: 0;
  color: var(--vrcc-text-light);
}

/* ========================================
   Form Inputs
   ======================================== */
.vrcc-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--vrcc-border);
  border-radius: var(--vrcc-radius-sm);
  font-size: 16px;
  font-family: inherit;
  background: var(--vrcc-background);
  color: var(--vrcc-text);
  transition: var(--vrcc-transition);
}

.vrcc-input:hover {
  border-color: var(--vrcc-border-hover);
}

.vrcc-input:focus {
  outline: none;
  border-color: var(--vrcc-primary);
  box-shadow: 0 0 0 3px rgba(0, 113, 195, 0.1);
}

.vrcc-input::placeholder {
  color: var(--vrcc-text-lighter);
}

.vrcc-input-error {
  border-color: var(--vrcc-error);
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.24);
}

.vrcc-field-error {
  margin-top: 4px;
  font-size: 12px;
  color: var(--vrcc-error);
}

/* ========================================
   Location Field & Autocomplete
   ======================================== */
.vrcc-location-field {
  position: relative;
}

.vrcc-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--vrcc-background);
  border: 1px solid var(--vrcc-border);
  border-radius: var(--vrcc-radius-sm);
  box-shadow: var(--vrcc-shadow-lg);
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
}

.vrcc-autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--vrcc-transition);
  border-bottom: 1px solid var(--vrcc-border);
}

.vrcc-autocomplete-item:last-child {
  border-bottom: none;
}

.vrcc-autocomplete-item:hover,
.vrcc-autocomplete-item[aria-selected='true'] {
  background: var(--vrcc-background-alt);
  color: var(--vrcc-primary);
}

/* ========================================
   Date Inputs
   ======================================== */
.vrcc-date-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.vrcc-date-input {
  min-width: 0;
}

.vrcc-date-separator {
  color: var(--vrcc-text-lighter);
  font-size: 18px;
}

/* ========================================
   Guest Selector
   ======================================== */
.vrcc-guest-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: var(--vrcc-background);
}

.vrcc-guest-toggle[aria-expanded='true'] {
  border-color: var(--vrcc-primary);
}

.vrcc-chevron {
  transition: transform 0.2s ease;
  color: var(--vrcc-text-light);
}

.vrcc-guest-toggle[aria-expanded='true'] .vrcc-chevron {
  transform: rotate(180deg);
}

.vrcc-guest-modal {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--vrcc-background);
  border: 1px solid var(--vrcc-border);
  border-radius: var(--vrcc-radius-sm);
  box-shadow: var(--vrcc-shadow-lg);
  padding: 20px;
  z-index: 100;
}

.vrcc-modal-title {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--vrcc-text);
}

.vrcc-counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--vrcc-border);
}

.vrcc-counter-row:last-child {
  border-bottom: none;
}

.vrcc-counter-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vrcc-counter-name {
  font-weight: 600;
  color: var(--vrcc-text);
}

.vrcc-counter-desc {
  font-size: 13px;
  color: var(--vrcc-text-light);
}

.vrcc-counter-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.vrcc-btn-counter {
  width: 36px;
  height: 36px;
  border: 1px solid var(--vrcc-border);
  border-radius: 50%;
  background: var(--vrcc-background);
  color: var(--vrcc-text);
  font-size: 18px;
  cursor: pointer;
  transition: var(--vrcc-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vrcc-btn-counter:hover:not(:disabled) {
  border-color: var(--vrcc-primary);
  color: var(--vrcc-primary);
}

.vrcc-btn-counter:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.vrcc-counter-controls input {
  width: 50px;
  text-align: center;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--vrcc-text);
}

/* ========================================
   Search Button
   ======================================== */
.vrcc-btn-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: var(--vrcc-primary);
  color: #fff;
  border: none;
  border-radius: var(--vrcc-radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--vrcc-transition);
  white-space: nowrap;
}

.vrcc-btn-search:hover {
  background: var(--vrcc-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--vrcc-shadow);
}

.vrcc-btn-search:active {
  transform: translateY(0);
}

.vrcc-search-icon {
  flex-shrink: 0;
}

/* ========================================
   Loading State
   ======================================== */
.vrcc-search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.vrcc-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--vrcc-border);
  border-top-color: var(--vrcc-primary);
  border-radius: 50%;
  animation: vrcc-spin 0.8s linear infinite;
}

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

/* ========================================
   Results Wrapper & Split Layout
   ======================================== */
.vrcc-results-wrapper {
  margin-top: 32px;
}

/* ========================================
   Mobile Toggle Buttons
   ======================================== */
.vrcc-mobile-view-toggle,
.vrcc-mobile-toggle-buttons {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid #EBEBEB;
  padding: 12px 24px;
}

.vrcc-toggle-buttons {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.vrcc-toggle-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: #FFFFFF;
  border: 1px solid #DDDDDD;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--vrcc-text);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.vrcc-toggle-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.vrcc-toggle-btn.active {
  background: #222222;
  color: #FFFFFF;
  border-color: #222222;
}

.vrcc-toggle-btn:hover:not(.active) {
  background: #F7F7F7;
  border-color: #222222;
}

.vrcc-toggle-btn:focus {
  outline: 2px solid #222222;
  outline-offset: 2px;
}

/* Show on mobile/tablet */
@media (max-width: 1023px) {
  .vrcc-mobile-view-toggle,
  .vrcc-mobile-toggle-buttons {
    display: block;
  }
}

/* ========================================
   Split Layout Container (Desktop) - 50/50 Split
   ======================================== */
.vrcc-split-layout,
.vrcc-split-view-container {
  display: flex;
  gap: 0;
  align-items: flex-start;
  min-height: calc(100vh - 80px);
  position: relative;
}

.vrcc-results-content,
.vrcc-listings-panel {
  flex: 1 1 50%;
  max-width: 50%;
  min-width: 0;
  padding: 24px;
  overflow-y: auto;
  height: calc(100vh - 80px);
}

.vrcc-map-container,
.vrcc-map-panel {
  flex: 1 1 50%;
  max-width: 50%;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  min-height: 600px;
  background: var(--vrcc-background-alt);
  border: 1px solid var(--vrcc-border);
  border-radius: 0;
  overflow: hidden;
}

/* Full-width map state (20%/80% split) - supports both class variants */
.vrcc-split-layout.map-fullwidth .vrcc-results-content,
.vrcc-split-view-container.map-fullwidth .vrcc-listings-panel,
.vrcc-split-layout.vrcc-map-fullwidth .vrcc-results-content,
.vrcc-split-view-container.vrcc-map-fullwidth .vrcc-listings-panel {
  flex: 1 1 20%;
  max-width: 20%;
}

.vrcc-split-layout.map-fullwidth .vrcc-map-container,
.vrcc-split-view-container.map-fullwidth .vrcc-map-panel,
.vrcc-split-layout.vrcc-map-fullwidth .vrcc-map-container,
.vrcc-split-view-container.vrcc-map-fullwidth .vrcc-map-panel {
  flex: 1 1 80%;
  max-width: 80%;
}

.vrcc-map {
  width: 100%;
  height: 100%;
}

/* Full-width map toggle button (Desktop only) */
.vrcc-fullwidth-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border: 1px solid #DDDDDD;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 100;
}

.vrcc-fullwidth-toggle:hover {
  background: #F7F7F7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.vrcc-fullwidth-toggle svg {
  width: 20px;
  height: 20px;
  stroke: #222222;
  transition: transform 0.3s ease;
}

/* Rotate icon when map is full-width - supports both class variants */
.vrcc-split-layout.map-fullwidth .vrcc-fullwidth-toggle svg,
.vrcc-split-view-container.map-fullwidth .vrcc-fullwidth-toggle svg,
.vrcc-split-layout.vrcc-map-fullwidth .vrcc-fullwidth-toggle svg,
.vrcc-split-view-container.vrcc-map-fullwidth .vrcc-fullwidth-toggle svg {
  transform: rotate(180deg);
}

/* Hide toggle button on mobile */
@media (max-width: 1024px) {
  .vrcc-fullwidth-toggle {
    display: none;
  }
}

.vrcc-map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px;
  text-align: center;
}

.vrcc-map-icon {
  color: var(--vrcc-text-lighter);
  margin-bottom: 16px;
}

.vrcc-map-placeholder-text {
  color: var(--vrcc-text-light);
  font-size: 14px;
  margin: 0;
}

/* ========================================
   Search Criteria Summary Header (Removed - now in search header)
   ======================================== */
/* Styles removed - functionality moved to vrcc-search-header.css */

.vrcc-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--vrcc-border);
}

.vrcc-active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-right: 12px;
}

.vrcc-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: #eef2f7;
  color: #334155;
  font-size: .85rem;
}
.vrcc-chip button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  line-height: 1;
}

.vrcc-results-count {
  font-size: 18px;
  font-weight: 600;
  color: var(--vrcc-text);
}

.vrcc-results-location {
  font-weight: 400;
  color: var(--vrcc-text-light);
}

.vrcc-sort-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vrcc-select {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--vrcc-border);
  border-radius: var(--vrcc-radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--vrcc-background);
  color: var(--vrcc-text);
  cursor: pointer;
  transition: var(--vrcc-transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.vrcc-select:hover {
  border-color: var(--vrcc-border-hover);
}

.vrcc-select:focus {
  outline: none;
  border-color: var(--vrcc-primary);
  box-shadow: 0 0 0 3px rgba(0, 113, 195, 0.1);
}

/* ========================================
   Results Grid
   ======================================== */
.vrcc-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

/* Desktop: multi-column grid when map is visible (Airbnb-style 2–3 cards) */
@media (min-width: 1025px) {
  .vrcc-split-layout .vrcc-results-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (min-width: 1440px) {
  .vrcc-split-layout .vrcc-results-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
  }
}

/* Full-width map mode: single column compact cards */
.vrcc-split-layout.map-fullwidth .vrcc-results-grid,
.vrcc-split-view-container.map-fullwidth .vrcc-results-grid,
.vrcc-split-layout.vrcc-map-fullwidth .vrcc-results-grid,
.vrcc-split-view-container.vrcc-map-fullwidth .vrcc-results-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

/* ========================================
   Property Card - Airbnb Vertical Layout
   ======================================== */
.vrcc-property-card {
  background: var(--vrcc-background);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Desktop hover effects only */
@media (min-width: 769px) {
  .vrcc-property-card:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.12);
  }

  .vrcc-property-card:hover .vrcc-card-image {
    filter: brightness(1.05);
  }
}

/* Image Section - 1:1 Aspect Ratio (Square - Airbnb Style) */
.vrcc-card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.vrcc-card-image-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.vrcc-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.2s ease;
}

/* Swiper Carousel Overrides */
.vrcc-card-image-carousel {
  width: 100%;
  height: 100%;
}

.vrcc-card-image-carousel .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navigation Arrows - Desktop Only, Visible on Hover */
.vrcc-card-image-carousel .swiper-button-prev,
.vrcc-card-image-carousel .swiper-button-next {
  display: none; /* Hidden on mobile */
  opacity: 0;
  transition: opacity 0.3s ease;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.vrcc-card-image-carousel .swiper-button-prev::after,
.vrcc-card-image-carousel .swiper-button-next::after {
  font-size: 14px;
  font-weight: 700;
  color: #222;
}

/* Show arrows on hover (desktop only) */
@media (min-width: 768px) {
  .vrcc-card-image-carousel .swiper-button-prev,
  .vrcc-card-image-carousel .swiper-button-next {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .vrcc-property-card:hover .swiper-button-prev,
  .vrcc-property-card:hover .swiper-button-next {
    opacity: 1;
  }

  .vrcc-card-image-carousel .swiper-button-prev:hover,
  .vrcc-card-image-carousel .swiper-button-next:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
  }
}

/* Pagination Dots - 5 indicators */
.vrcc-card-image-carousel .swiper-pagination {
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.vrcc-card-image-carousel .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.7);
  opacity: 1;
  transition: all 0.3s ease;
  margin: 0 !important; /* Override Swiper default margin */
}

.vrcc-card-image-carousel .swiper-pagination-bullet-active {
  width: 8px;
  height: 8px;
  background: #fff;
}

/* Image Carousel Indicators */
.vrcc-carousel-indicators {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
  pointer-events: none;
}

.vrcc-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  transition: background 0.2s ease;
}

.vrcc-carousel-dot.active {
  background: rgba(255, 255, 255, 1);
}

/* Carousel Navigation Arrows - Desktop Only */
@media (min-width: 769px) {
  .vrcc-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 10;
  }

  .vrcc-carousel-arrow.prev {
    left: 12px;
  }

  .vrcc-carousel-arrow.next {
    right: 12px;
  }

  .vrcc-property-card:hover .vrcc-carousel-arrow {
    opacity: 1;
  }

  .vrcc-carousel-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
  }
}

/* Heart Icon (Favorite Button) */
.vrcc-favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  padding: 0;
}

.vrcc-favorite-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.vrcc-heart-icon {
  width: 20px;
  height: 20px;
  stroke: #222;
  stroke-width: 2;
  fill: none;
  transition: all 0.2s ease;
}

.vrcc-favorite-btn.favorited .vrcc-heart-icon {
  fill: #FF385C;
  stroke: #FF385C;
}

.vrcc-favorite-btn:hover .vrcc-heart-icon {
  stroke: #FF385C;
}

/* Badge Overlay (Guest favorite, Premier Host, etc.) */
.vrcc-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #222;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  line-height: 1.4;
  z-index: 5;
}

/* Content Section */
.vrcc-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Header Row (Location + Rating) */
.vrcc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vrcc-card-location {
  font-size: 14px;
  color: #6a6a6a;
  font-weight: 400;
  margin: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Property Title */
.vrcc-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #222;
}

.vrcc-card-title a {
  color: #222;
  text-decoration: none;
  transition: color 0.2s ease;
}

.vrcc-card-title a:hover {
  color: var(--vrcc-primary, #FF385C);
}

/* Property Stats (Bedrooms · Bathrooms · Guests) */
.vrcc-card-stats {
  margin: 0;
  font-size: 14px;
  color: #6a6a6a;
  line-height: 1.3;
  font-weight: 400;
}

.vrcc-card-stats .vrcc-stat-divider {
  margin: 0 6px;
  color: #6a6a6a;
}

/* Discount Badge */
.vrcc-discount-badge {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #6a6a6a;
  padding: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 400;
}

/* Pricing Section */
.vrcc-card-pricing {
  margin-top: auto;
  padding-top: 8px;
}

/* Original Price (Strikethrough) */
.vrcc-price-original {
  margin-bottom: 4px;
}

.vrcc-price-strikethrough {
  font-size: 14px;
  color: #6a6a6a;
  text-decoration: line-through;
}

/* Current Price */
.vrcc-price-current {
  margin-bottom: 2px;
  line-height: 1.2;
}

.vrcc-price-amount {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  letter-spacing: -0.2px;
}

.vrcc-price-period {
  font-size: 14px;
  font-weight: 400;
  color: #222;
  letter-spacing: normal;
}

/* Price Details */
.vrcc-price-details {
  margin: 0;
  font-size: 14px;
  color: #6a6a6a;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.vrcc-price-details:hover {
  color: #222;
}

/* Price Note */
.vrcc-price-note {
  margin: 0;
  font-size: 12px;
  color: #6a6a6a;
}

/* Rating Badge */
.vrcc-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  color: #222;
  padding: 0;
  border-radius: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  flex-shrink: 0;
}

.vrcc-rating-score {
  font-weight: 600;
  color: #222;
}

.vrcc-rating-label {
  display: none;
}

.vrcc-rating-divider {
  display: none;
}

.vrcc-rating-reviews {
  font-size: 14px;
  font-weight: 400;
  color: #6a6a6a;
  display: none;
}

/* Star icon before rating */
.vrcc-card-rating::before {
  content: '★';
  color: #222;
  font-size: 12px;
  line-height: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .vrcc-property-card {
    border-radius: 12px;
  }

  .vrcc-card-content {
    padding: 12px;
  }

  .vrcc-badge-overlay {
    font-size: 12px;
    padding: 4px 10px;
  }

  .vrcc-price-amount {
    font-size: 16px;
  }
}

/* Full-width map mode: Compact horizontal card layout for narrow sidebar */
.vrcc-split-layout.map-fullwidth .vrcc-property-card,
.vrcc-split-view-container.map-fullwidth .vrcc-property-card,
.vrcc-split-layout.vrcc-map-fullwidth .vrcc-property-card,
.vrcc-split-view-container.vrcc-map-fullwidth .vrcc-property-card {
  flex-direction: row;
  border-radius: 8px;
  min-height: 100px;
}

.vrcc-split-layout.map-fullwidth .vrcc-card-image-wrapper,
.vrcc-split-view-container.map-fullwidth .vrcc-card-image-wrapper,
.vrcc-split-layout.vrcc-map-fullwidth .vrcc-card-image-wrapper,
.vrcc-split-view-container.vrcc-map-fullwidth .vrcc-card-image-wrapper {
  width: 100px;
  flex-shrink: 0;
}

.vrcc-split-layout.map-fullwidth .vrcc-card-image-carousel,
.vrcc-split-view-container.map-fullwidth .vrcc-card-image-carousel,
.vrcc-split-layout.vrcc-map-fullwidth .vrcc-card-image-carousel,
.vrcc-split-view-container.vrcc-map-fullwidth .vrcc-card-image-carousel {
  aspect-ratio: 1 / 1;
  height: 100px;
}

.vrcc-split-layout.map-fullwidth .vrcc-card-content,
.vrcc-split-view-container.map-fullwidth .vrcc-card-content,
.vrcc-split-layout.vrcc-map-fullwidth .vrcc-card-content,
.vrcc-split-view-container.vrcc-map-fullwidth .vrcc-card-content {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.vrcc-split-layout.map-fullwidth .vrcc-card-title,
.vrcc-split-view-container.map-fullwidth .vrcc-card-title,
.vrcc-split-layout.vrcc-map-fullwidth .vrcc-card-title,
.vrcc-split-view-container.vrcc-map-fullwidth .vrcc-card-title {
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vrcc-split-layout.map-fullwidth .vrcc-card-subtitle,
.vrcc-split-view-container.map-fullwidth .vrcc-card-subtitle,
.vrcc-split-layout.vrcc-map-fullwidth .vrcc-card-subtitle,
.vrcc-split-view-container.vrcc-map-fullwidth .vrcc-card-subtitle {
  font-size: 11px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vrcc-split-layout.map-fullwidth .vrcc-card-specs,
.vrcc-split-view-container.map-fullwidth .vrcc-card-specs,
.vrcc-split-layout.vrcc-map-fullwidth .vrcc-card-specs,
.vrcc-split-view-container.vrcc-map-fullwidth .vrcc-card-specs {
  display: none;
}

.vrcc-split-layout.map-fullwidth .vrcc-card-footer,
.vrcc-split-view-container.map-fullwidth .vrcc-card-footer,
.vrcc-split-layout.vrcc-map-fullwidth .vrcc-card-footer,
.vrcc-split-view-container.vrcc-map-fullwidth .vrcc-card-footer {
  margin-top: auto;
}

.vrcc-split-layout.map-fullwidth .vrcc-price-amount,
.vrcc-split-view-container.map-fullwidth .vrcc-price-amount,
.vrcc-split-layout.vrcc-map-fullwidth .vrcc-price-amount,
.vrcc-split-view-container.vrcc-map-fullwidth .vrcc-price-amount {
  font-size: 14px;
}

.vrcc-split-layout.map-fullwidth .vrcc-price-period,
.vrcc-split-view-container.map-fullwidth .vrcc-price-period,
.vrcc-split-layout.vrcc-map-fullwidth .vrcc-price-period,
.vrcc-split-view-container.vrcc-map-fullwidth .vrcc-price-period {
  font-size: 11px;
}

/* Hide carousel navigation in compact mode */
.vrcc-split-layout.map-fullwidth .vrcc-carousel-arrow,
.vrcc-split-view-container.map-fullwidth .vrcc-carousel-arrow,
.vrcc-split-layout.vrcc-map-fullwidth .vrcc-carousel-arrow,
.vrcc-split-view-container.vrcc-map-fullwidth .vrcc-carousel-arrow,
.vrcc-split-layout.map-fullwidth .swiper-button-next,
.vrcc-split-view-container.map-fullwidth .swiper-button-next,
.vrcc-split-layout.vrcc-map-fullwidth .swiper-button-next,
.vrcc-split-view-container.vrcc-map-fullwidth .swiper-button-next,
.vrcc-split-layout.map-fullwidth .swiper-button-prev,
.vrcc-split-view-container.map-fullwidth .swiper-button-prev,
.vrcc-split-layout.vrcc-map-fullwidth .swiper-button-prev,
.vrcc-split-view-container.vrcc-map-fullwidth .swiper-button-prev {
  display: none !important;
}

/* ========================================
   Empty State
   ======================================== */
.vrcc-empty-state {
  text-align: center;
  padding: 64px 24px;
}

.vrcc-empty-icon {
  margin: 0 auto 24px;
  color: var(--vrcc-text-lighter);
}

.vrcc-empty-title {
  margin: 0 0 12px 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--vrcc-text);
}

.vrcc-empty-message {
  margin: 0 0 24px 0;
  font-size: 16px;
  color: var(--vrcc-text-light);
}

.vrcc-btn-secondary {
  padding: 12px 24px;
  background: var(--vrcc-background);
  color: var(--vrcc-primary);
  border: 1px solid var(--vrcc-primary);
  border-radius: var(--vrcc-radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--vrcc-transition);
}

.vrcc-btn-secondary:hover {
  background: var(--vrcc-primary);
  color: #fff;
}

/* ========================================
   Pagination
   ======================================== */
.vrcc-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 0;
}

.vrcc-pagination-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--vrcc-background);
  color: var(--vrcc-text);
  border: 1px solid var(--vrcc-border);
  border-radius: var(--vrcc-radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--vrcc-transition);
}

.vrcc-pagination-btn:hover:not(:disabled) {
  border-color: var(--vrcc-primary);
  color: var(--vrcc-primary);
}

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

.vrcc-pagination-pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vrcc-pagination-page {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vrcc-background);
  border: 1px solid var(--vrcc-border);
  border-radius: var(--vrcc-radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--vrcc-transition);
}

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

.vrcc-pagination-page.active {
  background: var(--vrcc-primary);
  color: #fff;
  border-color: var(--vrcc-primary);
}

/* ========================================
   Responsive Design
   ======================================== */

/* ========================================
   Search Criteria Header - Responsive
   ======================================== */

/* Tablet: Two rows for criteria items (768-1024px) */
@media (max-width: 1024px) {
  .vrcc-search-criteria-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 20px;
  }

  .vrcc-criteria-container {
    gap: 16px;
    flex-wrap: wrap;
  }

  .vrcc-criteria-item {
    flex: 1;
    min-width: 150px;
  }

  .vrcc-criteria-search-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile: Stack criteria vertically (<768px) */
@media (max-width: 768px) {
  .vrcc-search-criteria-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 16px;
    margin-bottom: 20px;
  }

  .vrcc-criteria-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .vrcc-criteria-item {
    flex: 1;
    min-width: unset;
    padding: 8px 10px;
    gap: 8px;
  }

  .vrcc-criteria-icon {
    width: 16px;
    height: 16px;
  }

  .vrcc-criteria-label {
    font-size: 11px;
  }

  .vrcc-criteria-value {
    font-size: 13px;
    max-width: 120px;
  }

  .vrcc-criteria-edit-btn {
    width: 24px;
    height: 24px;
    margin-left: -4px;
  }

  .vrcc-criteria-search-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* Extra small: Single column (<480px) */
@media (max-width: 480px) {
  .vrcc-criteria-container {
    grid-template-columns: 1fr;
  }

  .vrcc-criteria-item {
    min-width: 100%;
    padding: 6px 8px;
  }

  .vrcc-criteria-value {
    max-width: 100px;
  }

  .vrcc-search-criteria-header {
    padding: 12px 12px;
  }
}

/* Tablet: Stack Map Below Results (768-1024px) */
@media (max-width: 1024px) {
  .vrcc-search-form {
    grid-template-columns: 1fr 1fr;
  }

  .vrcc-search-actions {
    grid-column: 1 / -1;
  }

  /* Stack map below results */
  .vrcc-split-layout {
    flex-direction: column;
  }

  .vrcc-results-content {
    width: 100%;
  }

  .vrcc-map-container {
    position: relative;
    top: 0;
    width: 100%;
    flex: 0 0 auto;
    height: 500px;
    min-height: 500px;
  }

  .vrcc-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

/* Mobile: Toggle Between Results and Map (<768px) */
@media (max-width: 768px) {
  .vrcc-search-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .vrcc-search-wrapper {
    padding: 16px;
  }

  .vrcc-date-inputs {
    grid-template-columns: 1fr;
  }

  .vrcc-date-separator {
    display: none;
  }

  .vrcc-results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .vrcc-results-grid {
    grid-template-columns: 1fr;
  }

  .vrcc-btn-search {
    width: 100%;
    justify-content: center;
  }

  /* Mobile Toggle Buttons Visible */
  .vrcc-mobile-toggle-buttons {
    display: flex;
  }

  /* Split Layout: Full Width Toggle */
  .vrcc-split-layout {
    position: relative;
  }

  .vrcc-results-content,
  .vrcc-map-container {
    width: 100%;
    flex: 1;
  }

  .vrcc-map-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    min-height: 100vh;
    border-radius: 0;
    border: none;
    z-index: 999;
    display: none;
  }

  /* Show Results by Default */
  .vrcc-split-layout.show-results .vrcc-results-content {
    display: block;
  }

  .vrcc-split-layout.show-results .vrcc-map-container {
    display: none;
  }

  /* Show Map When Toggled */
  .vrcc-split-layout.show-map .vrcc-results-content {
    display: none;
  }

  .vrcc-split-layout.show-map .vrcc-map-container {
    display: block;
  }

  /* Default State: Show Results */
  .vrcc-split-layout:not(.show-map) .vrcc-results-content {
    display: block;
  }

  .vrcc-split-layout:not(.show-map) .vrcc-map-container {
    display: none;
  }

  /* Map Close Button (Mobile Only) */
  .vrcc-map-close-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--vrcc-shadow-md);
    transition: var(--vrcc-transition);
    padding: 0;
  }

  .vrcc-map-close-btn:hover {
    background: #fff;
    box-shadow: var(--vrcc-shadow-lg);
    transform: scale(1.05);
  }

  .vrcc-map-close-btn:active {
    transform: scale(0.95);
  }

  .vrcc-map-close-btn:focus {
    outline: 2px solid var(--vrcc-primary);
    outline-offset: 2px;
  }

  .vrcc-map-close-btn svg {
    stroke: #333;
    width: 24px;
    height: 24px;
    pointer-events: none;
  }
}

@media (max-width: 480px) {
  .vrcc-search-wrapper {
    padding: 12px;
    margin-bottom: 20px;
  }

  .vrcc-input {
    padding: 10px 12px;
    font-size: 14px;
  }

  .vrcc-btn-search {
    padding: 10px 24px;
    font-size: 14px;
  }

  .vrcc-card-image {
    height: 180px;
  }
}

/* ========================================
   Map Sync Styles
   ======================================== */
/* Search this area button */
.vrcc-search-area-btn {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: var(--vrcc-primary);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--vrcc-shadow-lg);
  transition: var(--vrcc-transition);
  z-index: 50;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.vrcc-search-area-btn.show {
  opacity: 1;
  pointer-events: all;
  animation: vrcc-fade-in 0.2s ease;
}

.vrcc-search-area-btn:hover {
  background: var(--vrcc-primary-hover);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 113, 195, 0.3);
}

@keyframes vrcc-fade-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Property card highlight states */
.vrcc-property-card.vrcc-card-highlighted {
  border-color: var(--vrcc-primary);
  box-shadow: 0 0 0 3px rgba(0, 113, 195, 0.2);
  transform: translateY(-2px);
}

.vrcc-property-card.vrcc-card-hover-highlight {
  border-color: var(--vrcc-primary);
  box-shadow: var(--vrcc-shadow);
  transform: translateY(-1px);
}

/* Bidirectional hover sync between cards and map markers */
.vrcc-card-map-hover {
  border: 2px solid #FF385C;
  box-shadow: 0 6px 20px rgba(255, 56, 92, 0.2);
  transform: translateY(-2px);
}

/* Map loading spinner */
.vrcc-map-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.vrcc-map-loading .vrcc-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--vrcc-primary);
  border-radius: 50%;
  animation: vrcc-spin 0.8s linear infinite;
}

.vrcc-map-loading-text {
  color: var(--vrcc-text);
  font-size: 14px;
  font-weight: 600;
}

/* ========================================
   Advanced Filters Panel
   ======================================== */

/* Filter Wrapper */
.vrcc-filters-wrapper {
  position: relative;
}

/* Filter Toggle Button */
.vrcc-filters-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--vrcc-background);
  border: 1px solid var(--vrcc-border);
  border-radius: var(--vrcc-radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--vrcc-text);
  cursor: pointer;
  transition: var(--vrcc-transition);
  margin-bottom: 20px;
}

.vrcc-filters-toggle-btn:hover {
  background: var(--vrcc-background-alt);
  border-color: var(--vrcc-primary);
}

.vrcc-filters-toggle-btn:focus {
  outline: 2px solid var(--vrcc-primary);
  outline-offset: 2px;
}

.vrcc-filters-toggle-btn svg {
  flex-shrink: 0;
}

/* Filter Count Badge */
.vrcc-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--vrcc-primary);
  color: #fff;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

/* Active State (when filters applied) */
.vrcc-filters-toggle-btn[aria-expanded="true"],
.vrcc-filters-toggle-btn.has-active-filters {
  background: var(--vrcc-primary);
  color: #fff;
  border-color: var(--vrcc-primary);
}

.vrcc-filters-toggle-btn[aria-expanded="true"] svg,
.vrcc-filters-toggle-btn.has-active-filters svg {
  stroke: #fff;
}

.vrcc-filters-toggle-btn.has-active-filters .vrcc-filter-count {
  background: #fff;
  color: var(--vrcc-primary);
}

/* Filter Panel - Desktop (>1024px) */
.vrcc-filters-panel {
  position: sticky;
  top: 20px;
  width: 280px;
  max-height: calc(100vh - 40px);
  background: var(--vrcc-background);
  border: 1px solid var(--vrcc-border);
  border-radius: var(--vrcc-radius);
  box-shadow: var(--vrcc-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 90;
}

.vrcc-filters-panel[aria-hidden="false"] {
  transform: translateX(0);
}

/* Filter Header */
.vrcc-filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--vrcc-border);
  background: var(--vrcc-background);
  flex-shrink: 0;
}

.vrcc-filters-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--vrcc-text);
}

.vrcc-btn-clear-filters {
  padding: 6px 0;
  background: transparent;
  border: none;
  color: #222222;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--vrcc-transition);
  text-decoration: underline;
  border-radius: 0;
}

.vrcc-btn-clear-filters:hover {
  color: #000000;
}

.vrcc-btn-clear-filters:focus {
  outline: 2px solid var(--vrcc-primary);
  outline-offset: 2px;
}

/* Filter Body (Scrollable) */
.vrcc-filters-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* Individual Filter Section */
.vrcc-filter-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--vrcc-border);
}

.vrcc-filter-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.vrcc-filter-title {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--vrcc-text);
}

.vrcc-filter-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Button groups for Bedrooms/Bathrooms - Airbnb Style */
.vrcc-filter-content#vrcc-bedrooms-group,
.vrcc-filter-content#vrcc-bathrooms-group {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.vrcc-filter-btn {
  flex: 1;
  min-width: 60px;
  padding: 12px 16px;
  border: 1px solid #B0B0B0;
  background: var(--vrcc-background);
  color: var(--vrcc-text);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vrcc-filter-btn:hover {
  border-color: #222222;
}

.vrcc-filter-btn.active {
  background: #222222;
  border-color: #222222;
  color: #FFFFFF;
}

/* Guests counter inline in filters */
.vrcc-counter-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vrcc-btn-increment,
.vrcc-btn-decrement {
  width: 32px;
  height: 32px;
  border-radius: var(--vrcc-radius-sm);
  border: 1px solid var(--vrcc-border);
  background: var(--vrcc-background);
  cursor: pointer;
}

.vrcc-counter-value {
  width: 56px;
  text-align: center;
  border: 1px solid var(--vrcc-border);
  background: var(--vrcc-background);
  border-radius: var(--vrcc-radius-sm);
  padding: 6px 8px;
}

/* Filter Footer */
.vrcc-filters-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--vrcc-border);
  background: var(--vrcc-background);
  flex-shrink: 0;
}

.vrcc-btn-primary {
  width: 100%;
  padding: 14px 24px;
  background: #222222;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vrcc-btn-primary:hover {
  background: #000000;
}

.vrcc-btn-primary:focus {
  outline: 2px solid #222222;
  outline-offset: 2px;
}

/* Filter Overlay (Mobile/Tablet) */
.vrcc-filters-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 89;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.vrcc-filters-overlay[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}

/* ========================================
   3-Column Layout (Filters + Results + Map)
   ======================================== */
@media (min-width: 1025px) {
  .vrcc-search-results-wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
  }

  .vrcc-filters-wrapper {
    grid-row: 1 / 3;
  }

  .vrcc-filters-panel {
    position: sticky;
  }

  .vrcc-filters-overlay {
    display: none;
  }

  .vrcc-split-layout {
    grid-column: 2;
  }
}

/* ========================================
   Tablet: Overlay Drawer (768-1024px)
   ======================================== */
@media (max-width: 1024px) {
  .vrcc-filters-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 85%;
    max-height: 100vh;
    transform: translateX(-100%);
    z-index: 1000;
    box-shadow: var(--vrcc-shadow-lg);
  }

  .vrcc-filters-panel[aria-hidden="false"] {
    transform: translateX(0);
  }

  .vrcc-filters-overlay {
    display: block;
  }

  /* Close button for tablet drawer */
  .vrcc-filters-header::before {
    content: '';
    position: absolute;
    top: 16px;
    right: 20px;
    width: 24px;
    height: 24px;
    cursor: pointer;
  }
}

/* ========================================
   Mobile: Full-Screen Bottom Drawer (<768px)
   ======================================== */
@media (max-width: 768px) {
  .vrcc-filters-toggle-btn {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    box-shadow: var(--vrcc-shadow-lg);
    background: var(--vrcc-background);
  }

  .vrcc-filters-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 80vh;
    max-height: 80vh;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }

  .vrcc-filters-panel[aria-hidden="false"] {
    transform: translateY(0);
  }

  /* Drag handle indicator */
  .vrcc-filters-header::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--vrcc-border);
    border-radius: 2px;
  }

  .vrcc-filters-header {
    padding-top: 24px;
  }
}

/* ========================================
   Flatpickr Blocked Dates Styling
   ======================================== */
/* Blocked date styling */
.flatpickr-day.blocked-date {
  background: #FF5A5F !important;
  color: white !important;
  text-decoration: line-through;
  cursor: not-allowed;
  position: relative;
}

.flatpickr-day.blocked-date:hover {
  background: #E0484D !important;
}

.blocked-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 10px;
  color: white;
}

/* Limited availability styling */
.flatpickr-day.limited-availability {
  background: #FFD700;
  color: #333;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
  .vrcc-search-wrapper,
  .vrcc-pagination,
  .vrcc-btn-search,
  .vrcc-sort-dropdown,
  .vrcc-search-area-btn,
  .vrcc-map-loading,
  .vrcc-filters-wrapper,
  .vrcc-filters-panel,
  .vrcc-filters-overlay {
    display: none;
  }

  .vrcc-property-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }

  .vrcc-property-card.vrcc-card-highlighted,
  .vrcc-property-card.vrcc-card-hover-highlight {
    border-color: #000;
    box-shadow: none;
    transform: none;
  }
}

/* ========================================
   Guests Modal Popover (Search Bar)
   ======================================== */
.vrcc-guests-wrapper {
  position: relative;
}

.vrcc-guests-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--vrcc-border);
  border-radius: var(--vrcc-radius);
  background: var(--vrcc-background);
  color: var(--vrcc-text);
  font-size: 14px;
  cursor: pointer;
  transition: var(--vrcc-transition);
  text-align: left;
}

.vrcc-guests-toggle:hover {
  border-color: var(--vrcc-primary);
}

.vrcc-guests-toggle[aria-expanded="true"] {
  border-color: var(--vrcc-primary);
  box-shadow: 0 0 0 3px rgba(0, 127, 173, 0.1);
}

.vrcc-guests-chevron {
  color: var(--vrcc-text-light);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.vrcc-guests-toggle[aria-expanded="true"] .vrcc-guests-chevron {
  transform: rotate(180deg);
}

.vrcc-guests-modal {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 280px;
  background: var(--vrcc-background);
  border: 1px solid var(--vrcc-border);
  border-radius: var(--vrcc-radius);
  box-shadow: var(--vrcc-shadow-lg);
  padding: 16px;
  z-index: 1000;
}

.vrcc-guests-modal[hidden] {
  display: none;
}

.vrcc-guests-modal-title {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--vrcc-text);
}

.vrcc-guests-counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--vrcc-border);
}

.vrcc-guests-counter-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vrcc-guests-counter-name {
  font-weight: 600;
  color: var(--vrcc-text);
  font-size: 14px;
}

.vrcc-guests-counter-desc {
  font-size: 12px;
  color: var(--vrcc-text-light);
}

.vrcc-guests-counter-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vrcc-guests-counter-controls .vrcc-counter-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--vrcc-border);
  background: var(--vrcc-background);
  color: var(--vrcc-text);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--vrcc-transition);
}

.vrcc-guests-counter-controls .vrcc-counter-btn:hover:not(:disabled) {
  border-color: var(--vrcc-primary);
  color: var(--vrcc-primary);
}

.vrcc-guests-counter-controls .vrcc-counter-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.vrcc-guests-counter-controls .vrcc-counter-value {
  width: 44px;
  text-align: center;
  border: none;
  font-size: 15px;
  font-weight: 600;
  background: transparent;
  color: var(--vrcc-text);
}

.vrcc-guests-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 12px;
}

.vrcc-guests-modal-actions button {
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--vrcc-radius-sm);
  transition: var(--vrcc-transition);
}

.vrcc-guests-clear {
  color: var(--vrcc-text-light);
}

.vrcc-guests-clear:hover {
  background: var(--vrcc-background-alt);
}

.vrcc-guests-done {
  color: var(--vrcc-primary);
}

.vrcc-guests-done:hover {
  background: rgba(0, 127, 173, 0.1);
}
