/**
 * Parit Falls site-wide design layer v1.5.0.
 *
 * Safety rules:
 * - All selectors are scoped beneath .paritfalls-site-polish.
 * - Header, footer, navigation, off-canvas and Elementor template locations
 *   are not resized or structurally changed.
 * - No generic 100vw/full-width forcing is used.
 */

.paritfalls-site-polish {
    --pf-text: #20384f;
    --pf-muted: #65717d;
    --pf-accent: #9a7a48;
    --pf-accent-dark: #765b34;
    --pf-green: #2f695a;
    --pf-surface: #ffffff;
    --pf-soft: #f8f6f2;
    --pf-soft-green: #f1f7f4;
    --pf-border: #e4dfd7;
    --pf-radius-sm: 8px;
    --pf-radius: 14px;
    --pf-radius-lg: 22px;
    --pf-shadow-sm: 0 8px 24px rgba(32, 56, 79, 0.07);
    --pf-shadow: 0 18px 48px rgba(32, 56, 79, 0.10);
}

/* The content area only. Header and footer are deliberately excluded. */
.paritfalls-site-polish #content,
.paritfalls-site-polish .site-content,
.paritfalls-site-polish main.site-main {
    color: var(--pf-text);
}

.paritfalls-site-polish #content img,
.paritfalls-site-polish .site-content img,
.paritfalls-site-polish main.site-main img {
    max-width: 100%;
}

.paritfalls-site-polish #content :where(h1, h2, h3, h4),
.paritfalls-site-polish .site-content :where(h1, h2, h3, h4),
.paritfalls-site-polish main.site-main :where(h1, h2, h3, h4) {
    color: var(--pf-text);
    text-wrap: balance;
}

.paritfalls-site-polish #content :where(p, li),
.paritfalls-site-polish .site-content :where(p, li),
.paritfalls-site-polish main.site-main :where(p, li) {
    line-height: 1.72;
}

.paritfalls-site-polish #content a:not(.elementor-button):not(.button):not([class*="btn"]),
.paritfalls-site-polish .site-content a:not(.elementor-button):not(.button):not([class*="btn"]),
.paritfalls-site-polish main.site-main a:not(.elementor-button):not(.button):not([class*="btn"]) {
    text-underline-offset: 3px;
}

/* Common page title and breadcrumb areas, without changing their width. */
.paritfalls-site-polish.pf-page-inner #content .entry-header,
.paritfalls-site-polish.pf-page-inner .site-content .entry-header,
.paritfalls-site-polish.pf-page-inner main.site-main .entry-header {
    margin-bottom: clamp(24px, 4vw, 48px);
}

.paritfalls-site-polish.pf-page-inner #content .entry-title,
.paritfalls-site-polish.pf-page-inner .site-content .entry-title,
.paritfalls-site-polish.pf-page-inner main.site-main .entry-title {
    margin-bottom: 12px;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.paritfalls-site-polish #content :where(.breadcrumb, .breadcrumbs, .opal-breadcrumb),
.paritfalls-site-polish .site-content :where(.breadcrumb, .breadcrumbs, .opal-breadcrumb) {
    color: var(--pf-muted);
    font-size: 0.9rem;
}

/* Consistent buttons inside content only. */
.paritfalls-site-polish #content :where(.elementor-button, a.button, button.button, input[type="submit"]),
.paritfalls-site-polish .site-content :where(.elementor-button, a.button, button.button, input[type="submit"]),
.paritfalls-site-polish main.site-main :where(.elementor-button, a.button, button.button, input[type="submit"]) {
    min-height: 46px;
    border-radius: var(--pf-radius-sm);
    font-weight: 700;
    line-height: 1.2;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

@media (hover: hover) {
    .paritfalls-site-polish #content :where(.elementor-button, a.button, button.button, input[type="submit"]):hover,
    .paritfalls-site-polish .site-content :where(.elementor-button, a.button, button.button, input[type="submit"]):hover,
    .paritfalls-site-polish main.site-main :where(.elementor-button, a.button, button.button, input[type="submit"]):hover {
        transform: translateY(-1px);
        box-shadow: 0 9px 20px rgba(32, 56, 79, 0.13);
    }
}

/* General inner-page sections and cards. */
.paritfalls-site-polish.pf-page-inner #content :where(.elementor-widget-icon-box, .elementor-widget-image-box, .elementor-widget-testimonial, .elementor-widget-counter) > .elementor-widget-container,
.paritfalls-site-polish.pf-page-inner .site-content :where(.elementor-widget-icon-box, .elementor-widget-image-box, .elementor-widget-testimonial, .elementor-widget-counter) > .elementor-widget-container {
    height: 100%;
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius);
    background: var(--pf-surface);
    box-shadow: var(--pf-shadow-sm);
}

.paritfalls-site-polish.pf-page-inner #content :where(.elementor-widget-icon-box, .elementor-widget-image-box, .elementor-widget-testimonial, .elementor-widget-counter) > .elementor-widget-container,
.paritfalls-site-polish.pf-page-inner .site-content :where(.elementor-widget-icon-box, .elementor-widget-image-box, .elementor-widget-testimonial, .elementor-widget-counter) > .elementor-widget-container {
    padding: clamp(18px, 3vw, 28px);
}

.paritfalls-site-polish.pf-page-inner #content .elementor-widget-image-box img,
.paritfalls-site-polish.pf-page-inner .site-content .elementor-widget-image-box img {
    border-radius: calc(var(--pf-radius) - 4px);
}

/* Homepage: very conservative polish only; slider geometry is untouched. */
.paritfalls-site-polish.pf-page-home #content .elementor-widget-testimonial > .elementor-widget-container,
.paritfalls-site-polish.pf-page-home .site-content .elementor-widget-testimonial > .elementor-widget-container {
    height: 100%;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius);
    background: rgba(255,255,255,0.98);
    box-shadow: var(--pf-shadow-sm);
}

