.zoddak-access-denied{
    background-color: red;
}
.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.preview-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

/* === Toggle === */
.preview-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-toggle input {
  display: none;
}

.toggle-label {
  background-color: #e1e1e1;
  border-radius: 4px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 120px;
  height: 21px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
  margin-bottom: 1rem;
}

.toggle-label .switch {
  position: absolute;
  top: 3px;
  left: 5px;
  width: 50px;
  height: 24px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: left 0.3s ease, background-color 0.3s ease;
  padding-right: 6px;
}

.option-cards, .option-layout {
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1;
  color: #555;
  user-select: none;
}

#toggleView:checked + .toggle-label .switch {
  left: 82px;
  padding-right: 0;
}



/* === Vistas === */
.preview-view {
  display: none;
  transition: opacity 0.3s ease;
}

.preview-view.active {
  display: block;
}

.customization-container{
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.customization-form{
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}
.page-preview{
    background-color: #ffffff;
    padding: 20px;
    width: 700px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 1;
}
.page-preview.hidden{
    opacity: 0;
    display: none;
}
.preview-container{
    min-width: 350px;
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: var(--card-border);
    border: 1px solid #ddd;
    position: sticky;
    top: 32px;
    align-self: flex-start;
    overflow: auto;
    width: 950px;
}
.card-preview{
    display: flex;
    flex-direction: row;
    width: 292.5px;
    background-color: #ffffff;
    border-radius: var(--card-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px 0;
    padding-bottom: 0;
    font-size: 12px;
    display: flex;
    height: 320px;
    font-family: inherit !important;
    align-self: center;
    background-color: var(--card-bg-color);

    transition: transform 0.2s ease;
    .grid{
        display: flex;
        flex-direction: column;
        .info-and-icon{
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 5px
        }
    }
}
.card-preview.horizontal:hover{
    transform: translateX(10px);
}
.card-preview.vertical:hover{
    transform: translateY(-10px);
}
.card-preview:hover .container-info div .property-loc::after{
    width: 43%;
}
.card-preview .box-ref-type{
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 10px; 
    width: 97%;
}
.card-preview.vertical{
    #units-out{
        display: none;
    }
}
#filterCard{
    background-color: var(--filter-bg);
    
}

#typeProp{
    background-color: var(--type-btn-bg);
    color: var(--type-btn-color);
    padding: 5px 10px;
    border-radius: var(--card-border);
    color: #ffffff;
}
.card-preview .container-img{
    width: 40%; 
    height: fit-content;
    min-width: 300px; 
    height: auto;
    background-color: #f0f0f0; 
    display: flex; 
    align-items: center; 
    justify-content: center
}

.card-preview.vertical{
    flex-direction: column;
    height: fit-content;
    #priceIn{
        display: none;
    }
}

.card-preview.horizontal{
    flex-direction: row;
    .container-info{
        .property-info{
            justify-content: space-between;
            .grid-templates{
                #priceIn{
                    display: none;
                }
                #units-in{
                    display: none;
                }
            }
            #units-out{
                display: flex;
            }
        }
    }
}
.card-preview.vertical .container-img{
    width: 100%;
    height: 40%;
    flex: 0 0 45%;
}

