﻿/* ============================================
   Search Page Styles â€” Safari Vents Luxury Light Theme
   Inspiration: Warm Sand #f4efe6 Â· Pure White #ffffff
   Obsidian Charcoal #18181b Â· Warm Copper #b86d26
   ============================================ */

.search-page {
    background: #f4efe6 !important;
    min-height: calc(100vh - 72px);
    position: relative;
    padding-bottom: 3.5rem;
}

/* â”€â”€ Search Header â”€â”€ */
.search-header {
    background: #f4efe6;
    padding: 1.75rem 0 1.25rem;
    border-bottom: 1px solid #e8e2d8;
    margin-bottom: 1.75rem;
}

.search-header-inner {
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(1.25rem, 2.5vw, 2.5rem);
}

.search-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    border-radius: 50px;
    background: #ffffff;
    border: 1px solid #e8e2d8;
    font-size: 0.78rem;
    font-weight: 700;
    color: #b86d26;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    margin-bottom: 0.65rem;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 8px rgba(22, 163, 74, 0.6);
    display: inline-block;
}

.search-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-back-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #e8e2d8;
    background: #ffffff;
    color: #18181b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.btn-back-circle:hover {
    background: #b86d26;
    color: #ffffff;
    border-color: #b86d26;
    transform: translateX(-2px);
    box-shadow: 0 4px 12px rgba(184, 109, 38, 0.3);
}

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

.search-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #18181b;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 0;
}

.search-subtitle {
    font-size: 0.92rem;
    color: #6b7280;
    margin: 0.25rem 0 0;
    line-height: 1.5;
}

/* â”€â”€ Main Container â”€â”€ */
.search-container {
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(1.25rem, 2.5vw, 2.5rem);
}

/* â”€â”€ Filter Sidebar Panel â”€â”€ */
.filter-panel {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8e2d8;
    position: sticky;
    top: 90px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.filter-panel-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #18181b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-panel-heading i {
    color: #b86d26;
    font-size: 1.05rem;
}

.btn-system-ghost {
    background: transparent;
    border: none;
    color: #b86d26;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
}

.btn-system-ghost:hover {
    background: rgba(184, 109, 38, 0.08);
    color: #a25c1a;
}

.filter-section {
    margin-bottom: 1.35rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid #f0ebe1;
}

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

.filter-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-section-title i {
    color: #b86d26;
    font-size: 0.85rem;
}

.form-control-system {
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: 1px solid #e8e2d8;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #18181b;
    background: #ffffff;
    transition: all 0.2s;
    outline: none;
    font-family: inherit;
}

.form-control-system:focus {
    border-color: #b86d26;
    box-shadow: 0 0 0 3px rgba(184, 109, 38, 0.15);
}

.form-control-system::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

/* Range Inputs */
.filter-range input[type="range"] {
    width: 100%;
    accent-color: #b86d26;
    cursor: pointer;
    margin-bottom: 8px;
}

.filter-range-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-range-inputs .form-control-system {
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
}

.filter-range-separator {
    color: #9ca3af;
    font-weight: 700;
}

.filter-range-display {
    color: #b86d26;
    font-weight: 700;
    font-size: 0.82rem;
    margin-top: 6px;
    display: block;
}

/* Amenities Checkboxes */
.filter-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
    margin: 0;
}

.filter-checkbox-item:hover {
    background: rgba(184, 109, 38, 0.06);
}

.filter-checkbox-item input[type="checkbox"] {
    accent-color: #b86d26;
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin-right: 8px;
    border-radius: 4px;
}

.filter-checkbox-label {
    color: #374151;
    font-size: 0.86rem;
    font-weight: 500;
    flex: 1;
}

.filter-checkbox-count {
    background: #f4efe6;
    color: #78716c;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

/* â”€â”€ Results Header â”€â”€ */
.results-header {
    background: #ffffff;
    border: 1px solid #e8e2d8;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    padding: 1.15rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #18181b;
    margin: 0;
    letter-spacing: -0.015em;
    display: inline-block;
}

.results-count {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 8px;
}

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

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #f4efe6;
    border: 1px solid #e8e2d8;
    color: #18181b;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    animation: slideIn 0.25s ease;
}

