/* ============================================
   Visit Al-Quds - Public Styles
   Color Palette:
   - Gold:      #C9A96E
   - Cream:     #F5F0E8
   - Olive:     #4A5043
   - Terracotta:#C0785C
   ============================================ */

:root {
    --jerusalem-gold: #C9A96E;
    --jerusalem-cream: #F5F0E8;
    --jerusalem-olive: #4A5043;
    --jerusalem-terracotta: #C0785C;
}

/* Typography */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #333;
}

/* Arabic RTL font */
body.rtl {
    font-family: 'Tajawal', 'Inter', system-ui, sans-serif;
}

h1, h2, h3, .section-title {
    font-family: 'Playfair Display', serif;
    color: var(--jerusalem-olive);
}

body.rtl h1,
body.rtl h2,
body.rtl h3,
body.rtl .section-title,
body.rtl .hero-title {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
}

.section-title {
    position: relative;
    display: inline-block;
}

/* Custom Colors */
.bg-jerusalem { background-color: var(--jerusalem-olive) !important; }
.bg-jerusalem-gold { background-color: var(--jerusalem-gold) !important; }
.text-jerusalem { color: var(--jerusalem-olive) !important; }

.btn-jerusalem {
    background-color: var(--jerusalem-olive);
    color: #fff;
    border: none;
}
.btn-jerusalem:hover {
    background-color: #3a4035;
    color: #fff;
}

.btn-outline-jerusalem {
    color: var(--jerusalem-olive);
    border-color: var(--jerusalem-olive);
}
.btn-outline-jerusalem:hover {
    background-color: var(--jerusalem-olive);
    color: #fff;
}

/* Hero Section */
.hero-section {
    position: relative;
}
.hero-section h1 {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Place Cards */
.place-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border-radius: 12px;
}
.place-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12) !important;
}
.place-card .card-img-top {
    transition: transform 0.3s ease;
}
.place-card:hover .card-img-top {
    transform: scale(1.05);
}
.place-card .card-body {
    overflow: hidden;
}

/* Category Cards */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    color: var(--jerusalem-olive);
}
.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
    color: var(--jerusalem-olive);
}

/* Like Button */
.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}
.like-btn:hover {
    color: #e74c3c;
}
.like-btn.liked {
    color: #e74c3c;
}
.like-btn i {
    transition: transform 0.2s ease;
}

/* Place Description */
.place-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}
body.rtl .place-description {
    line-height: 2;
    font-size: 1.1rem;
}

/* Pagination */
.pagination .page-link {
    color: var(--jerusalem-olive);
    border-color: #dee2e6;
}
.pagination .page-item.active .page-link {
    background-color: var(--jerusalem-olive);
    border-color: var(--jerusalem-olive);
    color: #fff;
}

/* Breadcrumb */
.breadcrumb-item a {
    color: var(--jerusalem-olive);
    text-decoration: none;
}
.breadcrumb-item a:hover {
    color: var(--jerusalem-gold);
}

/* Badge */
.badge.bg-jerusalem-gold {
    color: #333 !important;
}

/* Place Image Gallery */
.place-hero-img {
    max-height: 500px;
    object-fit: cover;
}
.place-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}
.place-thumb:hover,
.place-thumb.active {
    opacity: 1;
    border-color: var(--jerusalem-gold) !important;
}

/* Navbar */
.navbar .nav-link {
    font-weight: 500;
}
.navbar .dropdown-item i {
    width: 20px;
    text-align: center;
}
body.ltr .navbar .dropdown-item i {
    margin-right: 5px;
}
body.rtl .navbar .dropdown-item i {
    margin-left: 5px;
}

/* Footer */
footer a {
    transition: color 0.2s ease;
}
footer a:hover {
    color: #fff !important;
}

/* Card image overflow hidden */
.place-card .card-img-top,
.place-card > a {
    overflow: hidden;
}
.place-card > a {
    display: block;
    overflow: hidden;
}

/* Language Switcher */
.btn-outline-light:hover {
    color: var(--jerusalem-olive) !important;
}

/* RTL adjustments */
body.rtl .breadcrumb-item + .breadcrumb-item::before {
    content: "\200F/\200F";
}

body.rtl .card-footer {
    direction: rtl;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 350px !important;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .place-card .card-img-top {
        height: 180px !important;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }
    .hero-section .lead {
        font-size: 0.95rem;
    }
}
