/* Syria House SEO Optimized Stylesheet - v2.1 */

.page-content {
    padding: 0 !important;
}

.main-header .bg-container {
    height: 700px;
    overflow: hidden;
    position: relative;
}

.main-header .bg-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0.8;
}

.main-header .bg-container .center-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.main-header h1.hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-top: 1.5rem;
    padding: 0 1rem;
    max-width: 900px;
    animation: fadeInUpHero 0.8s ease-out;
}

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

/* Select2 Customization */
.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
    right: unset !important;
    left: 4px !important;
}

/* Product Card Styling */
.card-img-top-container {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 300px;
    position: relative;
}

.card-img-top-container img {
    width: 100%;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.08);
}

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

.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 0;
    animation: fadeInUpCard 0.25s ease-out;
}

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

.product-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.product-info h5 {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    color: #6b7280;
}

.dark-theme .product-info h4 { color: #ffffff; }
.dark-theme .product-info h5 { color: #adb5bd; }

.spec-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0.75rem 0.5rem;
    margin-top: 0.75rem;
}

.spec-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #374151;
    min-height: 24px;
}

html.dark-theme .spec-item {
    color: #e5e7eb;
}

.my-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 0.9rem;
    color: #0074c1;
    background: rgba(0, 116, 193, 0.08);
}

