/* ============================================
   Search Page Styles
   ============================================ */

.search-page {
    background: #f5f3ef !important;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.search-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(158, 139, 99, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(200, 121, 65, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* ============================================
   Search Header
   ============================================ */

.search-header {
    background: #f5f3ef;
    padding: 1.25rem 0 1rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(158, 139, 99, 0.12);
}

.search-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: 200% 100%, cover;
    background-position: 0% 0%, bottom;
    animation: shimmerMove 8s linear infinite;
}

@keyframes shimmerMove {
    0% { background-position: 0% 0%, bottom; }
    100% { background-position: 200% 0%, bottom; }
}

/* Floating Particles */
.search-header::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 40%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.search-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #2A2A2A;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.search-title i {
    color: #9E8B63;
    font-size: 1rem;
}

.search-subtitle {
    font-size: 0.8125rem;
    color: #8a8177;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
}

.btn-back-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(158, 139, 99, 0.2);
    background: white;
    color: #2A2A2A;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    z-index: 10;
}

.btn-back-circle:hover {
    background: #9E8B63;
    color: white;
    border-color: #9E8B63;
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(158, 139, 99, 0.3);
}

.btn-back-circle i {
    font-size: 1.1rem;
}

/* ============================================
   Filter Card
   ============================================ */

.filter-panel {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(158, 139, 99, 0.1);
    position: sticky;
    top: 64px;
    transition: all 0.3s ease;
    padding: 1rem 1.125rem;
}

.filter-panel:hover {
    box-shadow: 
        0 8px 30px rgba(42, 42, 42, 0.08),
        0 0 0 1px rgba(158, 139, 99, 0.15);
    transform: translateY(-2px);
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.filter-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    display: flex;
    align-items: center;
}

.filter-clear-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray-600);
}

.filter-clear-btn:hover {
    background: var(--danger);
    color: var(--white);
}

.filter-body {
    padding: 1rem;
}

/* ============================================
   Filter Form
   ============================================ */

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label i {
    color: #9E8B63;
}

.filter-input-wrapper {
    position: relative;
}

.filter-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(158, 139, 99, 0.15);
    border-radius: 8px;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
    background: var(--white);
}

.filter-input:focus {
    outline: none;
    border-color: #9E8B63;
    box-shadow: 0 0 0 3px rgba(158, 139, 99, 0.1);
}

.filter-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.filter-apply-btn {
    width: 100%;
    padding: 0.625rem 1rem;
    background: #2A2A2A;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.filter-apply-btn:hover {
    transform: translateY(-2px);
    background: #9E8B63;
    box-shadow: 0 6px 20px rgba(158, 139, 99, 0.3);
}

/* ============================================
   Results Header
   ============================================ */

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.875rem 1rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 0.75rem;
    border: 1px solid rgba(158, 139, 99, 0.1);
}

/* Active Filters Chips */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: #2A2A2A;
    color: white;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.filter-chip-remove {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip-remove:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

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

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--gray-100);
    padding: 0.25rem;
    border-radius: 10px;
}

.view-toggle-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--gray-600);
    font-size: 1.125rem;
}

.view-toggle-btn.active {
    background: white;
    color: #9E8B63;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.view-toggle-btn:hover:not(.active) {
    color: #9E8B63;
}

.results-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.results-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #2A2A2A;
    margin: 0;
    letter-spacing: -0.02em;
}

.results-count {
    font-size: 0.75rem;
    color: #8a8177;
}

.sort-btn {
    padding: 0.75rem 1.5rem;
    background: var(--gray-100);
    border: none;
    border-radius: 10px;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-btn:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

/* Quick Filters */
.quick-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.quick-filter-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(to bottom, #ffffff, #fafafa);
    border: 1px solid rgba(158, 139, 99, 0.15);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.quick-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.quick-filter-btn:hover::before {
    left: 100%;
}

.quick-filter-btn:hover {
    border-color: #9E8B63;
    color: #9E8B63;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(158, 139, 99, 0.2);
    background: linear-gradient(to bottom, #ffffff, #f5f3ef);
}

.quick-filter-btn.active {
    background: #2A2A2A;
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 24px rgba(42, 42, 42, 0.2);
}

.quick-filter-btn.active::before {
    display: none;
}

.quick-filter-btn i {
    font-size: 1rem;
}

/* ============================================
   Hotel Grid
   ============================================ */

.hotel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    animation: fadeInUp 0.5s ease;
}

@media (max-width: 1200px) {
    .hotel-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hotel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hotel-grid {
        grid-template-columns: 1fr;
    }
}

.hotel-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeInUp 0.5s ease;
}

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

/* ============================================
   Hotel Card
   ============================================ */

.hotel-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(158, 139, 99, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hotel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(158, 139, 99, 0.03);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.hotel-card:hover::before {
    opacity: 1;
}

.hotel-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 12px 40px rgba(42, 42, 42, 0.1),
        0 0 0 1px rgba(158, 139, 99, 0.15);
    border-color: rgba(158, 139, 99, 0.2);
}

/* List View Card */
.hotel-card.list-view {
    display: flex;
    flex-direction: row;
}

.hotel-card.list-view .hotel-image {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
}

.hotel-card.list-view .hotel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hotel-image {
    position: relative;
    height: 160px;
    overflow: hidden;
    flex-shrink: 0;
}

.hotel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95);
}

