/* ========================================
   CUSTOM CSS - EXTRACTED FROM HTML FILES
   ======================================== */

/* ========================================
   FILTER TAGS AND MOBILE STYLES
   ======================================== */
.selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.filter-tag {
  background: #000000;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Mobile-friendly filter tags */
@media (max-width: 768px) {
  .filter-tag {
    padding: 8px 12px !important;
    font-size: 14px !important;
    border-radius: 16px !important;
    margin: 4px !important;
    min-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  
  .remove-tag {
    background: rgba(255,255,255,0.2) !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
  }
  
  .remove-tag:hover {
    background: rgba(255,255,255,0.3) !important;
  }
  
  .remove-tag:active {
    background: rgba(255,255,255,0.4) !important;
    transform: scale(0.95) !important;
  }
}

.filter-tag .remove-tag {
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  line-height: 1;
}

.filter-tag .remove-tag:hover {
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide the checkbox icon */
.w-checkbox-input {
  display: none !important;
}

/* ========================================
   RESPONSIVE FILTER SECTION
   ======================================== */
.form-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.option-dropdown-01 {
  flex: 1;
  min-width: 200px;
  margin-bottom: 10px;
}

.filter-buttons-row {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  align-items: center;
  flex-wrap: wrap;
}

.filter-buttons-row button {
  flex: 1;
  min-width: 120px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .form-option-list {
    flex-direction: column;
    gap: 15px;
  }
  
  .option-dropdown-01 {
    min-width: 100%;
    width: 100%;
  }
  
  .filter-buttons-row {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  
  .filter-buttons-row button {
    width: 100%;
    min-width: unset;
  }
  
  .selected-tags {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .filter-tag {
    margin-bottom: 4px;
  }
}

/* Tablet responsive styles */
@media (max-width: 1024px) and (min-width: 769px) {
  .form-option-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    flex-direction: row;
  }
  
  .option-dropdown-01 {
    min-width: 180px;
  }
}

/* Small mobile styles */
@media (max-width: 480px) {
  .option-dropdown-toggle {
    padding: 12px 16px;
  }
  
  .filter-checkbox-wrap {
    padding: 10px;
  }
  
  .location-search-input {
    font-size: 14px;
    padding: 10px;
  }
  
  .filter-buttons-row button {
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* ========================================
   MOBILE FILTER DROPDOWN FIXES
   ======================================== */
@media (max-width: 768px) {
  /* Ensure dropdowns are properly positioned and don't overlap */
  .w-dropdown {
    position: relative !important;
    z-index: 1 !important;
  }
  
  .w-dropdown.w--open {
    z-index: 1000 !important;
  }
  
  .w-dropdown-list {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    z-index: 1001 !important;
    min-height: 200px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    display: none !important;
    margin-top: 5px !important;
    padding: 10px 0 !important;
  }
  
  .w-dropdown.w--open .w-dropdown-list {
    display: block !important;
  }
  
  /* Ensure filter checkboxes are visible and clickable */
  .filter-checkbox-wrap {
    padding: 20px !important;
    background: white !important;
    position: relative !important;
    z-index: 1002 !important;
    min-height: 150px !important;
  }
  
  .filter-checkbox-field {
    display: flex !important;
    align-items: center !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 1003 !important;
    min-height: 50px !important;
  }
  
  .filter-checkbox-field:last-child {
    border-bottom: none !important;
  }
  
  .filter-checkbox-field:hover {
    background: #f8f9fa !important;
  }
  
  .filter-checkbox-text {
    margin-left: 12px !important;
    font-size: 16px !important;
    color: #333 !important;
    pointer-events: none !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
  }
  
  /* Make dropdown toggles more touch-friendly */
  .option-dropdown-toggle {
    padding: 15px !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #600714 !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 1 !important;
  }
  
  .option-dropdown-toggle:hover {
    background: #600714 !important;
  }
  
  /* Ensure location search is visible */
  .location-search-input {
    width: 100% !important;
    padding: 16px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    margin-bottom: 15px !important;
    position: relative !important;
    z-index: 1002 !important;
    min-height: 50px !important;
    box-sizing: border-box !important;
  }
  
  /* Make sure the dropdown arrow is visible */
  .dropdown-arrow {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
  }
  
  /* Prevent overlapping between dropdowns */
  .form-option-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
  }
  
  .option-dropdown-01 {
    position: relative !important;
    z-index: 1 !important;
  }
  
  .option-dropdown-01.w--open {
    z-index: 1000 !important;
  }
}

/* ========================================
   PAGINATION STYLES
   ======================================== */
.pagination-section {
  margin-top: 40px;
  padding: 20px 0;
}

.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.pagination-info {
  color: #ffffff;
  font-size: 14px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #ddd;
  background: white;
  color: #333;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: #f8f9fa;
  border-color: #c3a178;
  color: #c3a178;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f8f9fa;
}

.pagination-numbers {
  display: flex;
  gap: 5px;
  align-items: center;
}

.page-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  background: white;
  color: #333;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.page-number:hover {
  background: #f8f9fa;
  border-color: #c3a178;
  color: #c3a178;
}

.page-number.active {
  background: #c3a178;
  border-color: #c3a178;
  color: white;
}

.page-number.ellipsis {
  cursor: default;
  border: none;
  background: transparent;
}

.page-number.ellipsis:hover {
  background: transparent;
  border: none;
  color: #333;
}

/* Mobile Responsive Pagination */
@media (max-width: 768px) {
  .pagination-container {
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
  }
  
  .pagination-controls {
    width: 100%;
    justify-content: center;
  }
  
  .pagination-btn {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .pagination-btn .btn-text {
    display: none;
  }
  
  .pagination-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .pagination-numbers {
    gap: 3px;
  }
  
  .page-number {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .pagination-container {
    padding: 0 10px;
  }
  
  .pagination-btn {
    padding: 10px 12px;
    min-width: 44px;
    min-height: 44px;
  }
  
  .page-number {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  
  .pagination-info {
    font-size: 13px;
    text-align: center;
  }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
  .pagination-container {
    padding: 0 30px;
  }
  
  .pagination-btn {
    padding: 11px 18px;
  }
  
  .page-number {
    width: 38px;
    height: 38px;
  }
}

/* ========================================
   IMAGE GALLERY STYLES (FROM DETAIL_PROPERTIES.HTML)
   ======================================== */
.image-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
  margin: 0 8px;
  flex-shrink: 0;
}

.image-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.image-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.image-tabs-container {
  position: relative;
}

.property-head-tabs-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.property-single-tab-link {
  flex-shrink: 0;
  margin: 0 4px;
}

.property-tab-img {
  object-fit: fit;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.property-single-tab-link.w--current .property-tab-img {
  border-color: #b36565;
}

/* Responsive tab images based on screen size */
@media (max-width: 480px) {
  /* Show only 3 images on very small screens */
  .property-single-tab-link:nth-child(n+4) {
    display: none !important;
  }
  
  .property-single-tab-link {
    flex: 0 0 calc(33.333% - 8px);
    margin: 0 4px;
  }
  
  .image-tabs-container {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .image-tabs-container::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 768px) and (min-width: 481px) {
  /* Show only 4 images on small screens */
  .property-single-tab-link:nth-child(n+5) {
    display: none !important;
  }
  
  .property-single-tab-link {
    flex: 0 0 calc(25% - 6px);
    margin: 0 3px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  /* Show only 5 images on medium screens */
  .property-single-tab-link:nth-child(n+6) {
    display: none !important;
  }
  
  .property-single-tab-link {
    flex: 0 0 calc(20% - 4px);
    margin: 0 2px;
  }
}

/* Hide body-sub-title on mobile view */
@media (max-width: 768px) {
  .body-sub-title.para-05---regular.dot {
    display: none !important;
  }
}

/* Default: Show all 5 images on large screens */
@media (min-width: 1025px) {
  .property-single-tab-link {
    flex: 0 0 calc(20% - 4px);
    margin: 0 2px;
  }
}
