/**
 * @file
 * Shared card styles for metaBylt site.
 * Used for Locations, Zones, and Finishes & Materials.
 */

/* 1. Generic Card Container (.group) */
.group {
    position: relative !important;
    background-color: white;
    border-radius: 0.75rem;
    /* rounded-xl (12px) */
    border: 1px solid #e2e8f0;
    /* slate-200 */
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

.group:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    /* shadow-xl */
    transform: translateY(-0.25rem);
    /* -translate-y-1 */
}

/* 2. Card Image Container (.h-40) */
.h-40 {
    position: relative;
    height: 10rem;
    /* h-40 */
    background-color: #e2e8f0;
    /* bg-slate-200 */
    overflow: hidden;
}

.h-40 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease-in-out;
}

.group:hover .h-40 img {
    transform: scale(1.1);
    /* scale-110 */
}

/* 3. Card Content Area Padding (.px-6, .pt-6, .pb-4) */
.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.pb-2 {
    padding-bottom: 0.5rem;
}

.pb-4 {
    padding-bottom: 1rem;
}

.leading-tight {
    line-height: 1.25;
}

/* 4. Text and Link Styles (.zone-title-link, .stretched-link) */
a.zone-title-link {
    color: #0f172a !important;
    /* text-slate-900 */
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    /* text-xl */
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    font-family: 'Inter', sans-serif !important;
    display: block;
}

a.zone-title-link:hover {
    color: #2563eb !important;
    /* text-blue-600 */
    text-decoration: none !important;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    content: "";
}

.text-slate-500 {
    color: #64748b;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.m-0 {
    margin: 0;
}