.hotel-card:hover .hotel-image img {
    transform: scale(1.15) rotate(1deg);
    filter: brightness(1);
}

.hotel-placeholder {
    width: 100%;
    height: 100%;
    background: #2A2A2A;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotel-placeholder i {
    font-size: 4rem;
    color: #fff;
    opacity: 0.5;
}

.hotel-badge {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--success);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.hotel-badge i {
    font-size: 0.75rem;
}

/* Favorite Button */
.hotel-favorite {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
    color: var(--gray-400);
    font-size: 1rem;
}

.hotel-favorite:hover {
    transform: scale(1.1);
    color: var(--danger);
}

.hotel-favorite.active {
    color: var(--danger);
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.hotel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hotel-card:hover .hotel-overlay {
    opacity: 1;
}

.hotel-view-btn {
    padding: 0.5rem 1rem;
    background: #fff;
    color: #2A2A2A;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hotel-view-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* ============================================
   Hotel Content
   ============================================ */

.hotel-card .hotel-content {
    padding: 0.625rem 0.75rem;
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    flex: 1;
    gap: 0.3rem;
}

.hotel-card .hotel-name {
    font-size: 0.8125rem !important;
    font-weight: 600;
    color: #2A2A2A;
    margin: 0 !important;
    padding: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    letter-spacing: -0.01em;
    transition: color 0.2s;
}

.hotel-card:hover .hotel-name {
    color: #9E8B63;
}

.hotel-card .hotel-location {
    font-size: 0.6875rem !important;
    color: #8a8177;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1;
}

.hotel-card .hotel-location i {
    color: #9E8B63;
    font-size: 0.625rem;
}

/* Rating + Price Row */
.hotel-card .hotel-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 !important;
}

.hotel-card .meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c5bfb6;
    flex-shrink: 0;
}

.hotel-card .hotel-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.hotel-card .hotel-rating i {
    color: #fbbf24;
    font-size: 0.625rem;
}

.hotel-card .hotel-rating-text {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #2A2A2A;
}

.hotel-card .hotel-price-inline {
    display: flex;
    align-items: baseline;
    gap: 0.125rem;
}

.hotel-card .hotel-price-inline .price-amount {
    font-size: 0.75rem;
    font-weight: 600;
    color: #2A2A2A;
    line-height: 1;
}

.hotel-card .hotel-price-inline .price-period {
    font-size: 0.5625rem;
    color: #a09a93;
}

.hotel-card .hotel-description {
    font-size: 0.6875rem !important;
    color: #9a958e;
    line-height: 1.4;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Amenities Pills */
.hotel-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.amenity-pill {
    padding: 0.1875rem 0.4375rem;
    background: rgba(158, 139, 99, 0.06);
    border-radius: 4px;
    font-size: 0.5625rem;
    font-weight: 500;
    color: #8a8177;
    display: flex;
    align-items: center;
    gap: 0.1875rem;
    border: none;
    transition: all 0.2s;
}

.amenity-pill:hover {
    background: rgba(158, 139, 99, 0.12);
}

.amenity-pill i {
    font-size: 0.5625rem;
    color: #9E8B63;
}

.hotel-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.hotel-capacity {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.625rem;
    color: #8a8177;
}

.hotel-capacity i {
    color: #9E8B63;
    font-size: 0.625rem;
}

/* ============================================
   Hotel Footer
   ============================================ */

.hotel-card .hotel-footer {
    margin-top: auto;
    padding-top: 0.25rem;
}

.hotel-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    background: #2A2A2A;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.hotel-book-btn:hover {
    background: #9E8B63;
}

/* ============================================
   Loading State
   ============================================ */

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.spinner-modern {
    width: 60px;
    height: 60px;
    border: 4px solid var(--gray-200);
    border-top-color: #9E8B63;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    color: var(--gray-600);
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

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

@media (max-width: 992px) {
    .filter-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .search-header {
        padding: 1rem 0 0.75rem;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .hotel-card.list-view {
        flex-direction: column;
    }
    
    .hotel-card.list-view .hotel-image {
        width: 100%;
        height: 180px;
    }
    
    .quick-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }
}

/* Skeleton Loading */
.skeleton-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.skeleton-image {
    height: 180px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 1.5rem;
}

.skeleton-line {
    height: 1rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.skeleton-line.short {
    width: 60%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Save Search Button */
.save-search-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #9E8B63;
    border-radius: 10px;
    color: #9E8B63;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.save-search-btn:hover {
    background: #9E8B63;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(158, 139, 99, 0.3);
}

.save-search-btn i {
    font-size: 1.125rem;
}