.card-preview .container-info {
    display: flex;
    flex-direction: column;
    justify-content: start; /* mantiene partes separadas (título / datos / botón) */
    flex: 1; /* ocupa toda la altura disponible del contenedor */
    padding: 15px;
    box-sizing: border-box;
    overflow: hidden;
    gap: 1rem;
}
.card-preview .container-info .box-line-loc{
    display: flex;
    flex-direction: column;
    
}
.card-preview .container-info div .property-loc{
    margin: 0;
    position: relative;
}
/* .card-preview .container-info div .line-hor{
    transition: width 0.3s;
    width: 100%;
    display: block;
    background-color: var(--line-hor);
    transform-origin: left center 0px;
    margin-left: 0px;
    height: 1.5px;
} */
 .card-preview .container-info div .property-loc::after{
    position: absolute;
    top: 23px;
    content: '';
    transition: width 0.3s;
    width: 100%;
    display: block;
    background-color: var(--line-hor);
    transform-origin: left center 0px;
    margin-left: 0px;
    height: 2px;
}
.card-preview.vertical .container-info{
    height: fit-content;
    .property-info{
        #price-out{
            display: block;
        }
        .grid-templates{
            #price-in{
                display: none;
            }
        }
    }
}
.card-preview.vertical.small{
    width: 272px;
    height: 400px;
    .prop-ref{
        right: 31px;
        font-size: 9px;
    }
    .property-loc{
        font-size: 14px;
        font-weight: bold;
    }
    .container-info{
        gap: 0.5rem;
        .property-info{ 
            gap: 0.5rem;
            .price{
                font-size: 12px;
            }
            .grid-templates .grid{
                .label{
                    font-size: 12px;
                }
                .value{
                    font-size: 12px;
                }
            }
        }
    }
}
.card-preview.vertical.medium{
    width: 342.5px;
    height: 450px;
    #priceOut .span-info{
        .value{
            font-size: 16px;
        }
    }
    .property-loc{
        font-size: 17px;
        font-weight: bold;
    }
}
.card-preview.vertical.large{
    width: 400px;
    height: 474px;
    .container-info{
        #priceOut .span-info{
            .value{
                font-size: 17px;
            }
        }
        .property-loc{
            font-size: 20px;
            font-weight: bold;
        }
        .property-info{
            .price{
                font-size: 16px;
            }
            .grid-templates .grid{
                .label{
                    font-size: 16px;
                }
                .value{
                    font-size: 16px;
                }
            }
        }
    }
}
.card-preview.horizontal{
    position: relative;
    width: 720px;
    .container-img{
        height: 100%;
        width: 40%;
        .stage-badge{
            font-size: 8px;
        }
        .prop-ref{
            font-size: 8px;
            top: -3px !important;
            right: 9px !important;
        }
        
        img{
            height: 100%;
            width: 100%;
            object-fit: cover;
        }
        
    }
    .container-info{
        justify-content: start;
        padding: 5px;
        #price-out{
            display: block;
        }
        .property-info{
            display: flex;
            flex-direction: row;
            gap: 3rem;
            #price-out{
                display: none;
            }
            .grid-templates{
                #price-in{
                    display: none;
                }
                #units-in{
                    display: none;
                }
                display: flex;
                flex-direction: row;
                gap: 2rem;
                .grid{
                    display: flex;
                    flex-direction: column;
                    
                }
            }
            #units-out{
                display: flex;
                flex-direction: column;
            }
        }
    }
}
.card-preview.horizontal.small{
    height: 100px;
    .container-info{
        .property-info{
            gap: 10rem;
            .grid-templates{
                gap: 1rem;
                .label{
                    font-size: 8px;
                    color: gray;
                    font-weight: bold;
                }
                .value{
                    font-size: 8px;
                    font-weight: bold;
                }
            }
            #units-out{
                .label{
                    font-size: 8px;
                    color: gray;
                    font-weight: bold;
                }
                .value{
                    font-size: 8px;
                    font-weight: bold;
                }
            }
        }
    }
}
.card-preview.horizontal.medium{
    height: 100px;
    .container-img{
        height: auto;
    }
    .container-info{
        gap: 9px;
        div{
            .property-loc{
                font-size: 16px;
            }
        }
        #priceOut .span-info .value{
            font-size: 14px;
            font-weight: bold;
        }
        .property-info{
            gap: 3rem;
            .grid-templates{
                gap: 1rem;
                .grid{
                    .label{
                        white-space: nowrap;
                        font-size: 13px;
                        color: gray;
                        font-weight: bold;
                    }
                    .value{
                        font-size: 13px;
                        font-weight: bold;
                    }
                }
            }
            #units-out{
                .label{
                    font-size: 13px;
                    white-space: nowrap;
                    color: gray;
                    font-weight: bold;
                }
                .value{
                    font-size: 13px;
                    font-weight: bold;
                }
            }
        }
    }
}
.card-preview.horizontal.large{
    height: 115px;
    .container-img{
        height: auto;
    }
    .container-info{
        justify-content: start;
        gap: 15px;
        div{
            .property-loc{
                font-weight: bold;
                font-size: 20px;
            }
        }
        #priceOut .span-info .value{
            font-size: 17px;
            font-weight: bold;
        }
        .property-info{
            gap: 2rem;

            .grid-templates{
                gap: 1rem;
                .grid{
                    .label{
                        font-size: 14px;
                        color: gray;
                        font-weight: bold;
                        white-space: nowrap;
                    }
                    .value{
                        font-size: 14px;
                        font-weight: bold;
                    }
                }
            }
            #units-out{
                .label{
                    font-size: 14px;
                    color: gray;
                    white-space: nowrap;
                    font-weight: bold;
                }
                .value{
                    font-size: 14px;
                    font-weight: bold;
                }
            }
        }
    }
}
.card-preview.vertical .container-img{
    position: relative;
    height: 60%;
}
.card-preview.vertical .container-img img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.card-preview .container-img .prop-ref{
    position: absolute;
    background-color: var(--ref-type-color, #070100);
    color: var(--tag-color, #ffffff);
    padding: 4px 10px;
    border-radius: var(--card-border);
    font-size: 10px;
    text-transform: uppercase;
    top: -6px;
    right: 13px;
    box-shadow: 0px 0px 12px #2c2a2aba;
    font-weight: bold;
}

.card-preview.horizontal .container-img .prop-ref{
  position: absolute;
  z-index: 5;
  box-shadow: 0px 0px 12px #2c2a2a4b;
  top: 0;
  right: 24px;
}
.card-preview .container-img .stage-badge {
  position: absolute;
  padding: 6px 11px;
  border-radius: var(--card-border);
  left: 0px;
  top: 0;
  height: 7%;
  justify-content: center;
  background-color: #0003;
  backdrop-filter: blur(4px);
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:0.9rem;
  color:white; 
  font-weight: 600; 
  width:fit-content
}
.stage-badge .stage-dot {
  display:inline-block;
  width: 10px;
  height: 10px;
  border-radius:50%;
  background-color: currentColor;
}
.card-preview.vertical .container-info .property-info .grid-templates{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.card-preview.vertical .container-info .property-info .grid-templates .grid{
    display: flex;
    gap: 5px;
    .label{
        width: fit-content;
        font-weight: bold;
        color: gray;
        font-size: 15px;
    }
    .value{
        width: fit-content;
        font-size: 15px;
        color: black;
    }
}
.card-preview .container-info .property-info{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.card-preview .container-info .property-info .price{
    color: black;
    font-size: 15px;
}
#detailsBtn{
    background-color: var(--btn-details);
}

.page-layout {
    display: none;
    opacity: 0;
    pointer-events: none;
    background-color: white;
    justify-content: center;
    align-items: flex-start;
    aspect-ratio: 16/9;
    overflow: scroll;
    transition: opacity 0.3s ease;
}

.page-layout.active {
    display: flex;
    opacity: 1;
    pointer-events: all;
    padding: 1rem;
}


.page-layout .screen-preview{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 1rem;
    row-gap: 1rem;
}
.example-card{
    background-color: var(--card-bg-color);
    .container-img{
        .prop-ref{
            background-color: var(--ref-type-color) !important;
        }
    }
}
.example-card .container-info .box-price{
    display: flex;
    width: 14%;
    justify-content: flex-start;
    align-self: flex-start;
    align-items: center;
    gap: 5px;
}
.example-card .container-info .box-price #price-out{
    align-self: flex-start;
    font-weight: bold;
}
.page-layout .screen-preview .example-card.vertical{
    height: 200px;
    width: 100%;
    border-radius: var(--card-border);
    box-shadow: 0 0 5px gray;
    .container-info{
        
        .property-info{
            .box-price{
                #price-out{
                    display: flex;
                }
            }
            .grid-templates{
                #price-in{
                    display: none !important;
                }
                #units-in{
                    display: flex;
                }
            }
            #units-out{
                display: none;
            }
        }
    }
}
.screen-preview.total:has(.example-card.small.vertical){
    .example-card{
        .box-price{
            #price-out, i{
                font-size: 8px;
            }
        }
    }
}
.screen-preview.large:has(.example-card.small.vertical){
    .example-card{
        .box-price{
            #price-out, i{
                font-size: 8px;
            }
        }
    }
}
.screen-preview.medium:has(.example-card.small.vertical){
    .example-card{
        .box-price{
            #price-out, i{
                font-size: 8px;
            }
        }
    }
}
.screen-preview.small:has(.example-card.small.vertical){
    .example-card{
        .box-price{
            #price-out, i{
                font-size: 8px;
            }
        }
    }
}
.page-layout .screen-preview .example-card.horizontal.medium .container-info{
    height: 100%;
}
.page-layout .screen-preview .example-card.horizontal{
    display: flex;
    flex-direction: row;
    box-shadow: 0 0 5px gray;
    .container-img{
        width: 80%;
        height: 100%;
        .prop-ref{
            font-size: 0.35rem;
            width: 28px;
            height: 16px;
            top: 0px;
            right: 0;
            align-items: center;
            display: flex;
        }
    }
    .container-info{
        flex-direction: column;
        justify-content: center;
        align-content: end;
        width: 100%;
        height: 100%;
        #price-out{
            display: block;
        }
        .property-info{
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: end;
            .grid-templates{
                display: flex;
                #price-in{
                    display: block;
                }
                #units-in{
                    display: none;
                }
            }
            #units-out{
                display: block;
                font-size: 0.45rem;
                font-weight: 600;
                color: gray;
                line-height: 1.1;
                white-space: nowrap;
            }
        }
    }
}
.page-layout .screen-preview .example-card.horizontal.small{
    width: 100%;
    height: 50px;
    
}
.page-layout .screen-preview .example-card.horizontal.medium{
    width: 100%;
    height: 70px;
    
}
.page-layout .screen-preview .example-card.horizontal.large{
    width: 100%;
    height: 73px;
}
.screen-preview.small:has(.example-card.horizontal),
.screen-preview.medium:has(.example-card.horizontal),
.screen-preview.large:has(.example-card.horizontal),
.screen-preview.total:has(.example-card.horizontal){
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}
.screen-preview.small{
    width: 60%;
}
.screen-preview.medium{
    width: 75% ;
}
.screen-preview.large{
    width: 87.5%;
}
.screen-preview.total{
    width: 100%;
}

