/**
 * Sasanka Theme - Main Stylesheet (Compiled from SCSS)
 * Created by Sideradigital.com
 *
 * To recompile: sass scss/sidera.scss sidera.css --style=compressed
 */

/* =============================================================================
   BASE STYLES
   ============================================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333333;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =============================================================================
   IMAGE MAP PRO TOOLTIP CONTAINER
   ============================================================================= */

.imp-tooltips-container {
    z-index: 9999 !important;
}

@media screen and (max-width: 1399px) {
    .imp-tooltips-container {
        display: none !important;
        z-index: -999999;
        text-indent: -999999px;
    }
}

/* Individual Tooltip */
.imp-tooltips-container .imp-tooltip {
    padding: 0 !important;
    background-color: #ffffff !important;
    width: 247px !important;
    border-radius: 0 !important;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Tooltip Arrow */
.imp-tooltips-container .imp-tooltip .hs-arrow {
    left: 30px;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 9px solid #ffffff !important;
}

/* Tooltip Content */
.imp-tooltips-container .imp-tooltip .squares-container .squares-element {
    padding: 0 !important;
}

/* Tooltip Titles */
.imp-tooltips-container .imp-tooltip .squares-container .squares-element h3 {
    letter-spacing: normal;
    margin: 0 !important;
}

/* Floor overview title (dark background) */
.imp-tooltips-container .imp-tooltip .squares-container .squares-element h3.first-tooltip-title {
    padding: 12px 24px !important;
    background-color: #155e3b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif !important;
    font-size: 1.125rem !important;
    font-weight: bold !important;
    line-height: 1.797 !important;
    color: #ffffff !important;
}

/* Individual apartment title (light background) */
.imp-tooltips-container .imp-tooltip .squares-container .squares-element h3.byt-tooltip-title {
    padding: 10px 24px !important;
    background-color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    line-height: 1.5 !important;
    color: #333333 !important;
}

/* =============================================================================
   FLOOR STATISTICS (stavy)
   ============================================================================= */

.imp-tooltips-container .imp-tooltip .squares-container .squares-element .stavy {
    background-color: #ffffff !important;
}

.imp-tooltips-container .imp-tooltip .squares-container .squares-element .stavy > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.imp-tooltips-container .imp-tooltip .squares-container .squares-element .stavy > div:last-of-type {
    border-bottom: 0;
}

.imp-tooltips-container .imp-tooltip .squares-container .squares-element .stavy > div p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #333333;
    margin: 0;
}

.imp-tooltips-container .imp-tooltip .squares-container .squares-element .stavy > div span {
    position: relative;
    margin-left: 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 700;
    color: #719b41;
}

/* =============================================================================
   APARTMENT STATUS HEADER (before)
   ============================================================================= */

.imp-tooltips-container .imp-tooltip .podlazie-tooltip-before,
.imp-tooltip .podlazie-tooltip-before {
    margin: 0;
}

.imp-tooltips-container .imp-tooltip .podlazie-tooltip-before p,
.imp-tooltips-container .imp-tooltip .squares-container .squares-element .podlazie-tooltip-before p,
.imp-tooltip .podlazie-tooltip-before p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5;
    color: #ffffff;
    padding: 15px 24px;
    margin: 0;
}

/* =============================================================================
   APARTMENT TITLE
   ============================================================================= */

.imp-tooltips-container .imp-tooltip .tooltip-apartment-title,
.imp-tooltip .tooltip-apartment-title {
    padding: 12px 24px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
}

.imp-tooltips-container .imp-tooltip .tooltip-apartment-title h4,
.imp-tooltip .tooltip-apartment-title h4 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    color: #333333;
    margin: 0;
}

/* Status colors - Available */
.imp-tooltips-container .imp-tooltip .squares-container .squares-element .podlazie-tooltip-before p.tooltip-before-v-predaji,
.imp-tooltips-container .imp-tooltip .squares-container .squares-element .podlazie-tooltip-before p.tooltip-before-volne,
.imp-tooltips-container .imp-tooltip .squares-container .squares-element .podlazie-tooltip-before p.tooltip-before-available,
.imp-tooltips-container .imp-tooltip .squares-container .squares-element .podlazie-tooltip-before p.tooltip-before-na-predaj {
    background-color: #719b41;
}

