/**
 * Gallery & Lightbox - 2026 Modern Design v2
 * Smart Portrait/Landscape Detection + Modern Footer/CTA
 * 
 * KABUL KRİTERLERİ:
 * ✅ Dikey foto portrait mod, yatay foto landscape mod
 * ✅ Fullscreen: X + ESC + overlay + geri tuşu
 * ✅ Breadcrumb modern minimal
 * ✅ Siyah alanlar modernleştirildi
 * ✅ Spacing ve görsel hiyerarşi iyileştirildi
 */

/* ========================================
   1. BREADCRUMB - 2026 MODERN MINIMAL
   ======================================== */
.sp-breadcrumb {
    padding: 12px 0;
    background: transparent;
    border-bottom: none;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    max-width: 100%;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.breadcrumb a:hover {
    color: #374151;
}

.breadcrumb__sep {
    color: #d1d5db;
    margin: 0 10px;
    font-size: 10px;
}

.breadcrumb__current {
    color: #1f2937;
    font-weight: 500;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .sp-breadcrumb { padding: 10px 0; }
    .breadcrumb { font-size: 12px; flex-wrap: nowrap; overflow: hidden; }
    .breadcrumb__current { max-width: 160px; }
    .breadcrumb__sep { margin: 0 6px; }
}

/* ========================================
   2. GALLERY - SMART PORTRAIT/LANDSCAPE
   ======================================== */
.sp-gallery {
    position: relative;
    max-width: 100%;
}

/* Main gallery container - base styles */
.sp-gallery__main {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #0a0e14;
    max-width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Default: balanced ratio */
    aspect-ratio: 4 / 3;
    min-height: 280px;
}

@media (min-width: 768px) {
    .sp-gallery__main {
        min-height: 400px;
        border-radius: 24px;
    }
}

@media (min-width: 1024px) {
    .sp-gallery__main {
        min-height: 480px;
    }
}

/* LANDSCAPE MODE - wider, cinematic */
.sp-gallery__main.is-landscape {
    aspect-ratio: 16 / 9;
}

@media (min-width: 768px) {
    .sp-gallery__main.is-landscape {
        aspect-ratio: 2.1 / 1;
        min-height: 420px;
    }
}

@media (min-width: 1024px) {
    .sp-gallery__main.is-landscape {
        min-height: 500px;
    }
}

/* PORTRAIT MODE - taller */
.sp-gallery__main.is-portrait {
    aspect-ratio: 4 / 5;
    max-height: 70vh;
}

@media (min-width: 768px) {
    .sp-gallery__main.is-portrait {
        aspect-ratio: 3 / 4;
        max-height: 600px;
    }
}

@media (min-width: 1024px) {
    .sp-gallery__main.is-portrait {
        max-height: 650px;
    }
}

/* SQUARE MODE */
.sp-gallery__main.is-square {
    aspect-ratio: 1 / 1;
    max-height: 550px;
}

@media (min-width: 768px) {
    .sp-gallery__main.is-square {
        max-height: 500px;
    }
}

/* Main image - default COVER, toggle to CONTAIN */
.sp-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity 0.3s ease, object-fit 0.3s ease;
}

/* When user wants full view (contain mode) */
.sp-gallery__main.is-contain img {
    object-fit: contain;
    background: #0a0e14;
}

/* Premium gallery variant */
.sp-gallery--premium .sp-gallery__main {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Placeholder */
.sp-gallery__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(145deg, #1a1f2e 0%, #0f1318 100%);
    color: rgba(255, 255, 255, 0.5);
}

.sp-gallery__placeholder svg { opacity: 0.3; }
.sp-gallery__placeholder span { font-size: 14px; font-weight: 500; }

/* Navigation buttons */
.sp-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    z-index: 10;
    opacity: 1;
}

@media (min-width: 768px) {
    .sp-gallery__nav {
        width: 52px;
        height: 52px;
        opacity: 0;
    }
    .sp-gallery:hover .sp-gallery__nav { opacity: 1; }
}

