/**
 * Great Sky Homes - Frontend Styles
 *
 * @package Great_Sky_Homes
 */

/* ==========================================================================
   Homes Widget Container
   ========================================================================== */

.gsh-homes-widget {
    width: 100%;
}

/* ==========================================================================
   Filter Bar
   ========================================================================== */

.gsh-filters {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.gsh-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.gsh-filter-group {
    flex: 1;
    min-width: 150px;
}

.gsh-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.gsh-filter-group select,
.gsh-filter-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.gsh-filter-group select:focus,
.gsh-filter-group input:focus {
    outline: none;
    border-color: #666;
}

.gsh-filter-price .gsh-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gsh-filter-price input {
    width: 100px;
}

.gsh-filter-submit {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    align-items: center;
}

.gsh-filter-button {
    padding: 10px 24px;
    background: #007680;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gsh-filter-button:hover {
    background: #005a63;
}

/* Speckle layer for filter button */
.gsh-filter-button.has-speckles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
    background-size: 200px 200px;
    background-repeat: repeat;
}

.gsh-filter-button span {
    position: relative;
    z-index: 2;
}

.gsh-clear-filters {
    color: #666;
    font-size: 13px;
    text-decoration: none;
}

.gsh-clear-filters:hover {
    color: #333;
    text-decoration: underline;
}

/* ==========================================================================
   Results Header
   ========================================================================== */

