/* ============================================
   عنوان الغروب العقارية - Shared Styles
   ============================================ */

* { font-family: 'Cairo', sans-serif; }
html { scroll-behavior: smooth; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a2e1a; }
::-webkit-scrollbar-thumb { background: #8b6332; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #704e27; }

/* Hero parallax */
.hero-bg {
    background-image: linear-gradient(to bottom, rgba(10,46,26,0.65), rgba(10,46,26,0.85)),
        url('../صور/medina-5.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Page banner for inner pages */
.page-banner {
    background-image: linear-gradient(to bottom, rgba(10,46,26,0.82), rgba(10,46,26,0.95)),
        url('../صور/medina-2.jpeg');
    background-size: cover;
    background-position: center;
}

/* Card hover effects */
.property-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(10, 46, 26, 0.35);
}
.property-card:hover .card-img img {
    transform: scale(1.1);
}
.card-img {
    overflow: hidden;
}
.card-img img {
    transition: transform 0.6s ease;
}

/* Gold shimmer effect */
.gold-shimmer {
    background: linear-gradient(90deg, #b07d42, #d4a96a, #8b6332, #c89a68);
    background-size: 300% 100%;
    animation: shimmer 4s infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Floating animation for WhatsApp */
.float-btn {
    animation: floatBounce 2s ease-in-out infinite;
}
@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Modal backdrop */
.modal-backdrop {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Slide in for modal */
.slide-up {
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(60px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Image gallery dots */
.gallery-dot {
    transition: all 0.3s ease;
}
.gallery-dot.active {
    width: 24px;
    border-radius: 4px;
}

/* Price tag */
.price-tag {
    background: linear-gradient(135deg, #b07d42, #8b6332, #704e27);
}

/* Stat counter animation */
.stat-item {
    opacity: 0;
    transform: translateY(20px);
}
.stat-item.visible {
    animation: fadeIn 0.6s ease forwards;
}

/* Nav scroll effect */
.nav-scrolled {
    background: rgba(10, 46, 26, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

/* Inner page nav (always solid) */
.nav-solid {
    background: rgba(10, 46, 26, 1) !important;
}

/* Header top bar smooth transition */
#topBarInner {
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    overflow: hidden;
}

/* Select styling */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23c5a059' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: left 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-left: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Booking form input focus */
.form-input:focus {
    border-color: #b07d42;
    box-shadow: 0 0 0 3px rgba(176, 125, 66, 0.15);
}

/* Feature badge */
.feature-badge {
    transition: all 0.3s ease;
}
.feature-badge:hover {
    background: #b07d42;
    color: white;
    transform: scale(1.05);
}

/* Pulse for CTA */
.pulse-gold {
    animation: pulseGold 2s infinite;
}
@keyframes pulseGold {
    0% { box-shadow: 0 0 0 0 rgba(176, 125, 66, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(176, 125, 66, 0); }
    100% { box-shadow: 0 0 0 0 rgba(176, 125, 66, 0); }
}

/* Toast notification */
.toast {
    animation: toastIn 0.4s ease, toastOut 0.4s ease 3s forwards;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

/* Blog card hover */
.blog-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(10, 46, 26, 0.25);
}
.blog-card:hover .blog-img img {
    transform: scale(1.08);
}
.blog-img {
    overflow: hidden;
}
.blog-img img {
    transition: transform 0.6s ease;
}

/* Testimonial card */
.testimonial-card {
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -10px rgba(10, 46, 26, 0.2);
}

/* Contact card hover */
.contact-card {
    transition: all 0.3s ease;
}
.contact-card:hover {
    transform: translateY(-4px);
    border-color: #8b6332;
}

/* Gallery thumbnail */
.gallery-thumb {
    transition: all 0.3s ease;
    opacity: 0.6;
    cursor: pointer;
}
.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
    border-color: #8b6332;
}

/* Blog article expand */
.blog-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}
.blog-content.expanded {
    max-height: 2000px;
}

/* Breadcrumb */
.breadcrumb a:hover {
    color: #b07d42;
}

/* Checkbox custom */
.custom-checkbox {
    accent-color: #b07d42;
}

/* Scroll to top */
.scroll-top {
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}
.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* WhatsApp tooltip - RTL fix */
.whatsapp-tooltip {
    right: calc(100% + 12px);
    left: auto;
}