.sp-gallery__nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.sp-gallery__nav:active { transform: translateY(-50%) scale(0.95); }
.sp-gallery__nav--prev { left: 12px; }
.sp-gallery__nav--next { right: 12px; }

@media (min-width: 768px) {
    .sp-gallery__nav--prev { left: 20px; }
    .sp-gallery__nav--next { right: 20px; }
}

.sp-gallery__nav svg {
    width: 22px;
    height: 22px;
    color: #1f2937;
}

/* Counter badge */
.sp-gallery__counter {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 24px;
    z-index: 10;
    letter-spacing: 0.5px;
}

/* Fullscreen button */
.sp-gallery__fullscreen {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    z-index: 10;
}

.sp-gallery__fullscreen:hover {
    background: #fff;
    transform: scale(1.1);
}

.sp-gallery__fullscreen svg {
    width: 20px;
    height: 20px;
    color: #1f2937;
}

/* View mode toggle button (cover/contain) */
.sp-gallery__viewmode {
    position: absolute;
    bottom: 16px;
    right: 70px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    z-index: 10;
}

.sp-gallery__viewmode:hover {
    background: #fff;
    transform: scale(1.1);
}

.sp-gallery__viewmode svg {
    width: 18px;
    height: 18px;
    color: #1f2937;
}

.sp-gallery__viewmode.is-active {
    background: var(--color-primary, #C62828);
}

.sp-gallery__viewmode.is-active svg {
    color: #fff;
}

/* ========================================
   3. THUMBNAILS
   ======================================== */
.sp-gallery__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    overflow-x: auto;
    padding: 4px 0 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary, #C62828) transparent;
}

.sp-gallery__thumbs::-webkit-scrollbar { height: 4px; }
.sp-gallery__thumbs::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); border-radius: 2px; }
.sp-gallery__thumbs::-webkit-scrollbar-thumb { background: var(--color-primary, #C62828); border-radius: 2px; }

.sp-gallery__thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: #0a0e14;
    transition: all 0.25s ease;
}

@media (min-width: 768px) {
    .sp-gallery__thumb {
        width: 96px;
        height: 72px;
        border-width: 3px;
        border-radius: 12px;
    }
}

.sp-gallery__thumb:hover {
    border-color: rgba(198, 40, 40, 0.4);
    transform: translateY(-3px);
}

.sp-gallery__thumb--active {
    border-color: #C62828 !important;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.25);
}

.sp-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   4. LIGHTBOX / FULLSCREEN MODAL
   ======================================== */
.sp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.sp-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.sp-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    cursor: pointer;
}

.sp-lightbox__content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 16px 100px;
    z-index: 1;
}

@media (min-width: 768px) {
    .sp-lightbox__content {
        padding: 80px 80px 120px;
    }
}

.sp-lightbox__image-wrap {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-lightbox__image {
    max-width: 100%;
    max-height: calc(100vh - 160px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
    .sp-lightbox__image {
        max-height: calc(100vh - 200px);
        border-radius: 16px;
    }
}

/* Close button - FIXED z-index and pointer-events */
.sp-lightbox__close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000001;
    transition: all 0.25s ease;
    pointer-events: auto !important;
}

@media (min-width: 768px) {
    .sp-lightbox__close {
        top: 24px;
        right: 24px;
        width: 60px;
        height: 60px;
    }
}

.sp-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(90deg);
}

.sp-lightbox__close:active {
    transform: scale(0.95);
}

.sp-lightbox__close svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

@media (min-width: 768px) {
    .sp-lightbox__close svg {
        width: 30px;
        height: 30px;
    }
}

/* Lightbox navigation */
.sp-lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    transition: all 0.25s ease;
    pointer-events: auto !important;
}

@media (min-width: 768px) {
    .sp-lightbox__nav {
        width: 60px;
        height: 60px;
    }
}

.sp-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.sp-lightbox__nav--prev { left: 12px; }
.sp-lightbox__nav--next { right: 12px; }