/* Estilos comunes para todas las vistas */
.screen-preview:has(.example-card.horizontal.small) {
  .example-card {
    .container-info {
        width: 66%;
      .title {
        font-size: 0.8rem;
      }
     
      .property-info {
        align-items: center;
        .grid-templates{ 
            column-gap: 0;
            span{
                font-size: 0.4rem;
            }
        }
        #units-out {
            display: flex;
            flex-direction: column;
          font-size: 0.4rem;
        }
      }
    }
  }
}

/* Altura específica según el tamaño del screen-preview */
.screen-preview.medium:has(.example-card.horizontal.small),
.screen-preview.large:has(.example-card.horizontal.small),
.screen-preview.total:has(.example-card.horizontal.small) {
  .example-card {
    height: 50px;
  }
}
.screen-preview.small:has(.example-card.horizontal.medium){
    .example-card{
        .container-info{
            #price-out{
                font-size: 11px;
            }
            .property-info{
                .grid-templates{
                    span{
                        font-size: 8px;
                    }
                }
                #units-out{
                    font-size: 8px;
                }
            }
        }
    }
}
.screen-preview.large:has(.example-card.horizontal.medium){
    .example-card{
        .container-info{
            .property-info{
                .grid-templates{
                    column-gap: 11px;
                }
            }
        }
    }
}
.screen-preview.total:has(.example-card.horizontal.medium){
    .example-card{
        .container-info{
            .property-info{
                .grid-templates{
                    column-gap: 15px;
                }
            }
        }
    }
}
.screen-preview:has(.example-card.horizontal.medium) {
  .example-card {
    .container-info {
      .title {
        font-size: 0.9rem;
      }
      .box-price{
        #price-out, i{
            font-size: 10px;
        }
      }
      .property-info {
        align-items: first baseline ;
        .grid-templates {
            #price-in{
                display: none;
            }
            span{
                font-size: 10px;
            }
        }
        #units-out {
          font-size: 10px;
          display: flex;
          flex-direction: column;
        }
      }
    }
  }
}

