/* Property Showcase Slider Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.psc-slider-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --psc-background: hsl(0, 0%, 98%);
    --psc-foreground: hsl(220, 20%, 15%);
    --psc-card: hsl(0, 0%, 100%);
    --psc-card-foreground: hsl(220, 20%, 15%);
    --psc-primary: hsl(221, 83%, 53%);
    --psc-primary-foreground: hsl(0, 0%, 100%);
    --psc-muted-foreground: hsl(220, 10%, 50%);
    --psc-border: hsl(220, 13%, 91%);
    --psc-slider-dotted-line: hsl(220, 10%, 75%);
}
.psc-slider-container {
    font-family: 'Inter', sans-serif;
    background-color: var(--psc-background);
    color: var(--psc-foreground);
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    transition: opacity 0.3s ease;
}
/* Close button with CSS X icon */
.close-btn {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 10002;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

.close-btn::before,
.close-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background-color: #fff;
  transform-origin: center;
}

.close-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.psc-slider-container.psc-loading {
    pointer-events: none;
}

/* Skeleton Loader */
.psc-slider-container.psc-loading .psc-main-image-section,
.psc-slider-container.psc-loading .psc-thumbnail-item img,
.psc-slider-container.psc-loading .psc-property-title,
.psc-slider-container.psc-loading .psc-stat-value,
.psc-slider-container.psc-loading .psc-content-text {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        90deg,
        hsl(220, 13%, 91%) 0%,
        hsl(220, 13%, 95%) 50%,
        hsl(220, 13%, 91%) 100%
    );
    background-size: 200% 100%;
    animation: psc-skeleton-wave 1.8s ease-in-out infinite;
    color: transparent !important;
    user-select: none;
    border-radius: 8px;
}

.psc-slider-container.psc-loading .psc-thumbnail-item img {
    border-radius: 12px;
}

.psc-slider-container.psc-loading .psc-main-image {
    opacity: 0.3;
}

.psc-slider-container.psc-loading .psc-property-title,
.psc-slider-container.psc-loading .psc-stat-value,
.psc-slider-container.psc-loading .psc-content-text {
    background: linear-gradient(
        90deg,
        hsl(220, 13%, 91%) 0%,
        hsl(220, 13%, 95%) 50%,
        hsl(220, 13%, 91%) 100%
    );
    background-size: 200% 100%;
    animation: psc-skeleton-wave 1.8s ease-in-out infinite;
}

.psc-slider-container.psc-loading .psc-property-title {
    height: 2rem;
    width: 70%;
    display: inline-block;
}

.psc-slider-container.psc-loading .psc-stat-value {
    height: 1.25rem;
    width: 100px;
    display: inline-block;
}

.psc-slider-container.psc-loading .psc-content-text {
    height: 4rem;
    width: 100%;
    display: block;
}

.psc-slider-container.psc-loading .psc-content-text * {
    opacity: 0;
}

@keyframes psc-skeleton-wave {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.psc-slider-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
}

/* Thumbnails Section */
.psc-thumbnails-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.psc-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--psc-primary);
    color: var(--psc-primary-foreground);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.psc-nav-btn:hover {
    background-color: hsl(221, 83%, 45%);
    transform: scale(1.05);
}

.psc-nav-btn svg {
    width: 20px;
    height: 20px;
}

.psc-thumbnails-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
    height: calc(96px * 3 + 0.75rem * 2); /* Show 3 thumbnails at a time */
}

.psc-thumbnail-item {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.psc-thumbnail-item.psc-hidden {
    display: none;
}

.psc-thumbnail-item {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.psc-thumbnail-item:hover {
    border-color: hsla(221, 83%, 53%, 0.5);
}

.psc-thumbnail-item.active {
    border-color: var(--psc-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.psc-thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Image Section */
.psc-main-image-section {
    position: relative;
    width: 550px;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.psc-main-image-wrapper {
    position: absolute;
    inset: 0;
    transition: opacity 0.3s ease;
}

.psc-main-image-wrapper.animating {
    opacity: 0;
}

.psc-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.psc-main-video-display {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.psc-video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.psc-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 35, 45, 0.6), transparent, transparent);
    pointer-events: none;
}

.psc-video-button {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.psc-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--psc-card);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.psc-play-btn:hover {
    transform: scale(1.05);
}

.psc-play-btn svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
    fill: var(--psc-foreground);
}

.psc-video-label {
    color: var(--psc-card);
    font-weight: 500;
    font-size: 14px;
}

.psc-location-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background-color: var(--psc-primary);
    color: var(--psc-primary-foreground);
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
}

.psc-top-overlay-text {
    position: absolute;
    top: 16px;
    right: 16px;
    color: rgba(255, 255, 255, 0.9);
    text-align: right;
    z-index: 10;
}

.psc-top-overlay-text div {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

/* Details Section */
.psc-details-section {
    flex: 1;
    min-width: 0;
    cursor: grab;
    user-select: none;
}

.psc-details-section.dragging {
    cursor: grabbing;
}

.psc-details-section.dragging * {
    user-select: none;
    pointer-events: none;
}

.psc-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.psc-property-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--psc-foreground);
    line-height: 1.3;
    transition: opacity 0.3s ease;
}