/* Status colors - Reserved */
.imp-tooltips-container .imp-tooltip .squares-container .squares-element .podlazie-tooltip-before p.tooltip-before-rezervovane,
.imp-tooltips-container .imp-tooltip .squares-container .squares-element .podlazie-tooltip-before p.tooltip-before-reserved {
    background-color: #c99930;
}

/* Status colors - Sold */
.imp-tooltips-container .imp-tooltip .squares-container .squares-element .podlazie-tooltip-before p.tooltip-before-predane,
.imp-tooltips-container .imp-tooltip .squares-container .squares-element .podlazie-tooltip-before p.tooltip-before-sold {
    background-color: #d05656;
}

/* Status colors - Not for sale */
.imp-tooltips-container .imp-tooltip .squares-container .squares-element .podlazie-tooltip-before p.tooltip-before-not-for-sale,
.imp-tooltips-container .imp-tooltip .squares-container .squares-element .podlazie-tooltip-before p.tooltip-before-notforsale,
.imp-tooltips-container .imp-tooltip .squares-container .squares-element .podlazie-tooltip-before p.tooltip-before-nepredajne,
.imp-tooltips-container .imp-tooltip .squares-container .squares-element .podlazie-tooltip-before p.tooltip-before-nie-je-na-predaj {
    background-color: #8c8c8c;
}

/* =============================================================================
   APARTMENT DETAILS (after)
   ============================================================================= */

.imp-tooltips-container .imp-tooltip .squares-container .squares-element .podlazie-tooltip-after {
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
}

.imp-tooltips-container .imp-tooltip .squares-container .squares-element .podlazie-tooltip-after .tooltip-after-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
}

.imp-tooltips-container .imp-tooltip .squares-container .squares-element .podlazie-tooltip-after .tooltip-after-item:last-of-type {
    margin-bottom: 0;
}

.imp-tooltips-container .imp-tooltip .squares-container .squares-element .podlazie-tooltip-after .tooltip-after-item .item-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #333333;
    margin: 0;
}

.imp-tooltips-container .imp-tooltip .squares-container .squares-element .podlazie-tooltip-after .tooltip-after-item .item-value {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 700;
    color: #333333;
    margin: 0 0 0 12px;
}

/* =============================================================================
   TAXONOMY PAGE SPECIFIC (Floor detail pages)
   ============================================================================= */

.tax-podlazia .imp-tooltips-container .imp-tooltip {
    width: -webkit-fit-content !important;
    width: -moz-fit-content !important;
    width: fit-content !important;
}

.tax-podlazia .imp-tooltips-container .imp-tooltip .hs-arrow {
    border-top-color: #719b41 !important;
}

/* =============================================================================
   STATUS LEGEND COMPONENT
   ============================================================================= */

.sasanka-stavy-apartmanov {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.sasanka-stavy-apartmanov > div {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.sasanka-stavy-apartmanov > div span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: bold;
    color: #ffffff;
}

.sasanka-stavy-apartmanov > div p {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 0.875rem;
    color: #333333;
}

.sasanka-stavy-apartmanov .vpredaji_state span {
    background-color: #719b41;
}

.sasanka-stavy-apartmanov .rezervovane_state span {
    background-color: #c99930;
}

.sasanka-stavy-apartmanov .predane_state span {
    background-color: #d05656;
}

/* =============================================================================
   APARTMENTS TABLE
   ============================================================================= */

.sasanka-apartments-table-wrapper {
    position: relative;
    margin: 60px 0;
}

@media screen and (max-width: 767px) {
    .sasanka-apartments-table-wrapper {
        margin: 40px 0;
    }
}

.sasanka-table-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Filter Wrapper */
.sasanka-filter-wrapper {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    background-color: #ffffff;
    padding-bottom: 16px;
}

@media screen and (max-width: 767px) {
    .sasanka-filter-wrapper {
        flex-direction: column;
        gap: 12px;
    }
}

.sasanka-filter-item {
    flex: 1;
    max-width: 300px;
}

@media screen and (max-width: 767px) {
    .sasanka-filter-item {
        max-width: 100%;
    }
}

.sasanka-filter-item span {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    display: block;
    margin-bottom: 8px;
    color: #333333;
}

.sasanka-filter-select {
    width: 100%;
    padding: 14px 22px;
    padding-right: 40px;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    background-color: #f5f5f5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #666666;
}

.sasanka-filter-select:focus {
    outline: none;
    border-color: #155e3b;
}

/* Table Wrapper */
.sasanka-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* Table Header */
.sasanka-table-header {
    display: flex;
    background-color: #155e3b;
    min-height: 54px;
    align-items: center;
}

@media screen and (max-width: 767px) {
    .sasanka-table-header {
        display: none;
    }
}

.sasanka-table-header > p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    color: #ffffff;
    padding: 12px 16px;
    margin: 0;
}