/* Altura específica según el tamaño del screen-preview */
.screen-preview.small:has(.example-card.horizontal.medium),
.screen-preview.medium:has(.example-card.horizontal.medium),
.screen-preview.large:has(.example-card.horizontal.medium),
.screen-preview.total:has(.example-card.horizontal.medium) {
  .example-card {
    height: 60px;
  }
}

.screen-preview:has(.example-card.horizontal.large) {
  .example-card {
    .container-info {
      .title {
        font-size: 1rem;
      }
       .box-price{
        #price-out, i{
            font-size: 14px;
        }
      }
      .property-info {
        align-items: center;
        #units-out {
          font-size: 10pxrem;
        }
      }
    }
  }
}
.screen-preview.medium:has(.example-card.horizontal.large){
    .example-card{
        height: 70px;
        .container-info{
            .box-price{
                #price-out, i {
                    font-size: 12px;
                }
            }
        }
    }

}
/* Altura específica según el tamaño del screen-preview */
.screen-preview.medium:has(.example-card.horizontal.large),
.screen-preview.large:has(.example-card.horizontal.large),
.screen-preview.total:has(.example-card.horizontal.large) {
  .example-card {
    height: 85px;
  }
}

.example-card.vertical.small{
    .container-info #price-out{
        font-size: 10px;
    }
}