.psc-thumbnail-item {
    cursor: pointer;
    position: relative;
}

.psc-thumbnail-item::after {
    content: '👁';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 28px;
}

.psc-thumbnail-item:hover::after {
    background: rgba(0, 0, 0, 0.6);
    opacity: 1;
}

.psc-slide-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.psc-slide-nav .psc-nav-btn {
    text-decoration: none;
    display: flex;
    cursor: pointer;
}

/* Stats Row */
.psc-stats-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.psc-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.psc-stat-label {
    font-size: 14px;
    color: var(--psc-muted-foreground);
    white-space: nowrap;
}

.psc-stat-value-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.psc-dotted-line {
    min-width: 60px;
    height: 2px;
    background-image: linear-gradient(to right, var(--psc-slider-dotted-line) 33%, transparent 0%);
    background-size: 6px 2px;
    background-repeat: repeat-x;
}

.psc-stat-value {
    font-weight: 600;
    color: var(--psc-foreground);
    font-size: 14px;
    white-space: nowrap;
}

/* Content Grid */
.psc-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.psc-content-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--psc-foreground);
    margin-bottom: 8px;
}

.psc-content-text {
    font-size: 14px;
    color: var(--psc-muted-foreground);
    line-height: 1.6;
}

.psc-content-text ul,
.psc-content-text ol {
    margin-left: 1.2rem;
    list-style-position: outside;
}

.psc-content-text li {
    margin-bottom: 4px;
}

/* Lightbox */
.psc-lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.psc-lightbox.active {
    display: flex;
    opacity: 1;
}

.psc-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.psc-lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.psc-lightbox.active .psc-lightbox-image {
    transform: scale(1);
}

.psc-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10002;
}

.psc-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.psc-lightbox-close svg {
    width: 24px;
    height: 24px;
    color: white;
}

.psc-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.psc-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.psc-lightbox-nav svg {
    width: 24px;
    height: 24px;
    color: white;
}

.psc-lightbox-prev {
    left: -60px;
}

.psc-lightbox-next {
    right: -60px;
}

.psc-lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Video Modal */
.psc-video-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.psc-video-modal.active {
    display: flex;
    opacity: 1;
}

.psc-video-modal-content {
    position: relative;
    width: 90vw;
    max-width: 1200px;
}

.psc-video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.psc-video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.psc-video-modal-close svg {
    width: 24px;
    height: 24px;
    color: white;
}

.psc-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.psc-video-iframe,
.psc-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}
/* Pagination Dots */
.psc-pagination-dots {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 0 0.5rem;
}

.psc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--psc-border);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.psc-dot:hover {
    background-color: var(--psc-muted-foreground);
    transform: scale(1.2);
}

.psc-dot.active {
    background-color: var(--psc-primary);
    width: 10px;
    height: 10px;
    transform: scale(1);
}
/* Responsive */
@media (max-width: 1024px) {
    .psc-slider-wrapper {
        flex-direction: column;
    }
    
    .psc-pagination-dots {
        display: flex;
    }

    .psc-thumbnails-section {
        flex-direction: row;
        justify-content: flex-start;
        order: -1;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.5rem 0;
    }

    .psc-thumbnails-container {
        flex-direction: row;
        height: auto;
        max-height: none;
        gap: 0.5rem;
    }

    .psc-thumbnail-item {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }
    
    .psc-thumbnail-item.psc-hidden {
        display: flex;
    }

    .psc-thumb-up,
    .psc-thumb-down {
        display: none;
    }

    .psc-main-image-section {
        width: 100%;
        height: 350px;
        max-height: 50vh;
    }
    
    .psc-details-section {
        width: 100%;
    }

    .psc-content-grid {
        grid-template-columns: 1fr;
    }

    .psc-stats-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .psc-stat-item {
        width: 100%;
    }
    
    .psc-stat-value-row {
        flex: 1;
    }

    .psc-lightbox-prev {
        left: 10px;
    }

    .psc-lightbox-next {
        right: 10px;
    }
}

@media (max-width: 640px) {
    .psc-slider-container {
        padding: 1rem;
    }

    .psc-slider-wrapper {
        gap: 1rem;
    }

    .psc-thumbnail-item {
        width: 70px;
        height: 70px;
    }

    .psc-main-image-section {
        height: 280px;
        border-radius: 12px;
    }

    .psc-property-title {
        font-size: 1.25rem;
    }
    
    .psc-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .psc-slide-nav {
        width: 100%;
        justify-content: flex-end;
    }

    .psc-top-overlay-text div {
        font-size: 14px;
    }
    
    .psc-stat-label {
        font-size: 0.875rem;
    }
    
    .psc-stat-value {
        font-size: 0.875rem;
    }
    
    .psc-content-title {
        font-size: 1rem;
    }
    
    .psc-content-text {
        font-size: 0.875rem;
    }
}