/* Table Body */
.sasanka-table-body .sasanka-no-results {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    padding: 24px;
    text-align: center;
    color: #666666;
}

/* Table Row */
.sasanka-table-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

@media screen and (max-width: 767px) {
    .sasanka-table-row {
        flex-wrap: nowrap;
        padding: 0;
    }
}

.sasanka-table-row:hover {
    background-color: rgba(113, 155, 65, 0.1);
    cursor: pointer;
}

.sasanka-table-row > p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #333333;
    padding: 16px;
    margin: 0;
}

@media screen and (max-width: 767px) {
    .sasanka-table-row > p {
        padding: 12px 6px;
        font-size: 0.8rem;
    }
}

/* Table Columns */
.sasanka-col-title {
    flex: 2;
    min-width: 150px;
    font-weight: 700 !important;
}

@media screen and (max-width: 767px) {
    .sasanka-col-title {
        flex: 2 1 0;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.sasanka-col-rooms {
    flex: 1;
    min-width: 100px;
    text-align: center;
}

@media screen and (max-width: 767px) {
    .sasanka-col-rooms {
        flex: 1 1 0;
        min-width: 0;
        text-align: center;
    }
    .sasanka-col-rooms::before {
        content: none;
    }
}

.sasanka-col-area {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

@media screen and (max-width: 767px) {
    .sasanka-col-area {
        flex: 1.2 1 0;
        min-width: 0;
        text-align: center;
    }
    .sasanka-col-area::after {
        content: ' m²';
    }
}

.sasanka-col-status {
    flex: 1;
    min-width: 120px;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold !important;
}

@media screen and (max-width: 767px) {
    .sasanka-col-status {
        flex: 1.3 1 0;
        min-width: 0;
        text-align: center;
        margin-top: 0;
        font-size: 0.72rem;
    }
}

/* Status colors */
.sasanka-col-status.sasanka-status-v-predaji,
.sasanka-col-status.sasanka-status-volne,
.sasanka-col-status.sasanka-status-available,
.sasanka-col-status.sasanka-status-na-predaj {
    color: #719b41;
}

.sasanka-col-status.sasanka-status-rezervovane,
.sasanka-col-status.sasanka-status-reserved {
    color: #c99930;
}

.sasanka-col-status.sasanka-status-predane,
.sasanka-col-status.sasanka-status-sold {
    color: #d05656;
}

.sasanka-col-status.sasanka-status-nedostupny,
.sasanka-col-status.sasanka-status-unavailable,
.sasanka-col-status.sasanka-status-not-for-sale,
.sasanka-col-status.sasanka-status-notforsale,
.sasanka-col-status.sasanka-status-nepredajne,
.sasanka-col-status.sasanka-status-nie-je-na-predaj {
    color: #8c8c8c;
}

/* =============================================================================
   UTILITY CLASSES
   ============================================================================= */

.sasanka-hidden {
    display: none !important;
}

.sasanka-visible {
    display: block !important;
}

.sasanka-flex {
    display: flex !important;
}

@media screen and (max-width: 767px) {
    .sasanka-hidden-mobile {
        display: none !important;
    }
}

@media screen and (min-width: 1200px) {
    .sasanka-hidden-desktop {
        display: none !important;
    }
}

/* =============================================================================
   PLUGIN WRAPPER (Image Map Pro Container)
   ============================================================================= */

.plugin-wrapper,
.imp-wrap {
    position: relative;
    width: 100%;
}

/* =============================================================================
   RESPONSIVE VISIBILITY
   ============================================================================= */

.sasanka-plugin-wrapper-desktop {
    display: block;
}

@media screen and (max-width: 1399px) {
    .sasanka-plugin-wrapper-desktop {
        display: none !important;
    }
}

.sasanka-plugin-wrapper-mobile {
    display: none;
}

@media screen and (max-width: 1399px) {
    .sasanka-plugin-wrapper-mobile {
        display: block !important;
    }
}