.screen-preview.small:has(.example-card.vertical.small){
    grid-template-columns: repeat(3, 1fr);
    .example-card{
        height: 185px;
        .container-info{
            height: 79px;
            .title{
                font-size: 10px;
            }
            .property-info{
                .price{
                    font-size: 8px;
                }
                .grid-templates span{
                    font-size: 0.45rem;
                }
            }
        }
    }
}
.screen-preview.medium:has(.example-card.vertical.small){
    grid-template-columns: repeat(4, 1fr);
    .example-card{
        height: 185px;
        .container-info{
            height: 79px;
            .title{
                font-size: 10px;
            }
            .property-info{
                .price{
                    font-size: 8px;
                }
                .grid-templates span{
                    font-size: 0.45rem;
                }
            }
        }
    }
}
.screen-preview.large:has(.example-card.vertical.small){
    grid-template-columns: repeat(5, 1fr);
    .example-card{
        height: 185px;
        .container-info{
            height: 79px;
            .title{
                font-size: 10px;
            }
            
            .property-info{
                .price{
                    font-size: 8px;
                }
                .grid-templates span{
                    font-size: 0.45rem;
                }
            }
        }
    }
}
.screen-preview.total:has(.example-card.vertical.small){
    grid-template-columns: repeat(6, 1fr);
    .example-card{
        height: 185px;
        .container-info{
            height: 79px;
            .title{
                font-size: 10px;
            }
            .property-info{
                .price{
                    font-size: 8px;
                }
                .grid-templates span{
                    font-size: 0.45rem;
                }
            }
        }
    }
}
.screen-preview.small:has(.example-card.vertical.medium){
    grid-template-columns: repeat(2, 1fr);
    .example-card{
        height: 210px;
        .container-info{
            height: 77px;
            .title{
                font-size: 12px;
            }
            .box-price{
                #price-out, i{
                    font-size: 9px;
                }
                
            }
            .property-info{
                .price{
                    font-size: 9px;
                }
                .grid-templates span{
                    font-size: 9px;
                }
            }
        }
    }
}
.screen-preview.medium:has(.example-card.vertical.medium){
    grid-template-columns: repeat(3, 1fr);
    .example-card{
        height: 224px;
        .container-info{
            height: 77px;
            .title{
                font-size: 0.77rem;
            }
            .box-price{
                #price-out, i{
                    font-size: 10px;
                }
                
            }
            .property-info{
                .price{
                    font-size: 0.63rem;
                }
                .grid-templates span{
                    font-size: 0.63rem;
                    #units-in{
                        display: none;
                    }
                }
            }
        }
    }
}
.screen-preview.large:has(.example-card.vertical.medium){
    grid-template-columns: repeat(4, 1fr);
    .example-card{
        height: 230px;
        .container-info{
            height: 86px;
            .title{
                font-size: 11px;
            }
            .box-price{
                #price-out, i{
                    font-size: 9px;
                }
                
            }
            .property-info{
                .price{
                    font-size: 0.63rem;
                }
                .grid-templates span{
                    font-size: 0.63rem;
                }
            }
        }
    }
}
.screen-preview.total:has(.example-card.vertical.medium){
    grid-template-columns: repeat(5, 1fr);
    .example-card{
        height: 204px;
        .container-info{
            height: 79px;
            .title{
                font-size: 11px;
            }
            .box-price{
                #price-out, i{
                    font-size: 9px;
                }
                
            }
            .property-info{
                .price{
                    font-size: 0.45rem;
                }
                .grid-templates span{
                    font-size: 0.45rem;
                }
            }
        }
    }
}
.screen-preview.small:has(.example-card.vertical.large){
    grid-template-columns: repeat(2, 1fr);
    .example-card{
        height: 220px;
        .container-info{
            .property-info{
                .grid-templates{
                    column-gap: 4rem;
                    .label{
                        font-size: 14px;
                    }
                    .info-and-icon{
                        span{
                            font-size: 11px;
                        }
                    }
                    #units-in{
                        font-size: 11px;
                    }
                }
            }
        }
    }
}
.screen-preview.medium:has(.example-card.vertical.large){
    grid-template-columns: repeat(2, 1fr);
    .example-card{
        height: 220px;
        .container-info{
            .title{
                font-size: 0.8rem;
            }
            .property-info{
                .price{
                    font-size: 0.7rem;
                }
                .grid-templates{
                    column-gap: 4rem;
                    span{
                        font-size: 0.7rem;
                    }
                }
            }
        }
    }
}
.screen-preview.large:has(.example-card.vertical.large){
    grid-template-columns: repeat(3, 1fr);
    .example-card{
        height: 220px;
        .container-info{
            .title{
                font-size: 0.9rem;
            }
            .property-info{
                .price{
                    font-size: 0.7rem;
                }
                .grid-templates{
                    column-gap: 2rem;
                    span{
                        font-size: 0.7rem;
                    }
                }
            }
        }
    }
}
.screen-preview.total:has(.example-card.vertical.large){
    grid-template-columns: repeat(4, 1fr);
    .example-card{
        height: 205px;
        .container-info{
            height: 86px;
            .title{
                font-size: 0.9rem;
            }
            .property-info{
                .price{
                    font-size: 0.55rem;
                }
                .grid-templates{
                    column-gap: 2rem;
                    span{
                        font-size: 0.55rem;
                    }
                }
            }
            
        }
    }
}
.screen-preview.small:has(.example-card.horizontal.large){
    .example-card{
        .container-info{
            #price-out{
                display: flex;
                width: 100%;
            }
            .property-info{
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                .grid-templates{
                    display: grid;
                    grid-template-columns: repeat(2, 1fr) !important;
                    #price-in{
                        display: none;
                    }
                    
                }
            }
            #units-out{
                display: flex;
                flex-direction: column;
            }
        }
    }
}
.screen-preview.medium:has(.example-card.horizontal.large){
    .example-card{
        height: 75px;
        .container-info{
            .box-price{
                #price-out{
                    display: flex;
                    font-size: 12px;
                }
            }
            .property-info{
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                .grid-templates{
                    align-self: center;
                    gap: 8px;
                    display: flex;
                    #price-in{
                        display: none;
                    }
                    .info-and-icon{
                        gap: 3px;
                        span, i{
                            font-size: 10px;
                        }
                    }
                }
            }
            #units-out{
                display: flex;
                flex-direction: column;
                align-self: flex-end;
                height: 62%;
                justify-content: space-between;
                span, i{
                    font-size: 10px;
                }
            }
        }
    }
}
.screen-preview.large:has(.example-card.horizontal.large){
    .example-card{
        .container-info{
            #price-out{
                display: flex;
                width: 100%;
            }
            .property-info{
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                .grid-templates{
                    align-self: flex-end;
                    gap: 8px;
                    display: flex;
                    #price-in{
                        display: none;
                    }
                    .info-and-icon{
                        gap: 10px;
                        span, i{
                            font-size: 12px;
                        }
                    }
                }
            }
            #units-out{
                display: flex;
                flex-direction: column;
                align-self: flex-end;
                height: 62%;
                justify-content: space-between;
                span, i{
                    font-size: 12px;
                }

            }
        }
    }
}
.screen-preview.total:has(.example-card.horizontal.large){
    .example-card{
        .container-info{
            #price-out{
                display: flex;
                width: 100%;
            }
            .property-info{
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                .grid-templates{
                    gap: 8px;
                    display: flex;
                    align-self: flex-end;
                    .info-and-icon{
                        gap: 10px;
                        span, i{
                            font-size: 14px;
                        }
                    }
                    #price-in{
                        display: none;
                    }
                }
            }
            #units-out{
                display: flex;
                flex-direction: column;
                align-self: flex-end;
                gap: 10px;
                span, i{
                    font-size: 14px;
                }
            }
        }
    }
}
.example-card{
    position: relative;
    transition: transform 0.2s ease;
    .info-and-icon{
        display: flex;
        flex-direction: column;
        .icon{
            font-size: 9px;
        }
    }
}

