/* ========================================================= */
/* TOP RATED MUSEUMS SECTION - CUSTOM STYLES */
/* Uses prefix 'top-rated-*' for unique styling */
/* ========================================================= */

.top-rated-section {
    /* Optional: If you need to simulate the container/mx-auto/px-4 from React component */
    max-width: 72rem; /* Example max-width for container */
    margin-left: auto;
    margin-right: auto;
}

/* --- 1. Section Header --- */

.top-rated-header-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* gap-2 */
    margin-bottom: 2rem; /* mb-8 */
}

.top-rated-header-icon {
    /* Lucide Icon: TrendingUp */
    width: 1.5rem;
    height: 1.5rem;
    stroke: #b45309; /* text-amber-700 */
    stroke-width: 2;
}

.top-rated-section-title {
    font-size: 1.6rem; /* text-3xl or similar */
    font-weight: 600;
    color: #292524; /* text-stone-900 */
    margin: 0;
    line-height: 1.2;
}


/* --- 2. Grid Container & Responsiveness --- */

.top-rated-grid-container {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 column */
    gap: 1.5rem; /* gap-6 */
}

/* Tablet Layout (md: 768px+) */
@media (min-width: 768px) {
    .top-rated-grid-container {
        grid-template-columns: repeat(3, 1fr); /* md:grid-cols-3 */
    }
}


/* --- 3. Museum Card (Link) --- */

.top-rated-card {
    display: block;
    background-color: #fff;
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1) !important; /* shadow-sm */
    transition: box-shadow 0.3s;
    padding: 1.5rem; /* p-6 */
    position: relative;
    overflow: hidden;
    text-decoration: none; /* Remove underline */
}

.top-rated-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); /* hover:shadow-md */
}


/* --- 4. Rank Badge --- */

.top-rated-rank-badge {
    position: absolute;
    top: 1rem; /* top-4 */
    left: 1rem; /* left-4 */
    width: 3rem; /* w-12 */
    height: 3rem; /* h-12 */
    background-color: #fffbeb; /* bg-amber-100 */
    border-radius: 9999px; /* rounded-full */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.top-rated-rank-number {
    font-size: 1rem;
    font-weight: 600;
    color: #b45309; /* text-amber-700 */
}


/* --- 5. Content Block --- */

.top-rated-content-wrap {
    margin-left: 4rem; /* ml-16 (to offset the badge) */
}

.top-rated-title {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600;
    color: #292524; /* text-stone-900 */
    margin-top: 0;
    margin-bottom: 0.5rem; /* mb-2 */
    transition: color 0.2s;
    line-height: 1.3;
}

.top-rated-card:hover .top-rated-title {
    color: #b45309; /* group-hover:text-amber-700 */
}

/* Location */
.top-rated-location {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* gap-2 */
    font-size: 0.875rem; /* text-sm */
    color: #78716c; /* text-stone-600 */
    margin-bottom: 0.75rem; /* mb-3 */
}

/* Lucide MapPin Icon */
.top-rated-location .top-rated-icon-small,
.top-rated-location .top-rated-icon-small svg {
    width: 1rem; /* w-4 */
    height: 1rem; /* h-4 */
    stroke: #78716c;
    stroke-width: 2.5; /* Slightly thicker stroke for small icons */
}

/* Rating */
.top-rated-rating-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.top-rated-rating-stars {
    display: flex;
    align-items: center;
    gap: 0.25rem; /* gap-1 */
}

/* Lucide Star Icon */
.top-rated-star-icon,
.top-rated-star-icon svg {
    width: 1.25rem; /* w-5 */
    height: 1.25rem; /* h-5 */
    stroke: #fbbf24; /* text-amber-400 */
    fill: #fbbf24; /* fill-amber-400 */
    stroke-width: 0;
}

.top-rated-rating-value {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600;
    color: #292524; /* text-stone-900 */
}

.top-rated-review-count {
    font-size: 0.875rem; /* text-sm */
    color: #a8a29e; /* text-stone-500 */
}

/* Description */
.top-rated-description {
    font-size: 0.875rem; /* text-sm */
    color: #78716c; /* text-stone-600 */
    margin: 0;
    line-height: 1.4;
    /* line-clamp-2 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 768px) {
    .top-rated-section-title {
        font-size: 1.3rem;
    }
    .top-rated-header-wrap {
        justify-content: center;
    }
}