/**
* Theme Name: Westio Child
* Description: This is a child theme of Westio, generated by Merlin WP.
* Author: <a href="https://pavothemes.com/">Pavothemes</a>
* Template: westio
* Version: 1.0.0
*/

/* ======== WRAPPER ======== */
.senec-byty-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 40px;
}

/* ======== TABUĽKA ======== */
.senec-byty-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    font-family: inherit;
}

.senec-byty-table th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.senec-byty-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

/* ======== FARBY STAVOV ======== */
.stav-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    color: white;
    font-weight: 600;
}

.stav-volny .stav-badge,
.stav-badge.stav-volny {
    background: #22a53b; /* zelená */
}

.stav-rezervovany .stav-badge,
.stav-badge.stav-rezervovany {
    background: #e6a600; /* žltá/oranžová */
}

.stav-predany .stav-badge,
.stav-badge.stav-predany {
    background: #c62828; /* červená */
}

/* ======== KLIKATEĽNÉ RIADKY ======== */
.byt-volny {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.byt-volny:hover {
    background: #f0fff4; /* jemná zelenkastá pri hover */
}

/* ======== NEAKTÍVNE RIADKY ======== */
.byt-neaktivny {
    opacity: 0.65;
    cursor: default;
}

.byt-neaktivny:hover {
    background: transparent;
}

/* ======== MOBILNÁ VERZIA (KARTIČKY) ======== */

@media (max-width: 768px) {
    .senec-byty-table {
        border: 0;
        min-width: 100%;
    }

    .senec-byty-table thead {
        display: none;
    }

    .senec-byty-table tr {
        display: block;
        background: white;
        margin-bottom: 15px;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 12px;
    }

    .senec-byty-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px 5px;
        border-bottom: 1px solid #f2f2f2;
    }

    .senec-byty-table td:last-child {
        border-bottom: 0;
    }

    .senec-byty-table td::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #444;
    }

    /* Hover efekt pre mobil – vypneme */
    .byt-volny:hover {
        background: white;
    }
}

#byt-popup-content {
    padding: 10px;
}

#byt-popup-content h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.popup-info p {
    margin: 5px 0;
}

/* Title */
.popup-title {
    margin-top: 0;
    font-size: 22px;
    font-weight: 700;
}

/* Two columns container */
.popup-two-cols {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;
}

/* Individual columns */
.popup-col {
    flex: 1;
}

.popup-col h4 {
    margin-bottom: 10px;
    font-size: 17px;
    font-weight: 600;
}

/* Lists */
.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list li {
    margin-bottom: 6px;
    font-size: 15px;
}

/* Floor plan full width */
.popup-podorys-wide {
    width: 100%;
    text-align: center;
}

.popup-podorys-img {
    width: 100%;
    max-width: 650px;
    height: auto;
    border-radius: 8px;
    border: 1px solid #eee;
    margin: 0 auto;
}

/* CTA button */
.popup-cta {
    margin-top: 25px;
    text-align: center;
}

.cta-button {
    display: inline-block;
    background: #22a53b;
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
}

.cta-button:hover {
    background: #1c8e34;
}

/* MOBILE */
@media (max-width: 768px) {

    .popup-two-cols {
        flex-direction: column;
        gap: 15px;
    }

    .popup-col h4 {
        font-size: 16px;
    }

    .popup-podorys-img {
        max-width: 100%;
    }
}

/* Ikony */
.detail-list li i {
    width: 18px;
    display: inline-block;
    margin-right: 6px;
    color: #666;
    font-size: 16px;
}

