/**
 * Block: Hotel Home Heritage — Scoped Stylesheet
 * Scopes layout and typography sizes under .hotel-heritage-block to override Gutenberg defaults.
 * Preserves all theme color variables without alteration.
 *
 * Author: ably Peru
 * Text Domain: ab_theme
 */

/* ─── Base block wrapper ─── */
.hotel-heritage-block {
    font-family: 'Outfit', sans-serif !important;
    padding-top: 8rem !important; /* py-32 */
    padding-bottom: 8rem !important;
}

/* ─── Typography & Sizing Overrides (No Color Alteration) ─── */

/* Subtitle */
.hotel-heritage-block span.text-\[11px\] {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5em !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
}

/* Heading / Title */
.hotel-heritage-block h2 {
    font-size: 2.5rem !important; /* text-4xl */
    font-weight: 700 !important;
    margin-bottom: 2rem !important;
    line-height: 1.25 !important; /* leading-tight */
}

@media (min-width: 768px) {
    .hotel-heritage-block h2 {
        font-size: 3rem !important; /* md:text-5xl */
    }
}

/* Description Paragraph */
.hotel-heritage-block p.text-stone-600 {
    font-size: 1rem !important;
    line-height: 1.625 !important; /* leading-relaxed */
    font-weight: 300 !important; /* font-light */
    margin-bottom: 2rem !important;
}

/* Checklist: Item Title */
.hotel-heritage-block h4 {
    font-size: 0.875rem !important; /* text-sm */
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important; /* tracking-widest */
    margin-bottom: 0.25rem !important;
}

/* Checklist: Item Description */
.hotel-heritage-block p.text-stone-500 {
    font-size: 0.75rem !important; /* text-xs */
    font-weight: 300 !important; /* font-light */
    line-height: 1.5 !important;
}

/* Link Button */
.hotel-heritage-block a.inline-block,
.hotel-heritage-block span.inline-block {
    padding-bottom: 0.5rem !important;
    font-size: 11px !important; /* text-[11px] */
    text-transform: uppercase !important;
    letter-spacing: 0.3em !important; /* tracking-[0.3em] */
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* ─── Layout, Staggered Grid, & Editor Hover UI ─── */
.hotel-heritage-block .grid-cols-2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
}

.hotel-heritage-block .space-y-6 > * + * {
    margin-top: 1.5rem !important;
}

.hotel-heritage-block .pt-12 {
    padding-top: 3rem !important;
}

.hotel-heritage-block .hh-img-wrap {
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    width: 100% !important;
}

.hotel-heritage-block .hh-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.hotel-heritage-block .flex-col-custom {
    display: flex !important;
    flex-direction: column !important;
    gap: 4rem !important;
    align-items: center !important;
}

@media (min-width: 1024px) {
    .hotel-heritage-block .flex-col-custom {
        flex-direction: row !important;
    }
    .hotel-heritage-block .hh-image-col,
    .hotel-heritage-block .hh-text-col {
        width: 50% !important;
        flex-shrink: 0 !important;
    }
}

.hotel-heritage-block .group {
    position: relative;
    padding: 0.5rem;
    border-radius: 0.75rem;
    transition: background-color 0.2s ease;
}

.hotel-heritage-block .group:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.hotel-heritage-block .group .components-button.is-destructive {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ef4444 !important;
    color: #ffffff !important;
    padding: 2px 6px !important;
    font-size: 8px !important;
    height: 16px !important;
    min-width: unset !important;
    border-radius: 4px !important;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.hotel-heritage-block .group:hover .components-button.is-destructive {
    opacity: 1;
}