.gsh-homes-count {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

/* ==========================================================================
   Grid Layout
   ========================================================================== */

.gsh-homes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ==========================================================================
   List Layout
   ========================================================================== */

.gsh-homes-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gsh-homes-list .gsh-home-card {
    display: flex;
    flex-direction: row;
}

.gsh-homes-list .gsh-home-card-link {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.gsh-homes-list .gsh-home-card-image {
    width: 300px;
    min-width: 300px;
    height: 200px;
}

.gsh-homes-list .gsh-home-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ==========================================================================
   Home Card
   ========================================================================== */

.gsh-home-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gsh-home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.gsh-home-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Card Image */
.gsh-home-card-image {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: #e9ecef;
}

/* Sold Badge */
.gsh-sold-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    background: #d63638;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

/* Featured Badge */
.gsh-featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    background: #f0b849;
    color: #333;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

/* Builder Logo */
.gsh-builder-logo {
    position: absolute;
    bottom: 15px;
    right: 15px;
    max-width: 80px;
    max-height: 30px;
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Card Content */
.gsh-home-card-content {
    padding: 20px;
}

/* Price */
.gsh-home-price {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

/* Address */
.gsh-home-address {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.gsh-home-city {
    display: block;
    font-size: 14px;
    color: #666;
}

/* Stats */
.gsh-home-stats {
    display: flex;
    gap: 15px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #666;
}

.gsh-home-stats .gsh-stat strong {
    color: #333;
}

/* Button - Springer Style - Typography controlled by Elementor */
.gsh-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    padding: 12px 24px;
    background: #007680;
    color: #fff;
    /* Default font styles - Elementor typography controls will override */
    font-size: var(--gsh-btn-font-size, 14px);
    font-weight: var(--gsh-btn-font-weight, 600);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
}

.gsh-home-button .gsh-btn-text {
    display: inline-block;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    will-change: transform;
}

/* Buttons with icons need extra right padding */
.gsh-home-button.has-icon {
    padding-right: 48px;
}

.gsh-home-button .gsh-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 16px;
    opacity: 0;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    z-index: 2;
    transition: all 0.3s ease;
    will-change: transform, opacity;
    width: 16px;
    height: 16px;
}

.gsh-home-button:hover .gsh-btn-text {
    transform: translate3d(-0.5rem, 0, 0);
}

.gsh-home-button:hover .gsh-btn-icon {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.gsh-home-button .gsh-btn-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Speckle layer for archive button */
.gsh-home-button.has-speckles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
    background-image: var(--gsh-speckle-bg);
    background-size: 200px 200px;
    background-repeat: repeat;
}

/* No color change on hover - only arrow animation */
.gsh-home-card:hover .gsh-home-button {
    text-decoration: none;
}

/* Icon animation on card hover */
.gsh-home-card:hover .gsh-home-button.has-icon .gsh-btn-text {
    transform: translate3d(-0.5rem, 0, 0);
}

.gsh-home-card:hover .gsh-home-button.has-icon .gsh-btn-icon {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Sold Card Styles */
.gsh-home-sold .gsh-home-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.gsh-pagination {
    margin-top: 40px;
    text-align: center;
}

.gsh-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.gsh-pagination .page-numbers:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.gsh-pagination .page-numbers.current {
    background: #333;
    border-color: #333;
    color: #fff;
}

/* ==========================================================================
   No Results
   ========================================================================== */

.gsh-no-homes {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.gsh-no-homes p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1024px) {
    .gsh-homes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gsh-filter-group {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .gsh-homes-grid {
        grid-template-columns: 1fr;
    }

    .gsh-homes-list .gsh-home-card-link {
        flex-direction: column;
    }

    .gsh-homes-list .gsh-home-card-image {
        width: 100%;
        min-width: auto;
    }

    .gsh-filters-row {
        flex-direction: column;
    }

    .gsh-filter-group {
        width: 100%;
    }

    .gsh-filter-price .gsh-price-inputs {
        flex: 1;
    }

    .gsh-filter-price input {
        flex: 1;
        width: auto;
    }

    .gsh-filter-submit {
        width: 100%;
        justify-content: space-between;
    }

    .gsh-filter-button {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .gsh-home-stats {
        flex-wrap: wrap;
        gap: 10px;
    }

    .gsh-home-price {
        font-size: 20px;
    }
}

/* ==========================================================================
   Home Detail Widget
   ========================================================================== */

.gsh-home-detail {
    width: 100%;
}

/* Layout: Standard (Side by Side) */
.gsh-detail-layout-standard .gsh-detail-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.gsh-detail-layout-standard .gsh-detail-gallery-wrap {
    flex-shrink: 0;
}

.gsh-detail-layout-standard .gsh-detail-content-wrap {
    flex: 1;
    min-width: 0;
}

/* Layout: Full Width */
.gsh-detail-layout-full-width .gsh-detail-gallery {
    margin-bottom: 30px;
}

/* Layout: Stacked */
.gsh-detail-layout-stacked .gsh-detail-gallery {
    margin-bottom: 30px;
}

/* ==========================================================================
   Gallery/Map Toggle
   ========================================================================== */

/* Gallery and Map views inside main image */
.gsh-detail-gallery-view,
.gsh-detail-map-view {
    display: none;
    width: 100%;
    height: 100%;
}

.gsh-detail-gallery-view.active,
.gsh-detail-map-view.active {
    display: block;
}

.gsh-detail-gallery-view {
    position: relative;
}

/* Map view styling */
.gsh-detail-map-view {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    z-index: 1;
}

/* Leaflet popup styling */
.gsh-detail-map-view .leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
}

.gsh-detail-map-view .leaflet-popup-content {
    margin: 12px 15px;
    font-size: 14px;
    line-height: 1.5;
}

/* View Map button in thumbnail row */
.gsh-detail-map-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gsh-detail-map-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.gsh-detail-map-btn svg {
    flex-shrink: 0;
}

.gsh-detail-map-btn span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gsh-detail-gallery {
    position: relative;
}

.gsh-detail-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

.gsh-detail-badge {
    display: inline-block;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    pointer-events: auto;
}

.gsh-detail-badge-featured {
    background: #f0b849;
    color: #fff;
}

.gsh-detail-badge-sold {
    background: #d63638;
    color: #fff;
    margin-left: auto;
}

/* Main Image */
.gsh-detail-main-image {
    position: relative;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    background: #e9ecef;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.gsh-detail-main-image img,
.gsh-detail-main-image img.gsh-detail-active-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center !important;
    transition: opacity 0.3s ease;
    display: block;
    cursor: pointer;
}

/* Gallery Navigation Arrows */
.gsh-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.gsh-gallery-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.gsh-gallery-nav-prev {
    left: 15px;
}

.gsh-gallery-nav-next {
    right: 15px;
}

/* Image Counter */
.gsh-gallery-counter {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    z-index: 10;
}

/* Thumbnails */
.gsh-detail-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.gsh-detail-thumbnail {
    flex: 1;
    height: 80px;
    background-size: cover;
    background-position: center;
    background-color: #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.gsh-detail-thumbnail:hover {
    opacity: 1;
}

.gsh-detail-thumbnail.active {
    opacity: 1;
    border-color: #2c3e50;
}

.gsh-detail-more-images {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    opacity: 1;
}

.gsh-detail-more-images:hover {
    background: rgba(0, 0, 0, 0.85);
}

/* Main image link should fill container */
.gsh-detail-main-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .gsh-gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Grid Gallery */
.gsh-detail-grid-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.gsh-detail-grid-image {
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gsh-detail-grid-image:hover {
    transform: scale(1.02);
}

/* Hidden Elementor Lightbox Gallery - visually hidden but accessible to Elementor */
.gsh-elementor-lightbox-gallery {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gsh-elementor-lightbox-gallery img {
    width: 1px;
    height: 1px;
}

/* ==========================================================================
   Content Box
   ========================================================================== */

.gsh-detail-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Header section - Price & Address */
.gsh-detail-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* Price */
.gsh-detail-price {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.2;
}

/* Address */
.gsh-detail-address {
    margin-bottom: 0;
}

.gsh-detail-street {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.gsh-detail-city-state {
    font-size: 15px;
    color: #666;
}

/* ==========================================================================
   Stats
   ========================================================================== */

.gsh-detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.gsh-detail-stat {
    flex: 1;
    min-width: 80px;
    text-align: center;
}

.gsh-detail-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.gsh-detail-stat-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Move-in Date */
.gsh-detail-move-in {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: #e8f5e9;
    border-radius: 6px;
    margin-bottom: 20px;
}

.gsh-detail-move-in-label {
    font-weight: 600;
    color: #2e7d32;
}

.gsh-detail-move-in-date {
    color: #2e7d32;
}

/* Description */
.gsh-detail-description {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

.gsh-detail-description p {
    margin-bottom: 1em;
}

.gsh-detail-description p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Action Buttons - Springer Style
   ========================================================================== */

.gsh-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

/* Base button styles - Springer style */
/* Base button - typography controlled by Elementor */
.gsh-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    /* Default font styles - Elementor typography controls will override */
    font-size: var(--gsh-btn-font-size, 15px);
    font-weight: var(--gsh-btn-font-weight, 600);
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Button text - slides left on hover */
.gsh-detail-btn .gsh-btn-text {
    display: inline-block;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    will-change: transform;
}

/* Buttons with icons need extra right padding */
.gsh-detail-btn.has-icon {
    padding-right: 48px;
}

.gsh-detail-btn.has-icon:hover .gsh-btn-text {
    transform: translate3d(-0.5rem, 0, 0);
}

/* Icon - hidden by default, slides in from right */
.gsh-detail-btn .gsh-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 16px;
    opacity: 0;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    z-index: 2;
    transition: all 0.3s ease;
    will-change: transform, opacity;
    width: 20px;
    height: 20px;
}

.gsh-detail-btn.has-icon:hover .gsh-btn-icon {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.gsh-detail-btn .gsh-btn-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Speckle layer */
.gsh-detail-btn.has-speckles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
    background-image: var(--gsh-speckle-bg);
    background-size: 200px 200px;
    background-repeat: repeat;
}

/* Primary button - no color change on hover, only arrow animation */
.gsh-detail-btn-primary {
    background: #007680;
    color: #fff;
    border-color: #007680;
}

.gsh-detail-btn-primary:hover {
    text-decoration: none;
}

/* Secondary button (outline) - no color change on hover, only arrow animation */
.gsh-detail-btn-secondary {
    background: transparent;
    color: #007680;
    border-color: #007680;
}

.gsh-detail-btn-secondary:hover {
    text-decoration: none;
}

/* Secondary buttons should never have speckles */
.gsh-detail-btn-secondary.has-speckles::before {
    display: none;
}

/* ==========================================================================
   Builder Info Box
   ========================================================================== */

.gsh-detail-builder-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 25px;
}

.gsh-detail-builder-logo {
    max-width: 150px;
    max-height: 60px;
    object-fit: contain;
}

.gsh-detail-builder-info {
    flex: 1;
}

.gsh-detail-builder-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.gsh-detail-subdivision {
    font-size: 14px;
    color: #666;
}

/* ==========================================================================
   Home Detail Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .gsh-detail-layout-standard .gsh-detail-row {
        flex-direction: column;
    }

    .gsh-detail-layout-standard .gsh-detail-gallery-wrap {
        width: 100% !important;
    }

    .gsh-detail-main-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .gsh-detail-main-image {
        height: 300px;
        border-radius: 6px;
    }

    .gsh-detail-thumbnails {
        gap: 8px;
    }

    .gsh-detail-thumbnail {
        height: 60px;
    }

    .gsh-detail-content {
        padding: 20px;
    }

    .gsh-detail-price {
        font-size: 28px;
    }

    .gsh-detail-street {
        font-size: 18px;
    }

    .gsh-detail-stats {
        padding: 15px;
        gap: 15px;
    }

    .gsh-detail-stat-value {
        font-size: 22px;
    }

    .gsh-detail-stat-label {
        font-size: 11px;
    }

    .gsh-detail-actions {
        flex-direction: column;
        gap: 10px;
    }

    .gsh-detail-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Ensure icon animation still works on mobile full-width buttons */
    .gsh-detail-btn.has-icon:hover .gsh-btn-text {
        transform: translate3d(-0.5rem, 0, 0);
    }

    .gsh-detail-btn.has-icon:hover .gsh-btn-icon {
        transform: translateY(-50%) translateX(0);
    }

    .gsh-detail-builder-box {
        flex-direction: column;
        text-align: center;
    }

    .gsh-detail-grid-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Map Widget
   ========================================================================== */

.gsh-map-wrapper {
    width: 100%;
}

.gsh-map-container {
    width: 100%;
    height: 400px;
    z-index: 1;
}

.gsh-map-popup {
    font-family: inherit;
    line-height: 1.5;
}

/* Override Leaflet default styles */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content {
    margin: 12px 15px;
    font-size: 14px;
}

@media (max-width: 480px) {
    .gsh-detail-main-image {
        height: 250px;
    }

    .gsh-detail-badges {
        top: 10px;
        left: 10px;
        right: 10px;
    }

    .gsh-detail-badge {
        padding: 6px 12px;
        font-size: 10px;
    }

    .gsh-detail-thumbnails {
        display: none;
    }

    .gsh-detail-stats {
        flex-direction: column;
        gap: 10px;
    }

    .gsh-detail-stat {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        min-width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid #e9ecef;
    }

    .gsh-detail-stat:last-child {
        border-bottom: none;
    }

    .gsh-detail-stat-value {
        font-size: 20px;
        order: 2;
    }

    .gsh-detail-stat-label {
        order: 1;
        margin-top: 0;
    }
}

/* ==========================================================================
   Featured Homes Slider Widget
   ========================================================================== */

.gsh-featured-slider-wrapper {
    width: 100%;
}

.gsh-featured-slider {
    position: relative;
    overflow: hidden;
    height: 600px; /* Fixed height for consistent slides */
}

.gsh-featured-slider .swiper-wrapper {
    height: 100%;
}

.gsh-featured-slider .swiper-slide {
    height: 100%;
}

/* Property Slide - matches Springer slider layout */
.gsh-slider-slide {
    display: flex;
    width: 100%;
    height: 100%;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Slider Image - 40% width like Springer */
.gsh-slider-image {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.gsh-slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Gradient overlay on image */
.gsh-slider-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, #000000, transparent);
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

/* Image placeholder when no featured image */
.gsh-slider-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Builder Logo - centered at bottom of image, no white box */
.gsh-slider-builder-logo {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
}

.gsh-slider-builder-logo img {
    position: static;
    max-width: 150px;
    height: auto;
    object-fit: contain;
}

/* Slider Details Panel - 60% width like Springer */
.gsh-slider-details {
    flex: 0 0 60%;
    background: #2A7A7F;
    color: #FFFFFF;
    padding: 100px 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

/* Price Badge - absolutely positioned top-right of details panel */
.gsh-slider-price {
    position: absolute;
    top: 0;
    right: 0;
    background: #E8D4B8;
    color: #2A7A7F;
    padding: 20px 40px;
    font-size: 32px;
    font-weight: 600;
    font-family: Georgia, serif;
}

/* Address and Description Box */
.gsh-slider-address-description {
    margin-bottom: 30px;
}

.gsh-slider-address h2 {
    font-size: 32px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.gsh-slider-address p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.gsh-slider-description {
    margin-top: 20px;
    max-width: 500px;
    max-height: 80px; /* Limit to ~3 lines */
    overflow: hidden;
}

.gsh-slider-description p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Property Stats - centered with separators */
.gsh-slider-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.gsh-slider-stat {
    text-align: center;
    position: relative;
}

.gsh-slider-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

.gsh-slider-stat .stat-value {
    display: block;
    font-size: 36px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    font-family: Georgia, serif;
}

.gsh-slider-stat .stat-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* Slider Buttons - both outline style like Springer */
.gsh-slider-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: auto;
}

.gsh-slider-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* Both buttons are outline style */
    border: 2px solid #FFFFFF;
    background: transparent;
    color: #FFFFFF;
}

.gsh-slider-button .button-text {
    display: inline-block;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    will-change: transform;
}

.gsh-slider-button.has-icon {
    padding-right: 48px;
}

.gsh-slider-button .button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 16px;
    opacity: 0;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    z-index: 2;
    transition: all 0.3s ease;
    will-change: transform, opacity;
    width: 16px;
    height: 16px;
}

.gsh-slider-button.has-icon:hover .button-text {
    transform: translate3d(-0.5rem, 0, 0);
}

.gsh-slider-button.has-icon:hover .button-icon {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.gsh-slider-button .button-icon svg {
    width: 100%;
    height: 100%;
}

/* Primary Button - same outline style */
.gsh-slider-button.primary {
    border-color: #FFFFFF;
    background: transparent;
    color: #FFFFFF;
}

.gsh-slider-button.primary:hover {
    text-decoration: none;
}

/* Secondary Button - same outline style */
.gsh-slider-button.secondary {
    border-color: #FFFFFF;
    background: transparent;
    color: #FFFFFF;
}

.gsh-slider-button.secondary:hover {
    text-decoration: none;
}

/* Pagination Dots - vertical on left side of image like Springer */
.gsh-featured-slider-wrapper .swiper-pagination {
    position: absolute !important;
    bottom: 40px !important;
    left: 40px !important;
    width: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
    z-index: 10;
}

.gsh-featured-slider-wrapper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: transparent;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    opacity: 0.7;
    margin: 0 !important;
    transition: all 0.3s ease;
}

.gsh-featured-slider-wrapper .swiper-pagination-bullet-active {
    background-color: #FFFFFF;
    border-color: #FFFFFF;
    opacity: 1;
}

/* No Homes Message */
.gsh-slider-no-homes {
    padding: 60px 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-size: 16px;
}

/* ==========================================================================
   Featured Homes Slider Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .gsh-featured-slider {
        height: auto; /* Allow auto height on tablet/mobile when stacked */
    }

    .gsh-slider-slide {
        flex-direction: column;
    }

    .gsh-slider-image {
        flex: none;
        height: 350px;
    }

    .gsh-slider-details {
        flex: none;
        padding: 80px 40px 50px;
    }

    .gsh-slider-price {
        font-size: 24px;
        padding: 15px 30px;
    }

    .gsh-slider-address h2 {
        font-size: 26px;
    }

    .gsh-slider-stats {
        gap: 30px;
    }

    .gsh-slider-stat .stat-value {
        font-size: 28px;
    }

    /* Move pagination to bottom center on tablet */
    .gsh-featured-slider-wrapper .swiper-pagination {
        position: absolute !important;
        bottom: 20px !important;
        left: 50% !important;
        transform: translateX(-50%);
        flex-direction: row !important;
        gap: 12px;
    }

    .gsh-slider-builder-logo {
        bottom: 60px;
    }
}

@media (max-width: 768px) {
    .gsh-slider-image {
        min-height: 280px;
    }

    .gsh-slider-details {
        padding: 60px 30px 40px;
    }

    .gsh-slider-price {
        font-size: 20px;
        padding: 12px 24px;
    }

    .gsh-slider-address h2 {
        font-size: 22px;
    }

    .gsh-slider-stats {
        flex-wrap: wrap;
        gap: 20px;
        padding: 20px 0;
    }

    .gsh-slider-stat {
        flex: 0 0 calc(50% - 15px);
    }

    .gsh-slider-stat:not(:last-child)::after {
        display: none;
    }

    .gsh-slider-stat .stat-value {
        font-size: 24px;
    }

    .gsh-slider-buttons {
        flex-direction: column;
        width: 100%;
    }

    .gsh-slider-button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .gsh-slider-builder-logo {
        bottom: 50px;
    }

    .gsh-slider-builder-logo img {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .gsh-slider-image {
        min-height: 220px;
    }

    .gsh-slider-details {
        padding: 50px 20px 30px;
    }

    .gsh-slider-price {
        font-size: 18px;
        padding: 10px 20px;
    }

    .gsh-slider-address h2 {
        font-size: 18px;
    }

    .gsh-slider-address p {
        font-size: 14px;
    }

    .gsh-slider-description {
        display: none;
    }

    .gsh-slider-stat .stat-value {
        font-size: 20px;
    }

    .gsh-slider-stat .stat-label {
        font-size: 10px;
    }

    .gsh-slider-button {
        padding: 12px 24px;
        font-size: 12px;
    }

    .gsh-slider-builder-logo {
        bottom: 40px;
    }

    .gsh-slider-builder-logo img {
        max-width: 100px;
    }
}

/* ==========================================================================
   Builder Communities Grid Widget
   ========================================================================== */

.gsh-communities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    justify-items: center;
}

.gsh-communities-grid .gsh-community-card:only-child {
    grid-column: 1 / -1;
    max-width: 50%;
}

.gsh-community-card {
    text-align: center;
    position: relative;
    padding-top: 46px;
}

.gsh-community-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 1;
}

.gsh-community-name {
    margin: 0 0 20px 0;
}

.gsh-community-price {
    margin-bottom: 18px;
}

.gsh-community-specs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 18px;
}

.gsh-community-spec {
    padding: 0 12px;
    border-right: 1px solid currentColor;
    line-height: 1;
}

.gsh-community-spec:first-child {
    padding-left: 0;
}

.gsh-community-spec:last-child {
    border-right: none;
}

.gsh-community-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 14px;
}

.gsh-community-phone {
    text-decoration: none;
}

.gsh-community-phone:hover {
    text-decoration: underline;
}

.gsh-community-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    justify-content: center;
    margin-top: 20px;
}

.gsh-community-links a {
    text-decoration: none;
}

.gsh-community-links a::after {
    content: none;
    display: none;
}

.gsh-community-links a:hover {
    text-decoration: none;
}

/* Arrow link animation (matches Springer button pattern) */
.gsh-arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gsh-arrow-link-icon {
    display: inline-flex;
    align-items: center;
    width: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.gsh-arrow-link:hover .gsh-arrow-link-icon {
    transform: translateX(4px);
}

.gsh-arrow-link-icon svg {
    width: 16px;
    height: 16px;
}

/* Builder Communities Responsive */
@media (max-width: 768px) {
    .gsh-communities-grid {
        grid-template-columns: 1fr;
    }

    .gsh-community-card {
        padding: 28px 22px;
    }

    .gsh-community-links {
        flex-direction: column;
        gap: 4px;
    }
}

/* ==========================================================================
   Builder Gallery Marquee Widget
   ========================================================================== */

.gsh-marquee-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.gsh-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.gsh-marquee-item {
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.gsh-marquee-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block;
}
