/*
Theme Name: immosmartpro
Theme URI: http://example.com
Author: Your name
Author URI: http://pinegrow.com/
Description: This theme was created with Pinegrow Web Editor
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: immosmartpro
*/

/* ============================================================
   WORDPRESS-ONLY OVERRIDES
   This file is loaded by WordPress via get_bloginfo('stylesheet_url')
   but is NOT linked from Pingrow's startseite.html, so these rules
   only take effect on the WP frontend (not in the Pingrow preview).
   ============================================================ */

/* Smooth-scroll in-page anchor clicks (e.g. /#about, /#leistungen).
   Honors the OS-level "reduced motion" accessibility preference. */
html {
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Remove default link underlines added by WP / theme defaults.
   Tailwind already resets <a> in Pingrow, but WP's frontend stylesheet
   (wp-includes/css/dist/block-library/style.css, theme.json link styles,
   JetEngine, etc.) reapplies underlines to all anchors, so we strip them
   globally here with `!important` so block-library / plugin rules can't win.
   Specific places that should keep an underline can opt-in with the
   Tailwind utility `underline` on the element (`underline` is already
   in the compiled tailwind.css and uses the same specificity, so it wins
   over the bare selector — but loses to the `!important` reset, which is
   why we explicitly re-allow opt-ins below). */
a,
a:visited,
a:hover,
a:focus,
a:active {
    text-decoration: none !important;
    text-decoration-line: none !important;
}

/* Opt-in: anything that carries the Tailwind `underline` utility (added in
   Pingrow) keeps its underline. Same goes for the `hover:underline` family
   when hovered. Specificity tied + later in source = wins over the reset
   above; `!important` matches so it isn't suppressed. */
a.underline,
a.underline:visited,
a:hover.hover\:underline,
a.hover\:underline:hover {
    text-decoration: underline !important;
    text-decoration-line: underline !important;
}

/* Centered listings carousel — dim incoming/outgoing slides (Jet Engine + theme Swiper). */
.slider--dimmed .jet-listing-grid__slider .swiper-slide:not(.swiper-slide-active),
.listings-centered-slider .swiper-slide:not(.swiper-slide-active),
.slider-component:not([data-pg-slider-mode='single']) .swiper-slide:not(.swiper-slide-active) {
    opacity: 0.5;
    filter: brightness(0.78);
    transition: opacity 0.35s ease, filter 0.35s ease;
}

.slider--dimmed .jet-listing-grid__slider .swiper-slide-active,
.listings-centered-slider .swiper-slide-active,
.slider-component:not([data-pg-slider-mode='single']) .swiper-slide-active {
    opacity: 1;
    filter: none;
}

/* Listing box-2 property title only — Open Sans, not Freight Big. */
h3.listing-sb2-property-title,
.jet-listing-grid__item h3.listing-sb2-property-title,
article.bg-pfi_blue-950 h3.listing-sb2-property-title,
.listing-sb2-property-title {
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif !important;
}