.example-card .container-img{
    height: 56%;
    background-color: rgb(183, 180, 180);
    img{
        width: 100%;
        object-fit: cover;
        height: 100%;
    }
    .stage-badge{
        position: absolute;
        top: 0;
        left: 0;
        font-size: 0.5rem;
        background-color: rgba(0, 0, 0, 0.234);
        border-radius: var(--card-border);
        color: white;
        font-weight: bold;
        .stage-dot{
            width: 7px;
            height: 7px;
        }
    }
    .prop-ref{
        position: absolute;
        top: 3px;
        right: 5px;
        background-color: black;
        color: white;
        font-size: 0.5rem;
        border-radius: var(--card-border);
    }
}
.example-card .container-info{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 89px;
    position: relative;
    padding-left: 4px;
    .title{
        font-size: 0.65rem;
        align-self: flex-start;
        font-weight: bold;
    }
    .property-info {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 0;
        width: 100%;
        height: 100%;
        .price{
            font-size: 0.65rem;
        }
        .grid-templates {
            display: grid;
            grid-template-columns: repeat(2, minmax(auto, max-content));
            justify-content: start;
            row-gap: 2px;
            column-gap:3px ;
        span {
            font-size: 0.45rem;
            font-weight: 600;
            color: gray;
            line-height: 1.1;
            white-space: nowrap; 
        }
        }
    }
}
.example-card .container-info .title::after{
    position: absolute;
    content: '';
    height: 1px;
    width: 92%;
    background-color: var(--line-hor);
    top: 17px;
    left: 4px;
    transition: width 0.2s ease;
}
.example-card.vertical .container-info{
    display: flex;
    flex-direction: column;
}
.example-card.horizontal:hover{
    transform: translateX(10px);
}
.example-card.vertical:hover{
    transform: translateY(-10px);
}
.example-card:hover .container-info .title::after{
    width: 67%;
}
.pagination-container {
    display: inline-flex; 
    gap: 4px; 
    align-items: center;
}
.pagination-preview{
    margin-top: 30px; 
    text-align: center;
}
.pagination {
  font-weight: 400;
  color: #666;
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: var(--card-border);
  transition: all 0.25s ease;
  user-select: none;
}

.pagination.arrowPreview {
  color: var(--current-page-color);
  font-size: 1rem;
  opacity: 0.7;
  position: relative !important;
}

.pagination.arrowPreview:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.pagination.current {
  min-width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--card-border);
  background: var(--current-page-color);
  color: white !important;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pagination.other {
  color: var(--current-page-color);
}

.pagination.other:hover {
  background: rgba(122, 162, 46, 0.1);
  background-color: color-mix(in srgb, var(--current-page-color), white 70%);
  transform: translateY(-1px);
  color: white !important;
  font-weight:600;
}

.pagination-info {
  display: block;
  text-align: center;
  margin-top: 0.4rem;
  color: #777;
  font-size: 0.9rem;
}