@media (min-width: 768px) {
    .sp-lightbox__nav--prev { left: 24px; }
    .sp-lightbox__nav--next { right: 24px; }
}

.sp-lightbox__nav svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

/* Lightbox counter */
.sp-lightbox__counter {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    z-index: 1000000;
    letter-spacing: 2px;
}

/* Body scroll lock */
body.sp-lightbox-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
}

/* ========================================
   5. BADGES
   ======================================== */
.sp-gallery__badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 5;
    max-width: calc(100% - 32px);
}

.sp-gallery__badge {
    padding: 6px 14px;
    background: var(--brand-primary, #C62828);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   6. FOOTER & CTA - MODERN LIGHT THEME
   ======================================== */

/* Override dark footer - make it lighter and modern */
.single-property-page .site-footer {
    background: linear-gradient(180deg, #1a1f2e 0%, #0f1419 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer {
    background: linear-gradient(180deg, #1a1f2e 0%, #0f1419 100%);
}

/* Footer main area - more breathing room */
.footer-main {
    padding: 56px 0 40px;
}

@media (min-width: 768px) {
    .footer-main {
        padding: 72px 0 48px;
    }
}

/* Footer grid - better spacing */
.footer-grid {
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        gap: 48px;
    }
}

/* Footer column titles - softer */
.footer-col__title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom-color: rgba(198, 40, 40, 0.6);
    padding-bottom: 10px;
    margin-bottom: 4px;
}

/* Footer links - better readability */
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    padding: 6px 0;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 6px;
}

/* Footer tagline */
.footer-tagline {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.7;
}

/* Footer bottom - cleaner */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom__inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom__inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.footer-legal {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Social links - softer */
.footer-social a {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    background: var(--color-primary, #C62828);
    border-color: var(--color-primary, #C62828);
}

/* ========================================
   7. CTA BOX - MODERN ELEVATED CARD
   ======================================== */
.sp-cta-box {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 12px 24px rgba(0, 0, 0, 0.06),
        0 24px 48px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
    .sp-cta-box {
        padding: 32px;
    }
}

/* Price styling */
.sp-cta-box__price-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-primary, #C62828);
    letter-spacing: -1px;
}

.sp-cta-box__price-period {
    font-size: 15px;
    color: #6b7280;
    font-weight: 500;
}

/* WhatsApp button - prominent */
.sp-cta-box__btn--primary {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 18px 24px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    margin-bottom: 14px;
}

.sp-cta-box__btn--primary:hover {
    background: linear-gradient(135deg, #22c55e 0%, #0f766e 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

/* Secondary button */
.sp-cta-box__btn--secondary {
    background: #f8fafc;
    color: #374151;
    border: 1px solid #e5e7eb;
    font-weight: 600;
    border-radius: 14px;
}

.sp-cta-box__btn--secondary:hover {
    background: #fff;
    border-color: var(--color-primary, #C62828);
    color: var(--color-primary, #C62828);
}

/* Trust badge */
.sp-cta-box__trust {
    background: #f0fdf4;
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 16px;
    border: none;
    color: #166534;
    font-weight: 500;
}

.sp-cta-box__trust svg {
    color: #22c55e;
}

/* ========================================
   8. SPACING & VISUAL HIERARCHY
   ======================================== */

/* Hero section - more breathing room */
.sp-hero {
    padding: 16px 0 0;
}

@media (min-width: 768px) {
    .sp-hero {
        padding: 20px 0 0;
    }
}

/* Hero info under gallery */
.sp-hero__info {
    margin-top: 20px;
    padding-top: 4px;
}

@media (min-width: 768px) {
    .sp-hero__info {
        margin-top: 24px;
    }
}

/* Title styling */
.sp-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #111827;
    margin: 0 0 12px;
}

@media (min-width: 768px) {
    .sp-title {
        font-size: 32px;
        letter-spacing: -1px;
    }
}

/* Meta info */
.sp-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.sp-hero__location,
.sp-hero__type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
}

.sp-hero__location svg {
    color: var(--color-primary, #C62828);
}

/* ========================================
   9. CONTENT SECTIONS - BETTER SPACING
   ======================================== */
.sp-content {
    padding: 32px 0 48px;
}

@media (min-width: 768px) {
    .sp-content {
        padding: 48px 0 64px;
    }
}

.sp-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f1f5f9;
}

@media (min-width: 768px) {
    .sp-section {
        margin-bottom: 48px;
        padding-bottom: 48px;
    }
}

.sp-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sp-section__title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px;
    letter-spacing: -0.3px;
}

@media (min-width: 768px) {
    .sp-section__title {
        font-size: 22px;
        margin-bottom: 24px;
    }
}

/* Highlights grid - better cards */
.sp-highlights__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .sp-highlights__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .sp-highlights__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.sp-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    text-align: center;
    transition: all 0.25s ease;
}

.sp-highlight:hover {
    border-color: rgba(198, 40, 40, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.sp-highlight__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 14px;
    color: var(--color-primary, #C62828);
}

.sp-highlight__name {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

/* ========================================
   10. MOBILE CTA - MODERN FLOATING
   ======================================== */
.sp-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

@media (min-width: 1024px) {
    .sp-mobile-cta {
        display: none;
    }
}

.sp-mobile-cta__price {
    display: flex;
    flex-direction: column;
}

.sp-mobile-cta__amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-primary, #C62828);
}

.sp-mobile-cta__period {
    font-size: 13px;
    color: #6b7280;
}

.sp-mobile-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.sp-mobile-cta__btn:hover {
    color: #fff;
    transform: scale(1.02);
}

/* ========================================
   11. SIMILAR PROPERTIES CARDS
   ======================================== */
.sp-similar .property-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sp-similar .property-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.sp-similar .property-card__media {
    aspect-ratio: 16 / 10;
}

.sp-similar .property-card__media img {
    object-fit: cover;
}

/* ========================================
   12. RTL SUPPORT
   ======================================== */
[dir="rtl"] .sp-gallery__nav--prev { left: auto; right: 12px; }
[dir="rtl"] .sp-gallery__nav--next { right: auto; left: 12px; }
[dir="rtl"] .sp-gallery__counter { left: auto; right: 16px; }
[dir="rtl"] .sp-gallery__fullscreen { right: auto; left: 16px; }
[dir="rtl"] .sp-gallery__viewmode { right: auto; left: 70px; }
[dir="rtl"] .sp-gallery__badges { left: auto; right: 16px; }
[dir="rtl"] .sp-lightbox__nav--prev { left: auto; right: 12px; }
[dir="rtl"] .sp-lightbox__nav--next { right: auto; left: 12px; }
[dir="rtl"] .sp-lightbox__close { right: auto; left: 16px; }
[dir="rtl"] .breadcrumb__sep { transform: scaleX(-1); }

@media (min-width: 768px) {
    [dir="rtl"] .sp-gallery__nav--prev { right: 20px; }
    [dir="rtl"] .sp-gallery__nav--next { left: 20px; }
    [dir="rtl"] .sp-lightbox__nav--prev { right: 24px; }
    [dir="rtl"] .sp-lightbox__nav--next { left: 24px; }
    [dir="rtl"] .sp-lightbox__close { left: 24px; }
}

/* ========================================
   13. VIDEO MODAL
   ======================================== */
.sp-video-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-video-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    cursor: pointer;
}

.sp-video-modal__content {
    position: relative;
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    z-index: 1;
}

.sp-video-modal__content iframe {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.sp-video-modal__close {
    position: absolute;
    top: -52px;
    right: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.sp-video-modal__close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.sp-video-modal__close svg {
    color: #fff;
    width: 24px;
    height: 24px;
}

/* ========================================
   14. PRINT STYLES
   ======================================== */
@media print {
    .sp-gallery__nav,
    .sp-gallery__fullscreen,
    .sp-gallery__viewmode,
    .sp-lightbox,
    .sp-mobile-cta,
    .whatsapp-float {
        display: none !important;
    }
}