.senec-byty-table .btn-detail {
    padding: 6px 14px;
    background: linear-gradient(135deg, #c9a552, #e7c97d);
    color: #1d1d1d;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.senec-byty-table .btn-detail:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    transform: translateY(-2px);
}

.senec-byty-table .btn-detail:active {
    transform: translateY(0);
}


/* 🔥 POPUP – mobilné zobrazenie */
@media (max-width: 768px) {

    /* Zmenšíme samotný popup kontajner */
    .pum-container {
        width: 95% !important;
        max-width: 95% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 15px !important;
    }

    /* Obsah popupu */
    #byt-popup-content {
        padding: 0 !important;
    }

    /* Nadpis */
    #popup-byt-nazov {
        font-size: 20px !important;
        text-align: center;
        margin-bottom: 15px;
    }

    /* Prechod 2 stĺpcov → na mobile pod seba */
    .popup-two-cols {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .popup-col {
        width: 100% !important;
    }

    /* Zmenšené písmo */
    .detail-list li {
        font-size: 14px !important;
        line-height: 1.4;
    }

    /* Obrázok pôdorysu */
    .popup-podorys-wide img {
        width: 100% !important;
        height: auto !important;
        border-radius: 8px;
        margin-top: 10px;
    }

    /* CTA tlačidlo */
    .popup-cta .cta-button {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 0;
        font-size: 16px;
        border-radius: 8px;
    }
}


.fullscreen-img {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(0,0,0,0.9);
    z-index: 999999999;
    display: none;
}

.fullscreen-img.visible {
    display: block;
}

/* ----------------------------------
   LUXUSNÝ FILTER PRE SENEC SUN PARK
---------------------------------- */

/* Wrapper */
.senec-byty-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 18px 22px;
    background: #f3efe7; /* jemný "senec" odtieň */
    border-radius: 12px;
    margin-bottom: 22px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.06);
}

/* Položka filtra */
.senec-byty-filter .filter-item {
    display: flex;
    flex-direction: column;
    min-width: 160px;
}

/* Text label */
.senec-byty-filter .filter-item label {
    font-size: 14px;
    font-weight: 600;
    color: #6d6a65; /* jemná šedohnedá */
    margin-bottom: 4px;
}

/* Select dizajn */
.senec-byty-filter select {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #d4cfc6;
    background: #fff;
    color: #333;
    transition: 0.15s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.senec-byty-filter select:focus {
    border-color: #b9a88f;
    box-shadow: 0 0 0 3px rgba(185,168,143,0.25);
    outline: none;
}

/* Reset tlačidlo */
.senec-byty-filter .filter-reset {
    padding: 10px 18px;
    background: #b9975b; /* zlatá */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.senec-byty-filter .filter-reset:hover {
    background: #a88447;
}

/* ---------------------------
   RESPONSIVE (MOBILE)
--------------------------- */

@media (max-width: 768px) {

    .senec-byty-filter {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .senec-byty-filter .filter-item {
        width: 100%;
    }

    .senec-byty-filter select {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }

    .senec-byty-filter .filter-reset {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
}

/* ----------------------------------
   AKTÍVNY FILTER – elegantné zvýraznenie
---------------------------------- */

.senec-byty-filter select.active-filter {
    border-color: #b9975b !important;      /* zlatý okraj */
    background: #f7f1e5 !important;        /* jemné luxusné zvýraznenie */
    box-shadow: 0 0 0 3px rgba(185,151,91,0.25) !important;
    font-weight: 600;
    color: #5a4a32;
    transition: 0.2s ease;
}


#full-img-viewer {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    overflow: auto;      /* 💛 dôležité – umožní pinch zoom */
    touch-action: auto;  /* 💛 špeciálne pre Android */
}

#full-img-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    touch-action: auto; /* umožní gestá */
}

#full-img-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 100000;
    font-weight: bold;
}

@media (max-width: 767px) {

		.elementor-73 .elementor-element.elementor-element-ac95268:not(.elementor-motion-effects-element-type-background), 
		.elementor-73 .elementor-element.elementor-element-ac95268 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
			background-color: transparent !important;
		}

		.elementor-73 .elementor-element.elementor-element-ac95268.e-con{
		position: fixed;
	}
}

/* ==============================
   POPUP 4531 – scroll inside content
   ============================== */

/* overlay nech neberie scroll */
#pum-4531.pum-active {
  overflow: hidden !important;
}

/* popup kontajner nech je vo viewport-e */
#popmake-4531.pum-container {
  max-height: calc(100vh - 80px) !important;
  overflow: hidden !important;
}

/* scroll len vnútri obsahu */
#popmake-4531 .pum-content {
  max-height: calc(100vh - 140px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain;
  padding-right: 8px;
}

 #popup-podorys-img {
    pointer-events: none !important;
    cursor: default !important;
  }






