/* Florida Steel House Widget Styles */

.fsh-house-details {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Meta Items */

.fsh-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.fsh-meta-item:last-of-type {
    border-bottom: none;
}

.fsh-meta-item:hover {
    transform: translateX(5px);
}

.fsh-meta-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
    min-width: 160px;
}

.fsh-meta-value {
    color: #34495e;
    font-size: 15px;
    flex: 1;
}

/* Price Styling */

.fsh-price {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: none;
}

.fsh-price .fsh-meta-label,
.fsh-price .fsh-meta-value {
    color: #ffffff;
    font-size: 18px;
}

.fsh-price .fsh-meta-value {
    font-weight: 700;
    font-size: 24px;
}

/* Special Offers */

.fsh-special-offers {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: none;
    flex-direction: column;
    align-items: flex-start;
}

.fsh-special-offers .fsh-meta-label {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 10px;
}

.fsh-special-offers .fsh-meta-value {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
}

.fsh-special-offers .fsh-meta-value p {
    margin: 0 0 10px 0;
}

.fsh-special-offers .fsh-meta-value p:last-child {
    margin-bottom: 0;
}

/* YouTube Container */

.fsh-youtube-container {
    margin: 30px 0;
}

.fsh-youtube-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.fsh-youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Gallery Grid */

.fsh-gallery-grid {
    display: grid;
    gap: 15px;
}

.fsh-gallery-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.fsh-gallery-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.fsh-gallery-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.fsh-gallery-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.fsh-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fsh-gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.fsh-gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.fsh-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fsh-gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox Overlay */

.fsh-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.fsh-lightbox-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fsh-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.fsh-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.fsh-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 36px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.fsh-lightbox-close:hover {
    transform: rotate(90deg);
}

.fsh-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.fsh-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.fsh-lightbox-prev {
    left: 20px;
}

.fsh-lightbox-next {
    right: 20px;
}

/* Responsive */

@media (max-width: 1024px) {
    .fsh-gallery-cols-5 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .fsh-house-details {
        padding: 20px;
    }

    .fsh-meta-label {
        min-width: 120px;
        font-size: 14px;
    }

    .fsh-meta-value {
        font-size: 14px;
    }

    .fsh-gallery-cols-4,
    .fsh-gallery-cols-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    .fsh-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .fsh-meta-item {
        flex-direction: column;
        gap: 5px;
    }

    .fsh-meta-label {
        min-width: auto;
    }

    .fsh-gallery-cols-2,
    .fsh-gallery-cols-3,
    .fsh-gallery-cols-4,
    .fsh-gallery-cols-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .fsh-price .fsh-meta-value {
        font-size: 20px;
    }
}

/* House Grid Widget */

.fsh-house-grid {
    display: grid;
    gap: 30px;
    width: 100%;
}

.fsh-grid-item {
    width: 100%;
}

.fsh-house-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fsh-house-card:hover {
    transform: translateY(-5px);
}

.fsh-card-link {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fsh-house-thumb {
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
}

.fsh-house-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.fsh-house-card:hover .fsh-house-thumb img {
    transform: scale(1.05);
}

.fsh-house-meta-bars {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.fsh-meta-bar {
    padding: 15px 10px;
    text-align: center;
    font-weight: 700;
    font-size: 22px;
    text-transform: capitalize;
    margin-bottom: 0;
    line-height: 1;
    border-bottom: 2px solid #fff;
}

.fsh-meta-bar:last-child {
    border-bottom: none;
}

.fsh-bar-bed-bath {
    background-color: #e31e24;
    color: #fff;
}

.fsh-bar-area {
    background-color: #ffcc00;
    color: #fff;
}

.fsh-bar-price {
    background-color: #662d91;
    color: #fff;
}

.fsh-bar-model-name {
    background-color: #0073aa;
    color: #fff;
}

/* Grid Columns Utility */
.elementor-widget-fsh_house_grid.fsh-grid-cols-1 .fsh-house-grid {
    grid-template-columns: repeat(1, 1fr);
}

.elementor-widget-fsh_house_grid.fsh-grid-cols-2 .fsh-house-grid {
    grid-template-columns: repeat(2, 1fr);
}

.elementor-widget-fsh_house_grid.fsh-grid-cols-3 .fsh-house-grid {
    grid-template-columns: repeat(3, 1fr);
}

.elementor-widget-fsh_house_grid.fsh-grid-cols-4 .fsh-house-grid {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .elementor-widget-fsh_house_grid.fsh-grid-cols-tablet-1 .fsh-house-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .elementor-widget-fsh_house_grid.fsh-grid-cols-tablet-2 .fsh-house-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .elementor-widget-fsh_house_grid.fsh-grid-cols-tablet-3 .fsh-house-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .elementor-widget-fsh_house_grid.fsh-grid-cols-tablet-4 .fsh-house-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .elementor-widget-fsh_house_grid.fsh-grid-cols-mobile-1 .fsh-house-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .elementor-widget-fsh_house_grid.fsh-grid-cols-mobile-2 .fsh-house-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .elementor-widget-fsh_house_grid.fsh-grid-cols-mobile-3 .fsh-house-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .elementor-widget-fsh_house_grid.fsh-grid-cols-mobile-4 .fsh-house-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .fsh-meta-bar {
        font-size: 18px;
        padding: 12px 10px;
    }
}