/**
 * Apartments Page - Liquid Glass Style
 * Aurora Hotel Plaza
 * Updated: 2024
 */

/* Hero Section Override for Fixed Header */
.page-hero-glass {
    padding-top: 180px !important;
    /* Adjust for fixed transparent header */
}

/* ===== Layout Grid ===== */
.apt-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

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

/* ===== Apartment Card - Liquid Glass ===== */
.apt-card-glass {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(30, 41, 59, 0.6) 0%,
            rgba(30, 41, 59, 0.8) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.apt-card-glass:hover {
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(135deg,
            rgba(30, 41, 59, 0.5) 0%,
            rgba(30, 41, 59, 0.7) 100%);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 15px rgba(212, 175, 55, 0.1);
}

/* Image Section */
.apt-img-container {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    width: 100%;
}

.apt-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.apt-card-glass:hover .apt-img-container img {
    transform: scale(1.1);
}

/* Badges */
.type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 0.35rem 0.85rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    z-index: 10;
}

.price-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    color: white;
    z-index: 10;
}

.price-badge .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #d4af37;
}

.price-badge .unit {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 0.25rem;
}

/* Content Section */
.apt-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.apt-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    line-height: 1.2;
}

.apt-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Specs */
.specs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.spec-item .material-symbols-outlined {
    font-size: 1rem;
    color: #d4af37;
}

/* Amenities */
.amenities-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.amenity-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: rgba(255, 255, 255, 0.7);
}

/* Actions */
.apt-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-book {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: white;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    text-align: center;
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #e5bd43, #c5a025);
}

.btn-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-detail:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .apt-actions {
        flex-direction: column;
    }
}