/* ===== EXPLORE PAGE STYLES ===== */

.page-header {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, rgba(0,40,20,0.85) 0%, rgba(20,20,20,0.95) 100%);
  color: white;
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1566073771259-6a8506099945?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: -2;
  animation: slowZoom 20s infinite alternate ease-in-out;
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* ===== EXPLORE SECTION ===== */
.explore-section {
    padding: 3rem 0;
    min-height: 100vh;
}

/* ===== FILTER SIDEBAR ===== */
.filter-sidebar {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
    animation: slideInLeft 0.6s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--warm-beige);
}

.filter-header h4 {
    font-family: var(--heading-font);
    color: var(--charcoal);
    margin: 0;
}

.filter-header i {
    color: var(--terracotta);
    margin-right: 0.5rem;
}

.btn-close-filter {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--charcoal);
    cursor: pointer;
}

.filter-group {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-of-type {
    border-bottom: none;
}

.filter-group h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.filter-group .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.8rem;
    transition: var(--transition-smooth);
}

.filter-group .form-select:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(197, 112, 93, 0.1);
}

/* Price Range */
.price-inputs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.price-inputs input {
    flex: 1;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.6rem;
}

.price-inputs span {
    color: #999;
}

.form-range {
    accent-color: var(--terracotta);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

/* Guest Capacity Buttons */
.btn-group-custom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.btn-filter {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.6rem;
    font-weight: 600;
    color: var(--charcoal);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-filter:hover,
.btn-filter.active {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: white;
}

/* Rating Filters */
.rating-filters {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.rating-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.rating-option:hover {
    background: var(--warm-beige);
}

.rating-option input {
    margin-right: 0.8rem;
    accent-color: var(--terracotta);
    width: 18px;
    height: 18px;
}

.rating-option i {
    color: #FFB800;
    margin-right: 0.3rem;
}

/* Property Types */
.property-types {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.property-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.property-option:hover {
    border-color: var(--terracotta);
    background: rgba(197, 112, 93, 0.05);
}

.property-option input {
    margin-right: 0.8rem;
    accent-color: var(--terracotta);
    width: 18px;
    height: 18px;
}

.property-option input:checked + span {
    color: var(--terracotta);
    font-weight: 600;
}

.property-option i {
    margin-right: 0.5rem;
}

/* Amenities */
.amenities-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.amenity-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.amenity-option:hover {
    background: var(--warm-beige);
}

.amenity-option input {
    margin-right: 0.8rem;
    accent-color: var(--terracotta);
    width: 16px;
    height: 16px;
}

.amenity-option i {
    margin-right: 0.5rem;
    color: var(--terracotta);
}

/* Reset Button */
.btn-reset {
    width: 100%;
    background: white;
    border: 2px solid var(--terracotta);
    color: var(--terracotta);
    padding: 0.8rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-reset:hover {
    background: var(--terracotta);
    color: white;
}

.btn-reset i {
    margin-right: 0.5rem;
}

/* ===== LISTING SECTION ===== */
.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.results-info h5 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--charcoal);
    margin: 0;
}

.results-info p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.view-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-mobile-filter {
    background: var(--terracotta);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-view-toggle {
    background: white;
    border: 2px solid #e0e0e0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-view-toggle:hover,
.btn-view-toggle.active {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: white;
}

.sort-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    min-width: 180px;
}

/* ===== STAYS GRID ===== */
.stays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stay-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition-smooth);
    cursor: pointer;
    animation: fadeInCard 0.6s ease;
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stay-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.stay-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.stay-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.stay-card:hover .stay-image img {
    transform: scale(1.1);
}

.btn-wishlist {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-bounce);
    z-index: 2;
}

.btn-wishlist:hover {
    transform: scale(1.2);
    background: white;
}

.btn-wishlist i {
    font-size: 1.2rem;
    color: var(--terracotta);
}

.btn-wishlist.active i {
    animation: heartBounce 0.6s;
}

@keyframes heartBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.2); }
}

.badge-superhost {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--terracotta), var(--forest-green));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stay-content {
    padding: 1.5rem;
}

.stay-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.8rem;
}

.stay-header h4 {
    font-size: 1.3rem;
    margin: 0;
    color: var(--charcoal);
}

.stay-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--warm-beige);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.stay-rating i {
    color: #FFB800;
}

.stay-location {
    color: #666;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stay-location i {
    color: var(--terracotta);
}

.stay-details {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.stay-amenities {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.stay-amenities span {
    width: 35px;
    height: 35px;
    background: var(--warm-beige);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.stay-card:hover .stay-amenities span {
    background: var(--terracotta);
    color: white;
}

.stay-amenities i {
    font-size: 0.95rem;
    color: var(--terracotta);
}

.stay-card:hover .stay-amenities i {
    color: white;
}

.stay-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stay-price {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--terracotta);
    font-family: var(--heading-font);
}

.price-period {
    color: #888;
    font-size: 0.9rem;
}

.btn-book {
    background: var(--terracotta);
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-book::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-book:hover::before {
    width: 200px;
    height: 200px;
}

.btn-book:hover {
    background: var(--forest-green);
    transform: translateY(-2px);
}

/* Wishlist Count */
.wishlist-count {
    background: var(--terracotta);
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.3rem;
}

/* ===== PAGINATION ===== */
.pagination-nav {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.pagination {
    display: flex;
    gap: 0.5rem;
}

.page-item .page-link {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.page-item.active .page-link {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: white;
}

.page-item .page-link:hover {
    background: var(--warm-beige);
    border-color: var(--terracotta);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .filter-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 320px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s;
        overflow-y: auto;
    }
    
    .filter-sidebar.active {
        left: 0;
    }
    
    .listing-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .view-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .stays-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .btn-view-toggle {
        display: none;
    }
}