.filter-chip-remove {
    background: none;
    border: none;
    color: #b86d26;
    font-size: 1.15rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin-left: 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.filter-chip-remove:hover {
    color: #dc2626;
}

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

/* View Toggle (Grid / List) */
.view-toggle {
    display: flex;
    gap: 4px;
    background: #f4efe6;
    padding: 3px;
    border-radius: 10px;
    border: 1px solid #e8e2d8;
}

.view-toggle-btn {
    border: none;
    background: transparent;
    padding: 6px 12px;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle-btn.active {
    background: #ffffff;
    color: #b86d26;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

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

/* â”€â”€ Hotel Grid & List Layouts â”€â”€ */
.hotel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (min-width: 1550px) {
    .hotel-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

@media (max-width: 640px) {
    .hotel-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

.hotel-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* â”€â”€ Hotel Card â”€â”€ */
.hotel-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e8e2d8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.hotel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(184, 109, 38, 0.14);
    border-color: #b86d26;
}

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

.hotel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hotel-card:hover .hotel-image img {
    transform: scale(1.06);
}

.hotel-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fcfbfa 0%, #f4efe6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(184, 109, 38, 0.35);
    font-size: 3.5rem;
}

/* Badges on Image */
.hotel-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    border: 1px solid #e8e2d8;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #b86d26;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hotel-badge i {
    color: #b86d26;
}

.hotel-category-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(24, 24, 27, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.hotel-favorite {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    border: 1px solid #e8e2d8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 3;
    transition: all 0.2s;
}

.hotel-favorite:hover {
    transform: scale(1.1);
    color: #e11d48;
}

.hotel-favorite.active {
    color: #e11d48;
    background: #fff0f2;
    border-color: #fecdd3;
}

.hotel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(24, 24, 27, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

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

.hotel-view-btn {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.92rem;
    background: #b86d26;
    padding: 0.55rem 1.35rem;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(184, 109, 38, 0.4);
    text-decoration: none !important;
    transition: all 0.2s;
}

.hotel-view-btn:hover {
    background: #a25c1a;
    transform: translateY(-2px);
}

/* Hotel Content Area */
.hotel-card .hotel-content {
    padding: 1.35rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hotel-card .hotel-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #18181b;
    margin: 0;
    line-height: 1.35;
    transition: color 0.2s;
}

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

.hotel-card .hotel-location {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hotel-card .hotel-location i {
    color: #b86d26;
    font-size: 0.88rem;
}

.hotel-card .hotel-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.hotel-card .hotel-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hotel-card .hotel-rating i {
    color: #f59e0b;
    font-size: 0.88rem;
}

.hotel-card .hotel-rating-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: #18181b;
}

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

.hotel-card .hotel-capacity-text {
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hotel-card .hotel-price-inline {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-left: auto;
}

.hotel-card .hotel-price-inline .price-amount {
    font-size: 1.1rem;
    font-weight: 800;
    color: #b86d26;
}

.hotel-card .hotel-price-inline .price-period {
    font-size: 0.74rem;
    color: #6b7280;
}

.hotel-card .hotel-description {
    font-size: 0.84rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 6px 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.hotel-card .hotel-footer {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid #f0ebe1;
    display: flex;
    justify-content: flex-end;
}

.hotel-book-btn {
    color: #b86d26 !important;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none !important;
    transition: all 0.2s;
}

.hotel-card:hover .hotel-book-btn {
    color: #a25c1a !important;
    transform: translateX(2px);
}

/* â”€â”€ List View Specifics â”€â”€ */
.hotel-card.list-view {
    display: flex;
    flex-direction: row;
}

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

@media (max-width: 768px) {
    .hotel-card.list-view {
        flex-direction: column;
    }
    .hotel-card.list-view .hotel-image {
        width: 100%;
        height: 200px;
    }
}

/* â”€â”€ Empty State â”€â”€ */
.empty-state {
    background: #ffffff;
    border: 1px solid #e8e2d8;
    border-radius: 18px;
    padding: 4.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.empty-state-icon {
    font-size: 3.5rem;
    color: #b86d26;
    margin-bottom: 1.25rem;
    display: inline-block;
}

.empty-state-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #18181b;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1.75rem;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

/* â”€â”€ Skeleton Loading â”€â”€ */
.skeleton-card {
    background: #ffffff;
    border: 1px solid #e8e2d8;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

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

.skeleton-content {
    padding: 1.5rem;
}

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

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

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