/*
Theme Name: Africa Soul Lodge Child
Theme URI: https://www.africasoullodge.com/
Description: Child theme for Africa Soul Lodge – preserves customisations like the LATEST BLOG block and logo.
Author: Your Name
Author URI: https://yourwebsite.com/
Template: africasoullodge
Version: 1.0.0
*/

/* Parent stylesheet is enqueued by the parent theme (`africasoullodge-style`);
   the child depends on that handle, so no @import is needed here. */


/* Enhanced Image Box Dimensions for Cottages and Services */
.card-rotal .relative.h-56.lg\:h-44,
.card-rotal .relative.overflow-hidden:has(> img[alt*="Cottage"]) {
    height: 18rem !important; /* increased from 11rem (h-44) / 14rem (h-56) */
}
@media (min-width: 1024px) {
    .card-rotal .relative.h-56.lg\:h-44,
    .card-rotal .relative.overflow-hidden:has(> img[alt*="Cottage"]) {
        height: 15rem !important; /* comfortable prominent size on desktop */
    }
}

/* Service Image Box - Increased Height */
.card-rotal .h-44.lg\:h-36 {
    height: 15rem !important; /* increased from 9rem (h-36) / 11rem (h-44) */
}
@media (min-width: 1024px) {
    .card-rotal .h-44.lg\:h-36 {
        height: 13rem !important;
    }
}

/* -------------------------------------------------------------------------
 * Media frames
 *
 * Elementor ships a global `.elementor img { height: auto }` rule. It outranks
 * Tailwind's `.h-full` (0,1,1 vs 0,1,0), so every image that is meant to fill
 * a fixed-height frame rendered at its full natural height and was clipped by
 * the frame (banners, service cards, cottage cards, gallery tiles).
 *
 * The selectors below are deliberately more specific than Elementor's rule so
 * the frame keeps its size and the image is cropped by object-fit instead.
 * ---------------------------------------------------------------------- */
.asl-page-banner .asl-banner-bg,
.elementor .asl-banner-bg,
.elementor img.h-full.object-cover,
.elementor img.object-cover.h-full {
    height: 100%;
}

/* Cottage cards render their image without utility classes, so Elementor's
   rule also wins over `rooms.css`. Match the frame instead of the image. */
.asl-room-card .asl-room-card__media img,
.asl-room-card__media img {
    height: 100%;
    object-fit: cover;
}
