/* 
Theme Name: Słoneczne Wzgórza
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Lekki motyw potomny dla Hello Elementor stworzony, aby bezpiecznie rozwijać wygląd strony bez nadpisywania zmian po aktualizacjach.
Author: Markowy Web
Author URI: https://marekszmit.pl/
Template: hello-elementor
Version: 1.0
Text Domain: slonecznewzgorza-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/
html {
    scroll-behavior: smooth;
}
.l-grid {
  display: grid !important;
  gap: var(--space-xl);
	max-width: 1920px;
	margin: auto;
}
#apartamenty button:not(.e-tab-base){
	border: none!important;
}
#apartamenty button:not(.e-tab-base):hover{
	border: var(--color-border);
	background-color: transparent;
}

.elementor-field-type-acceptance label{
	font-family: var(--font-body);
    font-size: var(--fs-small);
    line-height: var(--lh-normal);
}

.l-grid-2 { grid-template-columns: repeat(1, 1fr); }
.l-grid-3 { grid-template-columns: repeat(1, 1fr); }
.l-grid-4 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 768px) {
  .l-grid-2 { grid-template-columns: repeat(2, 1fr); }

  .l-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .l-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width:768px){
	  .l-grid .image-wrapper{order: -1;}
}

@media (min-width: 1024px) {
  .l-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .l-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* 1. ZAOKRĄGLENIE CAŁEJ TABELI (I JEJ KOMÓREK) */
.bim-apartments-table {
    width: 100%;
    border-collapse: separate !important; /* Kluczowe! */
    border-spacing: 0 !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 14px !important; /* Zwiększyłem lekko promień, by był wyraźniejszy */
    overflow: hidden !important;
}

/* Nadpisanie tła komórek, które u Ciebie zasłaniało zaokrąglenie */
.bim-apartments-table th, 
.bim-apartments-table td {
    font-family: var(--font-body) !important;
    font-size: var(--fs-body) !important;
    border-bottom: 1px solid var(--color-border) !important;
    border-right: 1px solid var(--color-border) !important;
}

/* Usunięcie zbędnych borderów z brzegu tabeli */
.bim-apartments-table th:last-child, 
.bim-apartments-table td:last-child {
    border-right: none !important;
}

.bim-apartments-table tr:last-child td {
    border-bottom: none !important;
}

/* Wymuszenie zaokrąglenia na konkretnych rogowych komórkach (zabezpieczenie przed "wylewaniem" tła) */
.bim-apartments-table tr:first-child th:first-child { border-top-left-radius: 14px !important; }
.bim-apartments-table tr:first-child th:last-child { border-top-right-radius: 14px !important; }
.bim-apartments-table tr:last-child td:first-child { border-bottom-left-radius: 14px !important; }
.bim-apartments-table tr:last-child td:last-child { border-bottom-right-radius: 14px !important; }


/* 2. STYLIZACJA PRZYCISKÓW (PDF) */
.bim-apartments-table__pdf-link {
    display: inline-block !important;
    background-color: var(--color-cta) !important;
    transition: background-color 0.25s ease !important;
}

.bim-apartments-table__pdf-link:hover {
    background-color: var(--color-cta-hover) !important;
}


/* 3. TUNING I WYMUSZENIE WYGLĄDU SCROLLBARA */
.bim-apartments-table-wrap {
    /* Firefox */
    scrollbar-width: thin !important;
    scrollbar-color: var(--color-primary-dark) rgba(0, 0, 0, 0.05) !important;
}

/* Webkit (Chrome, Safari, Edge) - pełny reset */
.bim-apartments-table-wrap::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important; /* Scroll poziomy */
    display: block !important;
}

.bim-apartments-table-wrap::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05) !important; /* Delikatne tło dla toru scrolla */
    border-radius: 10px !important;
}

.bim-apartments-table-wrap::-webkit-scrollbar-thumb {
    background-color: var(--color-primary-dark) !important;
    border-radius: 10px !important;
    border: 1px solid transparent !important;
}

.bim-apartments-table-wrap::-webkit-scrollbar-thumb:hover {
    filter: brightness(85%); /* Lekkie ściemnienie suwaka przy najechaniu */
}



.elementor .text-gradient {
    color: #6FAF2D !important;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .elementor .text-gradient {
        background: linear-gradient(90deg, #6FAF2D 0%, #4C8C2B 100%);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent !important;
        -webkit-text-fill-color: transparent;
    }
}
