/* ==========================================================================
   UMU HOSTELS DIRECTORY - COMPACT PUBLIC STYLESHEET WITH CAROUSEL DOTS
   ========================================================================== */

.umu-front-wrap {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    /* Added consistent margins matching layout requirements */
    padding: 40px 48px; 
    box-sizing: border-box;
}

.umu-front-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.umu-front-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .12em;
    white-space: nowrap;
}

.umu-front-rule {
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.umu-section-title-front {
    margin: 0 0 24px;
    font-size: 1.8rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -.02em;
}

.umu-no-hostels {
    padding: 48px 0;
    text-align: center;
    color: #6b7280;
}

.umu-public-grid {
    display: grid;
    /* FIX: Changed auto-fit to auto-fill to prevent single items from stretching out contextually */
    grid-template-columns: repeat(auto-fill, minmax(280px, 340px));
    gap: 24px;
    justify-content: start; /* Aligns cards nicely to the left side of the page container */
}

.umu-hostel-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.umu-hostel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* Active Highlight Card Variant (Matches the red active outline in image) */
.umu-hostel-card.is-active,
.umu-hostel-card:focus-within {
    border-color: #b91c1c !important;
    outline: none;
}

/* Image Container / Carousel Wrapper */
.umu-card-media {
    position: relative;
    aspect-ratio: 16/9;
    background: #f3f4f6;
    overflow: hidden;
}

.umu-card-media img,
.umu-card-initials {
    width: 100%;
    height: 100%;
    display: block;
}

.umu-card-media img {
    object-fit: cover;
    object-position: center;
}

.umu-card-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #b91c1c;
    background: linear-gradient(135deg, #fff8e1, #ffcd00);
}

/* Navigation buttons remain strictly hidden */
.umu-carousel-prev,
.umu-carousel-next {
    display: none !important;
}

/* Carousel Dots Container - Shifted below image frame for a cleaner card layout */
.umu-carousel-dots {
    display: flex !important;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    margin-bottom: 4px;
    z-index: 10;
}

/* Individual Carousel Dot styling */
.umu-carousel-dots * {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.2); /* Dark dots to contrast beautifully against light theme backgrounds */
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    border: none;
    padding: 0;
    margin: 0;
}

/* Active Dot State (Matches standard slide indicators) */
.umu-carousel-dots .active,
.umu-carousel-dots .is-active,
.umu-carousel-dots [aria-selected="true"] {
    background: #b91c1c !important; /* Matches UMU brand red theme color */
    transform: scale(1.15);
}

.umu-location-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #b91c1c;
    color: #fff;
    z-index: 10;
}

.umu-badge-off {
    background: #f3f4f6;
    color: #374151;
}

.umu-card-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    flex-grow: 1;
}

.umu-hostel-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.25;
    color: #111827;
    font-weight: 700;
}

.umu-pricing-list {
    border-top: 1px solid #e5e7eb;
}

.umu-pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.umu-room-label {
    color: #4b5563;
    font-size: 0.85rem;
}

.umu-room-price {
    color: #b91c1c;
    font-size: 0.9rem;
    font-weight: 700;
}

.umu-no-pricing {
    padding: 12px 0;
    color: #9ca3af;
    text-align: center;
    font-size: 0.85rem;
}

.umu-custodian-card {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.umu-custodian-label {
    display: block;
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.umu-c-meta {
    margin: 4px 0;
    color: #374151;
    font-size: 0.85rem;
}

.umu-c-meta strong {
    color: #111827;
}

.umu-c-meta a {
    color: #b91c1c;
    text-decoration: none;
}

.umu-c-meta a:hover {
    text-decoration: underline;
}

.umu-c-meta-muted {
    color: #9ca3af;
}

/* Responsive design optimizations */
@media (max-width: 1024px) {
    .umu-front-wrap { padding: 32px 24px; }
    .umu-public-grid { 
        grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
        gap: 16px; 
    }
}

@media (max-width: 768px) {
    .umu-front-wrap { padding: 24px 16px; }
    .umu-public-grid { 
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .umu-section-title-front { font-size: 1.5rem; }
    .umu-public-grid { grid-template-columns: 1fr; }
}