.paritfalls-site-polish.pf-page-home #content .elementor-widget-image-box img,
.paritfalls-site-polish.pf-page-home .site-content .elementor-widget-image-box img {
    border-radius: var(--pf-radius);
}

/* Accommodation listing: support both MotoPress and theme card wrappers. */
.paritfalls-site-polish.pf-page-accommodations #content :where(.mphb-room-type, .room-inner, .room-item, article.type-mphb_room_type),
.paritfalls-site-polish.pf-page-accommodations .site-content :where(.mphb-room-type, .room-inner, .room-item, article.type-mphb_room_type) {
    overflow: hidden;
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius);
    background: var(--pf-surface);
    box-shadow: var(--pf-shadow-sm);
}

.paritfalls-site-polish.pf-page-accommodations #content :where(.mphb-room-type, .room-inner, .room-item) img,
.paritfalls-site-polish.pf-page-accommodations .site-content :where(.mphb-room-type, .room-inner, .room-item) img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Facilities / amenities. */
.paritfalls-site-polish.pf-page-facilities #content :where(.elementor-widget-icon-box, .elementor-widget-image-box) > .elementor-widget-container,
.paritfalls-site-polish.pf-page-facilities .site-content :where(.elementor-widget-icon-box, .elementor-widget-image-box) > .elementor-widget-container {
    border-color: rgba(47, 105, 90, 0.18);
    background: linear-gradient(180deg, #fff, var(--pf-soft-green));
}

.paritfalls-site-polish.pf-page-facilities #content .elementor-icon,
.paritfalls-site-polish.pf-page-facilities .site-content .elementor-icon {
    color: var(--pf-green);
}

/* Gallery and image grids. */
.paritfalls-site-polish.pf-page-gallery #content :where(.gallery, .elementor-image-gallery, .e-gallery-container),
.paritfalls-site-polish.pf-page-gallery .site-content :where(.gallery, .elementor-image-gallery, .e-gallery-container) {
    gap: clamp(10px, 2vw, 18px);
}

.paritfalls-site-polish.pf-page-gallery #content :where(.gallery-item, .e-gallery-item, .elementor-gallery-item),
.paritfalls-site-polish.pf-page-gallery .site-content :where(.gallery-item, .e-gallery-item, .elementor-gallery-item) {
    overflow: hidden;
    border-radius: var(--pf-radius);
    background: var(--pf-soft);
    box-shadow: var(--pf-shadow-sm);
}

.paritfalls-site-polish.pf-page-gallery #content :where(.gallery-item, .e-gallery-item, .elementor-gallery-item) img,
.paritfalls-site-polish.pf-page-gallery .site-content :where(.gallery-item, .e-gallery-item, .elementor-gallery-item) img {
    transition: transform 280ms ease;
}

@media (hover: hover) {
    .paritfalls-site-polish.pf-page-gallery #content :where(.gallery-item, .e-gallery-item, .elementor-gallery-item):hover img,
    .paritfalls-site-polish.pf-page-gallery .site-content :where(.gallery-item, .e-gallery-item, .elementor-gallery-item):hover img {
        transform: scale(1.035);
    }
}

/* FAQ and accordion. */
.paritfalls-site-polish.pf-page-faq #content :where(.elementor-accordion-item, .elementor-toggle-item),
.paritfalls-site-polish.pf-page-faq .site-content :where(.elementor-accordion-item, .elementor-toggle-item) {
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius-sm);
    background: var(--pf-surface);
    box-shadow: 0 5px 16px rgba(32, 56, 79, 0.05);
}

.paritfalls-site-polish.pf-page-faq #content :where(.elementor-tab-title, .elementor-toggle-title),
.paritfalls-site-polish.pf-page-faq .site-content :where(.elementor-tab-title, .elementor-toggle-title) {
    padding: 18px 20px;
    color: var(--pf-text);
    font-weight: 700;
}

.paritfalls-site-polish.pf-page-faq #content :where(.elementor-tab-content, .elementor-toggle-content),
.paritfalls-site-polish.pf-page-faq .site-content :where(.elementor-tab-content, .elementor-toggle-content) {
    padding: 0 20px 20px;
    border-top: 0;
    color: var(--pf-muted);
}

