/* ==========================================
   نظام عرض الكروت والسلايدرز للمعالم والمرشدين
   ========================================== */

/* الكروت الأساسية */
.card-murshidy {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card-murshidy:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* منطقة الصور */
.landmark-image,
.guide-slider-main {
    height: 250px;
    overflow: hidden;
    position: relative;
    border-radius: 25px 25px 0 0;
}

/* ضمان ظهور صور المرشدين كاملة */
.guide-slider-main .carousel-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    background-color: #f8f9fa;
}

.landmark-image img,
.guide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-murshidy:hover .landmark-image img,
.card-murshidy:hover .guide-image {
    transform: scale(1.05);
}

/* الشارات */
.property-badges,
.landmark-badges {
    z-index: 10;
}

.property-badges .badge,
.landmark-badges .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
    font-weight: 600;
}

/* أزرار الإجراءات */
.property-actions {
    z-index: 11;
}

.property-actions .btn {
    border-radius: 50%;
    width: 35px;
    height: 35px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.property-actions .btn:hover {
    transform: scale(1.1);
}

/* العناوين */
.landmark-title,
.guide-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.landmark-title a,
.guide-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.landmark-title a:hover,
.guide-info h3 a:hover {
    color: #007bff;
}

/* التقييمات */
.landmark-rating,
.guide-info .rating-star {
    font-size: 0.9rem;
}

.rating-star {
    color: #ffc107;
}

/* التفاصيل */
.landmark-details span,
.guide-info .text-secondary {
    font-size: 0.8rem;
    color: #666;
}

.landmark-description {
    line-height: 1.4;
    font-size: 0.85rem;
    color: #888;
}

/* السلايدر الرئيسي */
.carousel-inner {
    border-radius: 50px 50px 0 0;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-murshidy:hover .carousel-control-prev,
.card-murshidy:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

/* السلايدر المصغر للمرشدين */
.guide-slider-thumbnails {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    overflow-x: auto;
    border-radius: 0;
}

.thumbnail-item {
    width: 60px;
    height: 60px;
    border-radius: 0;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.thumbnail-item:hover {
    border-color: #007bff;
}

.thumbnail-item.active {
    border-color: #0056b3;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* أزرار التنقل في السلايدر */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.guide-slider-container:hover .slider-nav {
    opacity: 1;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

/* مؤشرات الصفحات */
.slider-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slider-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slider-indicator.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* شارات الصور والفيديوهات */
.image-badge,
.video-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

.video-badge {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* علامة التحقق للمرشدين */
.verified-badge {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* زر تشغيل الفيديو */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-play-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Modal الفيديو */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    transform: scale(1.1);
}

/* Modal تفاصيل المعلم السياحي */
.attraction-popup-slider-container {
    height: 100vh;
    transition: all 0.3s ease;
}

.attraction-popup-slider-container.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100vh;
    z-index: 10001;
}

.attraction-popup-info {
    overflow-y: auto;
    background: #f8f9fa;
}

.attraction-zoom-btn .btn {
    border-radius: 50px !important;
}

.attraction-image-counter .badge {
    border-radius: 50px;
    padding: 8px 16px;
}

/* زر عرض المزيد */
.load-more-btn,
.btn-accent {
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.load-more-btn:hover,
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Grid للكروت */
.attractions-grid,
.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .attractions-grid,
    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .attractions-grid,
    .guides-grid {
        grid-template-columns: 1fr;
    }
}

/* تأثيرات الانتقال */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* أنماط الصور */
.rounded-image {
    border-radius: 0;
}

.border-radius-murshidy {
    border-radius: 0 !important;
}

.border-radius-murshidy-sm {
    border-radius: 0 !important;
}

/* إزالة الرديوس من جميع الصور في السلايدرز */
.carousel-item img,
.landmark-image img,
.guide-image,
.thumbnail-image,
.carousel-inner img,
.landmark-image .carousel-item img,
.guide-slider-main .carousel-item img {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* إزالة الرديوس من الصور في البوب أب */
.modal .carousel-item img,
.modal .carousel-inner img {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* إزالة الرديوس من جميع الصور في الموقع */
img {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* إزالة الرديوس من الصور في السلايدرز بشكل خاص */
#heroSlider img,
#heroCarouselInner img,
.attraction-card img,
.guide-slider img {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* ضمان أن تكون الصور مربعة تماماً */
.carousel-item,
.landmark-image,
.guide-slider-main {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

/* إزالة أي تأثيرات منحنية من الحاويات */
.carousel-inner,
.carousel-item,
.landmark-image,
.guide-slider-main,
.thumbnail-item {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

/* إصلاح زر التكبير في البوب أب */
.fullscreen-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    background: black !important;
}

.fullscreen-mode .carousel-inner {
    width: 100vw !important;
    height: 100vh !important;
}

.fullscreen-mode .carousel-item {
    width: 100vw !important;
    height: 100vh !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

.fullscreen-mode .carousel-item img {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* إصلاح carousel-inner للصور */
.modal .carousel-inner {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
}

/* إصلاح أزرار التحكم في السليدر */
.carousel-control-prev,
.carousel-control-next {
    width: 50px !important;
    height: 50px !important;
    background: rgba(0,0,0,0.5) !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    z-index: 10 !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0,0,0,0.8) !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px !important;
    height: 20px !important;
}


/* Placeholder للوسائط */
.media-placeholder,
.video-placeholder,
.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* أنماط للسلايدر داخل الكارت */
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slider-slide.active {
    display: block;
}

/* تحسينات للأداء */
.guide-image,
.landmark-image img,
.thumbnail-image {
    will-change: transform;
}

/* أنماط للأجهزة المحمولة */
@media (max-width: 768px) {
    .card-murshidy {
        border-radius: 0;
    }
    
    .landmark-image,
    .guide-slider-main {
        height: 200px;
        border-radius: 0;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 32px;
        height: 32px;
    }
    
    .slider-nav {
        width: 32px;
        height: 32px;
    }
    
    .guide-slider-thumbnails {
        border-radius: 0;
    }
    
    .thumbnail-item {
        width: 50px;
        height: 50px;
        border-radius: 0;
    }
}

/* أنماط للطباعة */
@media print {
    .carousel-control-prev,
    .carousel-control-next,
    .slider-nav,
    .property-actions,
    .video-play-btn {
        display: none !important;
    }
}

