/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

.font-geist-mono {
    font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
}

/* Layout & Grid */
.hotel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

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

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

/* Category Headers */
.category-header {
    padding: 1.5rem;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.category-header.ultra-luxury {
    background: linear-gradient(to right, #212121, #424242);
    color: #fff;
}

.category-header.ultra-luxury::after {
    background: #d4af37;
}

.category-header.luxury {
    background: linear-gradient(to right, #1a237e, #283593);
    color: #fff;
}

.category-header.luxury::after {
    background: #7986cb;
}

.category-header.upscale {
    background: linear-gradient(to right, #4a148c, #6a1b9a);
    color: #fff;
}

.category-header.upscale::after {
    background: #ba68c8;
}

.category-header.upper-midscale {
    background: linear-gradient(to right, #1b5e20, #2e7d32);
    color: #fff;
}

.category-header.upper-midscale::after {
    background: #81c784;
}

.category-header.midscale {
    background: linear-gradient(to right, #0d47a1, #1976d2);
    color: #fff;
}

.category-header.midscale::after {
    background: #64b5f6;
}

.category-header.limited-service {
    background: linear-gradient(to right, #006064, #0097a7);
    color: #fff;
}

.category-header.limited-service::after {
    background: #80deea;
}

.category-header.economy {
    background: linear-gradient(to right, #e65100, #f57c00);
    color: #fff;
}

.category-header.economy::after {
    background: #ffb74d;
}

.category-header.extended-stay {
    background: linear-gradient(to right, #33691e, #558b2f);
    color: #fff;
}

.category-header.extended-stay::after {
    background: #aed581;
}

/* Hotel Cards */
.hotel-card {
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #fff;
    transition: all 0.2s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hotel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: rgba(0, 0, 0, 0.01);
}

.card-content {
    padding: 1.25rem;
}

/* Hotel Brand and Groups */
.brand-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.group-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    letter-spacing: 0.025em;
}

.group-badge.marriott {
    color: #b91c1c;
    background-color: #fee2e2;
}

.group-badge.hyatt {
    color: #1e40af;
    background-color: #dbeafe;
}

.group-badge.ihg {
    color: #065f46;
    background-color: #d1fae5;
}

.group-badge.accor {
    color: #92400e;
    background-color: #fef3c7;
}

.group-badge.hilton {
    color: #1f2937;
    background-color: #f3f4f6;
}

/* Famous Properties Section */
.famous-properties {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 0.375rem;
    padding: 1rem;
}

/* Filter Styles */
.filter-item {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.filter-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1rem;
    height: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
    display: grid;
    place-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-item input[type="checkbox"]:checked {
    background-color: #000;
    border-color: #000;
}

.filter-item input[type="checkbox"]:checked::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    transform: scale(1);
    box-shadow: inset 1em 1em white;
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.filter-name {
    font-size: 0.875rem;
    color: #374151;
}

/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.category-section {
    animation: fadeIn 0.5s ease forwards;
}

/* Accessibility and Focus */
button:focus, input:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .hotel-card:hover {
        transform: none;
    }
    
    .category-section {
        animation: none;
    }
}