/* Category Badges */
.category-badge--sale { color: #15803d !important; font-weight: 600; }
.category-badge--rent { color: #c2410c !important; font-weight: 600; }
html.dark-theme .category-badge--sale { color: #4ade80 !important; }
html.dark-theme .category-badge--rent { color: #fb923c !important; }

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.price-tag {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #166534;
    white-space: nowrap;
}

html.dark-theme .price-tag {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

/* Sold Out Styling */
.sold-item {
    opacity: 0.85;
}

.sold-item .card-img-top, .sold-item img {
    filter: grayscale(60%);
}

.sold-out-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 90%;
    max-width: 300px;
}

.sold-out-ribbon {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 12px;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sold-out-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 5;
    border-radius: 10px;
    pointer-events: none;
}

/* Pricing Type Badge */
.pricing-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: 10px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* Views Badge */
.views-badge {
    position: absolute;
    top: 12px;
    left: 12px !important;
    z-index: 8;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Results Pill */
.results-pill {
    background: linear-gradient(135deg, #0d6efd, #0074c1);
    color: white;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.results-pill span {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 1.1rem;
}

/* About Section */
.about-section {
    position: relative;
    padding: 6rem 0 !important;
    margin: 4rem 0;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0, 116, 193, 0.03) 0%, rgba(0, 168, 255, 0.05) 100%);
}

.about-section .text-center {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 4rem 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(50px) scale(0.95);
}

.about-section .text-center.animate-in {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

html.dark-theme .about-section .text-center {
    background: rgba(33, 33, 33, 0.95);
}

.about-section h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 2.5rem !important;
}

html.dark-theme .about-section h2 {
    color: #adb5bd;
}

.about-section p.lead {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 2;
    color: #495057;
}

html.dark-theme .about-section p.lead {
    color: #e9ecef;
}

.about-contact {
    border-top: 2px solid rgba(0, 116, 193, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
}

.about-social-icon {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    border-radius: 50%;
    background: rgba(0, 116, 193, 0.1);
    color: #0074c1 !important;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    background: #0074c1;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(0, 116, 193, 0.4);
}

.about-contact-link {
    color: #495057;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

html.dark-theme .about-contact-link {
    color: #adb5bd;
}

.about-contact-link:hover {
    color: #0074c1 !important;
}

.about-contact-info i {
    color: #0074c1;
    font-size: 1.2rem;
    margin-left: 8px;
}

/* Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: #0074c1;
    color: #fff;
    padding: 30px 0;
    direction: rtl;
    position: relative;
}

.marquee-text {
    position: absolute;
    top: 15px;
    display: inline-block;
    white-space: nowrap;
    animation: marquee 50s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Category icons on home */
.cat-icons { width: 75%; }
.cat-icon-container { cursor: pointer; padding-bottom: 10px !important; }
.cat-active {
    box-shadow: 0 0 7px 2px #0074c1;
    border-radius: 15%;
    background: rgba(238, 238, 238, 0.31);
}

/* Fix for broken card height in some views */
.card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}




.logo-wrapper {
    position: relative;
    padding: 40px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(9, 72, 114, 0.15));
    box-shadow:
            0 0 40px rgba(0, 0, 0, 0.6),
            0 0 60px rgba(13, 110, 253, 0.35);
    backdrop-filter: blur(10px);
    animation: popIn 2s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

.logo-wrapper::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

svg {
    display: block;
    width: min(60vmin, 520px);
    height: auto;
    filter: drop-shadow(0 18px 25px rgba(0, 0, 0, 0.45));
    animation:
            float 6s ease-in-out infinite alternate,
            glow 3.2s ease-in-out infinite alternate;
    transform-origin: center;
    cursor: pointer;
    transition: transform 0.45s ease, filter 0.45s ease;
}

svg:hover {
    transform: translateY(-6px) scale(1.03);
    filter:
            drop-shadow(0 25px 40px rgba(0, 0, 0, 0.7))
            drop-shadow(0 0 25px rgba(235, 240, 241, 0.7));
}

/* Main fill animation (subtle colour + brightness shift) */
.cls-1 {
    fill: #e0e6ea;
    animation:
            colorShift 7s ease-in-out infinite alternate,
            pulseFill 2.8s ease-in-out infinite alternate;
}

/* Staggered reveal of the paths */
#Layer_1 path {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    animation: riseIn 0.9s ease-out forwards;
}

#Layer_1 path:nth-of-type(1)  { animation-delay: 0.05s; }
#Layer_1 path:nth-of-type(2)  { animation-delay: 0.12s; }
#Layer_1 path:nth-of-type(3)  { animation-delay: 0.18s; }
#Layer_1 path:nth-of-type(4)  { animation-delay: 0.24s; }
#Layer_1 path:nth-of-type(5)  { animation-delay: 0.30s; }
#Layer_1 path:nth-of-type(6)  { animation-delay: 0.36s; }
#Layer_1 path:nth-of-type(7)  { animation-delay: 0.42s; }
#Layer_1 path:nth-of-type(8)  { animation-delay: 0.48s; }
#Layer_1 path:nth-of-type(9)  { animation-delay: 0.54s; }
#Layer_1 path:nth-of-type(10) { animation-delay: 0.60s; }
#Layer_1 path:nth-of-type(11) { animation-delay: 0.66s; }
#Layer_1 path:nth-of-type(12) { animation-delay: 0.72s; }
#Layer_1 path:nth-of-type(13) { animation-delay: 0.78s; }
#Layer_1 path:nth-of-type(14) { animation-delay: 0.84s; }
#Layer_1 path:nth-of-type(15) { animation-delay: 0.90s; }
#Layer_1 path:nth-of-type(16) { animation-delay: 0.96s; }
#Layer_1 path:nth-of-type(17) { animation-delay: 1.02s; }
#Layer_1 path:nth-of-type(18) { animation-delay: 1.08s; }
#Layer_1 path:nth-of-type(19) { animation-delay: 1.14s; }
#Layer_1 path:nth-of-type(20) { animation-delay: 1.20s; }
#Layer_1 path:nth-of-type(21) { animation-delay: 1.24s; }
#Layer_1 path:nth-of-type(22) { animation-delay: 1.28s; }
#Layer_1 path:nth-of-type(23) { animation-delay: 1.30s; }

/* Keyframes */

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(25px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(-0.5deg);
    }
    100% {
        transform: translateY(-10px) rotate(0.5deg);
    }
}

@keyframes glow {
    0% {
        filter:
                drop-shadow(0 14px 22px rgba(0, 0, 0, 0.5))
                drop-shadow(0 0 14px rgba(0, 219, 255, 0.3));
    }
    100% {
        filter:
                drop-shadow(0 22px 32px rgba(0, 0, 0, 0.7))
                drop-shadow(0 0 28px rgba(0, 219, 255, 0.8));
    }
}

@keyframes colorShift {
    0% {
        fill: #094872;
    }
    50% {
        fill: #0b6db2;
    }
    100% {
        fill: #0f9bd8;
    }
}

@keyframes pulseFill {
    0% {
        filter: brightness(1);
    }
    100% {
        filter: brightness(1.2);
    }
}

@keyframes riseIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