/* Contact and generic public forms. Booking forms remain handled separately. */
.paritfalls-site-polish.pf-page-contact #content :where(.wpcf7, .wpforms-container, .elementor-form),
.paritfalls-site-polish.pf-page-contact .site-content :where(.wpcf7, .wpforms-container, .elementor-form) {
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius);
    background: var(--pf-surface);
    box-shadow: var(--pf-shadow);
}

.paritfalls-site-polish.pf-page-contact #content :where(.wpcf7, .wpforms-container, .elementor-form) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), select, textarea),
.paritfalls-site-polish.pf-page-contact .site-content :where(.wpcf7, .wpforms-container, .elementor-form) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), select, textarea) {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius-sm);
    background: #fff;
    color: var(--pf-text);
    box-shadow: none;
}

.paritfalls-site-polish.pf-page-contact #content :where(.wpcf7, .wpforms-container, .elementor-form) textarea,
.paritfalls-site-polish.pf-page-contact .site-content :where(.wpcf7, .wpforms-container, .elementor-form) textarea {
    min-height: 150px;
    resize: vertical;
}

.paritfalls-site-polish.pf-page-contact #content :where(.wpcf7, .wpforms-container, .elementor-form) :where(input, select, textarea):focus,
.paritfalls-site-polish.pf-page-contact .site-content :where(.wpcf7, .wpforms-container, .elementor-form) :where(input, select, textarea):focus {
    outline: none;
    border-color: var(--pf-accent);
    box-shadow: 0 0 0 3px rgba(154, 122, 72, 0.14);
}

/* Blog/news cards. Does not hide or rewrite posts. */
.paritfalls-site-polish.pf-page-blog #content :where(article.post, .elementor-post, .post-inner),
.paritfalls-site-polish.pf-page-blog .site-content :where(article.post, .elementor-post, .post-inner) {
    overflow: hidden;
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius);
    background: var(--pf-surface);
    box-shadow: var(--pf-shadow-sm);
}

.paritfalls-site-polish.pf-page-blog #content :where(article.post, .elementor-post, .post-inner) img,
.paritfalls-site-polish.pf-page-blog .site-content :where(article.post, .elementor-post, .post-inner) img {
    width: 100%;
    height: auto;
}

/* Tables in content. */
.paritfalls-site-polish #content .entry-content table:not(.ui-datepicker-calendar):not(.mphb-calendar),
.paritfalls-site-polish .site-content .entry-content table:not(.ui-datepicker-calendar):not(.mphb-calendar) {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius-sm);
    background: #fff;
}

.paritfalls-site-polish #content .entry-content table:not(.ui-datepicker-calendar):not(.mphb-calendar) th,
.paritfalls-site-polish #content .entry-content table:not(.ui-datepicker-calendar):not(.mphb-calendar) td,
.paritfalls-site-polish .site-content .entry-content table:not(.ui-datepicker-calendar):not(.mphb-calendar) th,
.paritfalls-site-polish .site-content .entry-content table:not(.ui-datepicker-calendar):not(.mphb-calendar) td {
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--pf-border);
    text-align: left;
    vertical-align: top;
}

.paritfalls-site-polish #content .entry-content table:not(.ui-datepicker-calendar):not(.mphb-calendar) th,
.paritfalls-site-polish .site-content .entry-content table:not(.ui-datepicker-calendar):not(.mphb-calendar) th {
    background: var(--pf-soft);
    color: var(--pf-text);
    font-weight: 700;
}

/* System and legacy pages get a neutral content panel, but no content is hidden. */
.paritfalls-site-polish.pf-page-system #content .entry-content,
.paritfalls-site-polish.pf-page-system .site-content .entry-content,
.paritfalls-site-polish.pf-page-legacy-booking #content .entry-content,
.paritfalls-site-polish.pf-page-legacy-booking .site-content .entry-content {
    min-height: 180px;
}

/* Accessibility and mobile refinements. */
.paritfalls-site-polish #content :focus-visible,
.paritfalls-site-polish .site-content :focus-visible,
.paritfalls-site-polish main.site-main :focus-visible {
    outline: 3px solid rgba(154, 122, 72, 0.38);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .paritfalls-site-polish.pf-page-inner #content .entry-title,
    .paritfalls-site-polish.pf-page-inner .site-content .entry-title,
    .paritfalls-site-polish.pf-page-inner main.site-main .entry-title {
        font-size: clamp(1.8rem, 10vw, 2.65rem);
    }

    .paritfalls-site-polish.pf-page-contact #content :where(.wpcf7, .wpforms-container, .elementor-form),
    .paritfalls-site-polish.pf-page-contact .site-content :where(.wpcf7, .wpforms-container, .elementor-form) {
        padding: 18px;
    }

    .paritfalls-site-polish #content .entry-content table:not(.ui-datepicker-calendar):not(.mphb-calendar),
    .paritfalls-site-polish .site-content .entry-content table:not(.ui-datepicker-calendar):not(.mphb-calendar) {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .paritfalls-site-polish #content *,
    .paritfalls-site-polish .site-content *,
    .paritfalls-site-polish main.site-main * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
