/* ==========================================================================
   Alanya Home Premium — frontend styles
   All directional (LTR/RTL) rules use [dir="rtl"] for RTL overrides.
   ========================================================================== */

:root {
    --color-primary: #c9a961;
    --color-primary-dark: #b08d48;
    --color-primary-light: #e4c98b;
    --color-secondary: #1a1a1a;
    --color-dark: #222;
    --color-light: #f8f9fa;
    --color-gray: #6c757d;
    --color-border: #e5e5e5;
    --font-sans: "Google Sans Flex", sans-serif;
}

html, body, input, select, textarea, button {
    font-family: var(--font-sans);
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "slnt" 0, "wdth" 100, "GRAD" 0, "ROND" 0;
}
body {
    font-weight: 400;
    color: #444;
    line-height: 1.7;
    padding-top: 0;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--color-secondary);
    font-optical-sizing: auto;
    font-variation-settings: "slnt" 0, "wdth" 100, "GRAD" 0, "ROND" 0;
}
a { text-decoration: none; color: var(--color-primary); transition: .3s; }
a:hover { color: var(--color-primary-dark); }

.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff; padding: 12px 32px; font-weight: 500;
    letter-spacing: .5px; text-transform: uppercase; font-size: 13px;
    border-radius: 0;
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}
.btn-outline-primary {
    border-color: var(--color-primary); color: var(--color-primary);
    padding: 12px 32px; font-weight: 500; letter-spacing: .5px;
    text-transform: uppercase; font-size: 13px; border-radius: 0;
}
.btn-outline-primary:hover {
    background: var(--color-primary); border-color: var(--color-primary);
}

/* Top Bar */
.topbar {
    background: var(--color-secondary);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}
.topbar a { color: #fff; }
.topbar a:hover { color: var(--color-primary); }
.topbar .info a { margin-right: 18px; }
[dir="rtl"] .topbar .info a { margin-right: 0; margin-left: 18px; }

/* Navbar */
.main-navbar {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,.06);
    position: sticky; top: 0; z-index: 999;
    padding: 15px 0;
}
.main-navbar .navbar-brand {
    font-family: var(--font-sans);
    font-weight: 900; font-size: 28px;
    color: var(--color-secondary); letter-spacing: 1px;
}
.main-navbar .navbar-brand span { color: var(--color-primary); }
.main-navbar .nav-link {
    color: var(--color-secondary) !important;
    font-weight: 500; font-size: 14px;
    padding: 10px 15px !important;
    text-transform: uppercase; letter-spacing: .5px;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active { color: var(--color-primary) !important; }

.lang-switcher .dropdown-menu { min-width: 150px; padding: 5px 0; }
.lang-switcher .dropdown-item {
    padding: 6px 15px; font-size: 13px; display: flex; align-items: center;
}
.lang-switcher .flag { width: 22px; margin-right: 8px; }
[dir="rtl"] .lang-switcher .flag { margin-right: 0; margin-left: 8px; }

.main-navbar .dropdown-menu {
    border: 0; box-shadow: 0 10px 30px rgba(0,0,0,.1);
    border-radius: 0; padding: 8px 0;
    border-top: 3px solid var(--color-primary);
    min-width: 220px;
}
.main-navbar .dropdown-item {
    padding: 10px 20px; font-size: 13px;
    text-transform: uppercase; letter-spacing: .5px;
    color: var(--color-secondary); font-weight: 500;
}
.main-navbar .dropdown-item:hover,
.main-navbar .dropdown-item.active {
    background: transparent; color: var(--color-primary);
    padding-left: 25px;
}
[dir="rtl"] .main-navbar .dropdown-item:hover,
[dir="rtl"] .main-navbar .dropdown-item.active {
    padding-left: 20px;
    padding-right: 25px;
}

/* Hero */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex; align-items: center;
    color: #fff;
    background-image: var(--hero-bg-image);
    background-size: cover; background-position: center;
}

/* Home citizenship CTA section (dark overlay + image) */
.home-citizenship-section {
    color: #fff;
    background-image:
        linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.8)),
        var(--home-citizenship-bg, url('https://images.unsplash.com/photo-1524231757912-21f4fe3a7200?w=1920&q=80'));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Home testimonials section */
.home-testimonials-section {
    color: #fff;
    background-image:
        linear-gradient(rgba(26,26,26,.9), rgba(26,26,26,.95)),
        var(--home-testimonials-bg, url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&q=80'));
    background-size: cover;
    background-position: center;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.4), rgba(0,0,0,.6));
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
    color: #fff; font-size: 56px; line-height: 1.15;
    margin-bottom: 20px; font-weight: 800;
}
.hero .subtitle {
    font-size: 18px; opacity: .95; margin-bottom: 30px;
    font-family: var(--font-sans); font-weight: 400;
}
.hero .subtitle p { margin-bottom: 10px; }
.hero .subtitle *:last-child { margin-bottom: 0; }
.hero-tag {
    color: var(--color-primary); letter-spacing: 3px;
    text-transform: uppercase; font-size: 13px; margin-bottom: 15px;
    font-weight: 500;
}

/* Section */
.section { padding: 90px 0; }
.section-title { margin-bottom: 50px; text-align: center; }
.section-title .small-title {
    color: var(--color-primary);
    letter-spacing: 3px; text-transform: uppercase;
    font-size: 13px; margin-bottom: 10px; font-weight: 600;
    display: block;
}
.section-title h2 {
    font-size: 42px; margin-bottom: 15px;
}
.section-title p { color: var(--color-gray); max-width: 700px; margin: 0 auto; }

/* Service Card */
.service-card {
    background: #fff; padding: 40px 30px; text-align: center;
    border: 1px solid var(--color-border);
    transition: .4s; height: 100%; position: relative;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,.1);
    border-color: var(--color-primary);
}
.service-card .icon {
    width: 80px; height: 80px; margin: 0 auto 20px;
    background: var(--color-primary); color: #fff;
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 32px;
    transition: .4s;
}
.service-card:hover .icon { transform: rotate(360deg); }
.service-card h3 { font-size: 20px; margin-bottom: 15px; }

/* Project Card */
.project-card {
    background: #fff; transition: .4s; overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,.05);
    height: 100%; display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(0,0,0,.12); }
.project-card .image { position: relative; overflow: hidden; height: 260px; }
.project-card .image img { width: 100%; height: 100%; object-fit: cover; transition: .6s; }
.project-card:hover .image img { transform: scale(1.1); }

.project-card .badge-price {
    position: absolute; top: 15px; left: 15px;
    background: var(--color-primary); color: #fff;
    padding: 8px 16px; font-weight: 600; font-size: 14px;
    z-index: 5; pointer-events: none;
}
.project-card .badge-price--ask { background: #2c3e50; }
.property-price-badge--ask { background: #2c3e50 !important; }
.price--ask { font-size: 20px !important; font-weight: 600; color: #fff !important; background: #2c3e50; padding: 8px 16px; }
[dir="rtl"] .project-card .badge-price { left: auto; right: 15px; }

/* Entire card clickable via stretched link inside the title */
.project-card.project-card--linked { position: relative; }
.project-card.project-card--linked .content { position: relative; }
.card-stretched-link { color: inherit; text-decoration: none; }
.card-stretched-link::after {
    content: ''; position: absolute; inset: 0;
    /* The pseudo overlay sits behind the carousel arrows (z-index 5) and price badge,
       but in front of the rest of the card. Clicking the card navigates; clicking
       arrows still drives Swiper. */
    z-index: 1;
}
.project-card.project-card--linked .image .project-card-swiper-prev,
.project-card.project-card--linked .image .project-card-swiper-next,
.project-card.project-card--linked .image .project-card-swiper-pagination {
    z-index: 10;
}
.project-card.project-card--linked:hover h3 a { color: var(--color-primary); }

/* Per-card swiper carousel */
.project-card .project-card-swiper { width: 100%; height: 100%; }
.project-card .project-card-swiper .swiper-slide { display: flex; }
.project-card .project-card-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; transition: .6s; }
.project-card:hover .project-card-swiper .swiper-slide img { transform: scale(1.06); }
.project-card .project-card-swiper-prev,
.project-card .project-card-swiper-next {
    color: #fff; background: rgba(0,0,0,.35); width: 32px; height: 32px; border-radius: 50%;
    opacity: 0; transition: opacity .25s; --swiper-navigation-size: 12px;
}
.project-card:hover .project-card-swiper-prev,
.project-card:hover .project-card-swiper-next { opacity: 1; }
/* On touch devices :hover never fires — show the arrows persistently. */
@media (hover: none) {
    .project-card .project-card-swiper-prev,
    .project-card .project-card-swiper-next { opacity: .9; }
}
.project-card .project-card-swiper-pagination .swiper-pagination-bullet { background: #fff; opacity: .7; }
.project-card .project-card-swiper-pagination .swiper-pagination-bullet-active { background: var(--color-primary); opacity: 1; }
.project-card .project-badges,
.project-card .badge-code { z-index: 6; pointer-events: none; }

.project-card .badge-code {
    position: absolute; bottom: 15px; right: 15px;
    background: rgba(0,0,0,.7); color: #fff;
    padding: 5px 12px; font-size: 12px;
}
[dir="rtl"] .project-card .badge-code { right: auto; left: 15px; }

.project-card .project-badges {
    position: absolute; top: 15px; right: 15px;
    display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
    z-index: 2;
}
[dir="rtl"] .project-card .project-badges { right: auto; left: 15px; align-items: flex-start; }
.project-card .project-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    border-radius: 3px;
    box-shadow: 0 3px 10px rgba(0,0,0,.12);
    line-height: 1.4;
}

/* Detail page badges row */
.property-badges-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.property-badges-row .project-badge {
    display: inline-block;
    padding: 7px 16px;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    border-radius: 3px;
    box-shadow: 0 3px 10px rgba(0,0,0,.12);
}

.project-card .content { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.project-card h3 { font-size: 19px; margin-bottom: 8px; }
.project-card h3 a { color: var(--color-secondary); }
.project-card h3 a:hover { color: var(--color-primary); }
.project-card .location { color: var(--color-gray); font-size: 13px; margin-bottom: 15px; }
.project-card .meta {
    display: flex; gap: 15px; padding-top: 15px; margin-top: auto;
    border-top: 1px solid var(--color-border); font-size: 13px; color: #666;
}
.project-card .meta span i { color: var(--color-primary); margin-right: 5px; }
[dir="rtl"] .project-card .meta span i { margin-right: 0; margin-left: 5px; }

/* Team Card */
.team-card {
    background: #fff; text-align: center; transition: .4s;
    box-shadow: 0 5px 25px rgba(0,0,0,.05); overflow: hidden;
}
.team-card .image {
    height: 300px; overflow: hidden; position: relative;
}
.team-card .image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: .6s; }
.team-card:hover .image img { transform: scale(1.08); }
/* On mobile, give the portrait full height so the head doesn't get cropped. */
@media (max-width: 768px) {
    .team-card .image { height: 420px; }
    .team-card .image img { object-position: center 15%; }
}
@media (max-width: 480px) {
    .team-card .image { height: 460px; }
}
.team-card .info { padding: 25px 20px; }
.team-card h4 { margin-bottom: 5px; font-size: 19px; }
.team-card .position {
    color: var(--color-primary); font-size: 13px;
    text-transform: uppercase; letter-spacing: 1px;
}

/* Blog Card */
.blog-card {
    background: #fff; transition: .4s; overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,.05);
    height: 100%; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); }
.blog-card .image { height: 230px; overflow: hidden; }
.blog-card .image img { width: 100%; height: 100%; object-fit: cover; transition: .6s; }
.blog-card:hover .image img { transform: scale(1.08); }
.blog-card .content { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.blog-card .date {
    color: var(--color-primary); font-size: 12px;
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 10px;
}
.blog-card h3 { font-size: 20px; margin-bottom: 15px; line-height: 1.35; }
.blog-card h3 a { color: var(--color-secondary); }
.blog-card h3 a:hover { color: var(--color-primary); }
.blog-card .excerpt { color: #666; font-size: 14px; flex: 1; margin-bottom: 15px; }

/* CTA */
.cta-section {
    background:
        linear-gradient(rgba(0,0,0,.75), rgba(0,0,0,.85)),
        var(--cta-bg-image, url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&q=80')) center/cover;
    color: #fff; padding: 100px 0; text-align: center;
}
.cta-section h2 { color: #fff; font-size: 42px; margin-bottom: 20px; }
.cta-section p { font-size: 17px; margin-bottom: 30px; opacity: .9; }

/* Footer */
.footer {
    background: #0f0f0f; color: #b7b7b7; padding-top: 80px;
}
.footer h5 {
    color: #fff; font-size: 18px; margin-bottom: 25px;
    font-family: var(--font-sans); font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
}
.footer a { color: #b7b7b7; display: inline-block; padding: 5px 12px 5px 0; font-size: 14px; }
[dir="rtl"] .footer a { padding: 5px 0 5px 12px; }
.footer a:hover { color: var(--color-primary); }

.footer .social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border: 1px solid #333;
    margin-right: 8px;
    border-radius: 50%; padding: 0;
}
[dir="rtl"] .footer .social a { margin-right: 0; margin-left: 8px; }

.footer .social a:hover {
    background: var(--color-primary); border-color: var(--color-primary);
    color: #fff; padding: 0;
}
.footer .contact-item {
    display: flex; gap: 12px; margin-bottom: 15px; font-size: 14px;
}
.footer .contact-item i { color: var(--color-primary); margin-top: 3px; }
.footer .footer-about { font-size: 14px; }
.footer-bottom {
    border-top: 1px solid #222; margin-top: 50px;
    padding: 20px 0; font-size: 13px;
}


/* Page Banner */
.page-banner {
    background:
        linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.7)),
        var(--page-banner-bg-image, url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&q=80')) center/cover;
    color: #fff; padding: 110px 0 80px;
    position: relative;
}
.page-banner h1 {
    color: #fff; font-size: 48px; margin-bottom: 10px;
}
.page-banner .breadcrumb {
    justify-content: center; background: transparent; padding: 0;
    margin: 0; font-size: 14px;
}
.page-banner .breadcrumb a { color: var(--color-primary); }
.page-banner .breadcrumb-item.active,
.breadcrumb-item.active { color: #fff !important; }
.page-banner .breadcrumb-item+.breadcrumb-item::before {
    color: #fff; opacity: .6;
}
.page-banner--with-bg { background-size: cover; background-position: center; }

/* WhatsApp Float */
.whatsapp-float {
    position: fixed; bottom: 25px; right: 25px;
    width: 60px; height: 60px; background: #25d366;
    color: #fff; border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    font-size: 30px; z-index: 999; box-shadow: 0 5px 25px rgba(37,211,102,.4);
    transition: .3s;
}
[dir="rtl"] .whatsapp-float { right: auto; left: 25px; }
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* Utilities */
.text-gold { color: var(--color-primary); }
.bg-gold { background: var(--color-primary); color: #fff; }
.bg-light-custom { background: #f7f7f7; }

/* Property Detail */
.property-hero { position: relative; }
.property-hero .thumb {
    height: 78px; object-fit: cover; cursor: pointer;
    opacity: .65; transition: .3s;
}
.property-hero .swiper-slide-thumb-active .thumb {
    opacity: 1; outline: 2px solid var(--color-primary);
}
.property-hero .main-gallery { height: 560px; background: #111; }
.property-hero .main-gallery .swiper-slide { display: flex; align-items: center; justify-content: center; background: #111; }
.property-hero .main-gallery .swiper-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 768px) { .property-hero .main-gallery { height: 360px; } }
.property-hero .thumbs-gallery { height: 78px; padding: 8px 0; background: #111; }
.property-hero .thumbs-gallery .swiper-slide { width: 120px; }
.property-hero .thumbs-gallery .thumb { width: 100%; height: 100%; }

.property-price-badge {
    background: var(--color-primary); color: #fff;
    padding: 8px 20px; font-size: 22px; font-weight: 700;
    display: inline-block;
}
.property-code-badge {
    background: #1a1a1a; color: #fff;
    padding: 6px 16px; font-size: 13px; font-weight: 500;
    display: inline-block; letter-spacing: 2px;
    margin-left: 8px;
}
[dir="rtl"] .property-code-badge { margin-left: 0; margin-right: 8px; }

.property-meta-bar {
    background: #fff; padding: 25px 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,.06);
    margin-top: -40px; position: relative; z-index: 3;
    display: flex; gap: 20px; flex-wrap: wrap;
    align-items: center; justify-content: space-between;
}
.property-meta-bar .meta-item {
    display: flex; gap: 10px; align-items: center;
    padding: 0 15px;
}
.property-meta-bar .meta-item i {
    font-size: 22px; color: var(--color-primary);
}
.property-meta-bar .meta-item .label {
    font-size: 11px; color: #999;
    text-transform: uppercase; letter-spacing: 1px;
}
.property-meta-bar .meta-item .value {
    font-weight: 600; color: var(--color-secondary);
}
.property-meta-bar .inner-breadcrumb {
    background: transparent; padding: 0; margin-bottom: 8px; font-size: 13px;
}
.property-meta-bar .property-title { font-size: 28px; margin-bottom: 6px; }
.property-meta-bar .property-location { color: #888; font-size: 14px; }
.property-meta-bar .status-ok { color: #22c55e !important; }
.property-meta-bar--compact { margin-top: 12px; }

.property-tabs {
    border-bottom: 2px solid var(--color-border); margin-bottom: 30px;
}
.property-tabs .nav-link {
    border: 0; color: #666; padding: 14px 24px;
    font-weight: 500; text-transform: uppercase;
    letter-spacing: 1px; font-size: 13px;
    border-bottom: 3px solid transparent; margin-bottom: -2px;
    background: transparent;
}
.property-tabs .nav-link.active, .property-tabs .nav-link:hover {
    color: var(--color-primary); border-color: var(--color-primary);
    background: transparent;
}

.amenity-item {
    background: #fff; padding: 20px; text-align: center;
    border: 1px solid var(--color-border); height: 100%;
    transition: .3s;
}
.amenity-item:hover {
    border-color: var(--color-primary); transform: translateY(-3px);
}
.amenity-item i {
    font-size: 32px; color: var(--color-primary); margin-bottom: 12px;
}
.amenity-item .name {
    font-weight: 600; color: var(--color-secondary); font-size: 14px;
}

.property-sidebar {
    background: #fff; border: 1px solid var(--color-border);
    position: sticky; top: 100px;
}
.property-sidebar .sidebar-header {
    background: var(--color-secondary); color: #fff;
    padding: 25px 25px 20px; text-align: center;
}
.property-sidebar .sidebar-header h4 {
    color: #fff; margin: 0; font-size: 20px;
}
.property-sidebar .sidebar-header .price {
    font-size: 28px; color: var(--color-primary);
    font-weight: 800; margin-top: 6px;
}
.property-sidebar .spec-list {
    list-style: none; padding: 0; margin: 0;
}
.property-sidebar .spec-list li {
    display: flex; justify-content: space-between;
    padding: 12px 25px; border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}
.property-sidebar .spec-list li:last-child { border-bottom: 0; }
.property-sidebar .spec-list strong {
    color: var(--color-secondary); font-weight: 600;
}

.inquiry-form {
    padding: 25px; background: #fafafa;
    border-top: 1px solid var(--color-border);
}
.inquiry-form .form-control {
    border-radius: 0; border-color: #ddd;
}
.inquiry-form .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 .15rem rgba(201,169,97,.15);
}

.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-buttons a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: #f5f5f5; color: var(--color-secondary);
    transition: .3s; font-size: 15px;
}
.share-buttons a:hover {
    background: var(--color-primary); color: #fff;
    transform: translateY(-2px);
}

/* Rich HTML content (from CMS) */
.description-body {
    font-size: 15px; line-height: 1.9; color: #555;
}
.description-body h2, .description-body h3, .description-body h4 {
    margin-top: 30px; margin-bottom: 15px;
}
.description-body h3 { font-size: 22px; color: var(--color-secondary); }
.description-body p { margin-bottom: 18px; }
.description-body ul, .description-body ol {
    padding-left: 22px; margin-bottom: 20px;
}
[dir="rtl"] .description-body ul,
[dir="rtl"] .description-body ol {
    padding-left: 0; padding-right: 22px;
}
.description-body ul li {
    margin-bottom: 8px; position: relative;
}
.description-body img {
    max-width: 100%; height: auto; border-radius: 4px; margin: 20px 0;
}
.description-body blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 10px 20px; margin: 20px 0; color: #666;
    font-style: italic; background: #f9f9f9;
}
[dir="rtl"] .description-body blockquote {
    border-left: 0;
    border-right: 4px solid var(--color-primary);
}
.description-body table {
    width: 100%; border-collapse: collapse; margin: 20px 0;
}
.description-body table th, .description-body table td {
    padding: 12px; border: 1px solid var(--color-border);
    text-align: left;
}
[dir="rtl"] .description-body table th,
[dir="rtl"] .description-body table td {
    text-align: right;
}
.description-body table th {
    background: var(--color-secondary); color: #fff; font-weight: 600;
}

/* Alias class */
.content-body {
    font-size: 15px; line-height: 1.9; color: #555;
}
.content-body h2, .content-body h3, .content-body h4 {
    margin-top: 30px; margin-bottom: 15px;
}
.content-body img {
    max-width: 100%; height: auto; border-radius: 4px; margin: 20px 0;
}
.content-body ul, .content-body ol {
    padding-left: 22px; margin-bottom: 20px;
}
[dir="rtl"] .content-body ul,
[dir="rtl"] .content-body ol {
    padding-left: 0; padding-right: 22px;
}
.content-body blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 10px 20px; margin: 20px 0; color: #666;
    font-style: italic; background: #f9f9f9;
}
[dir="rtl"] .content-body blockquote {
    border-left: 0;
    border-right: 4px solid var(--color-primary);
}
.content-body table {
    width: 100%; border-collapse: collapse; margin: 20px 0;
}
.content-body table th, .content-body table td {
    padding: 12px; border: 1px solid var(--color-border);
}
.content-body table th {
    background: var(--color-secondary); color: #fff; font-weight: 600;
}

/* Testimonial message */
.testimonial-msg {
    font-size: 17px; line-height: 1.7;
    font-style: italic; color: #fff;
}
.testimonial-msg p { margin-bottom: 12px; }
.testimonial-msg *:last-child { margin-bottom: 0; }

/* Citizenship banner */
.citizenship-banner {
    background: linear-gradient(135deg,
        var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff; padding: 40px;
    display: flex; gap: 30px; align-items: center;
    justify-content: space-between; flex-wrap: wrap; margin: 40px 0;
}
.citizenship-banner h3 { color: #fff; margin: 0 0 8px; }
.citizenship-banner p { margin: 0; opacity: .95; }
.citizenship-banner .btn {
    background: #fff; color: var(--color-primary);
}
.citizenship-banner .btn:hover {
    background: var(--color-secondary); color: #fff;
}

/* Related / utility */
.related-heading .small-title {
    color: var(--color-primary); letter-spacing: 3px;
    font-size: 13px; font-weight: 600; text-transform: uppercase;
}
.related-heading h2 { font-size: 30px; }

.sidebar-code { opacity: .8; letter-spacing: 2px; }

.leaflet-frontend { height: 420px; width: 100%; z-index: 1; }
.leaflet-frontend .leaflet-popup-content { margin: 10px 15px; font-size: 14px; }

.section--tight { padding-top: 40px; }
.divider-top {
    border-top: 1px solid var(--color-border);
    padding-top: 30px; margin-top: 30px;
}

/* Swiper buttons */
.swiper-btn-white { color: #fff; }
.swiper-btn-gold { color: var(--color-primary); }

/* Units table */
.units-thead { background: var(--color-secondary); color: #fff; }
.units-thead th { color: #fff; background: var(--color-secondary); }

/* Misc */
.whatsapp-btn { background: #25d366; color: #fff; }
.whatsapp-btn:hover { background: #1fb855; color: #fff; }
.fw-semibold { font-weight: 600; }

/* Responsive */
@media (max-width: 991px) {
    .hero { min-height: 70vh; }
    .hero h1 { font-size: 36px; }
    .section { padding: 60px 0; }
    .section-title h2 { font-size: 32px; }
    .cta-section h2 { font-size: 30px; }
    .main-navbar .nav-link { padding: 8px 10px !important; }
}
@media (max-width: 767px) {
    .property-meta-bar { margin-top: 20px; padding: 20px 15px; }
    .property-meta-bar .meta-item { padding: 0 8px; }
    .property-price-badge { font-size: 18px; padding: 6px 14px; }
}
@media (max-width: 576px) {
    .hero h1 { font-size: 28px; }
    .topbar .info a { display: block; margin: 2px 0; }
}

/* =======================================================================
   Utility / component classes used across views
   ======================================================================= */
.text-primary-custom { color: var(--color-primary); }
.text-secondary-custom { color: var(--color-secondary); }
.opacity-70 { opacity: .7; }
.opacity-80 { opacity: .8; }
.opacity-90 { opacity: .9; }
.opacity-95 { opacity: .95; }

/* Small title (the gold uppercase label above section titles) */
.small-title {
    color: var(--color-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

/* Home stats block */
.stat-value {
    font-size: 48px; font-weight: 800;
    color: var(--color-primary);
    font-family: var(--font-sans);
    line-height: 1.1;
}
.stat-label {
    font-size: 14px; text-transform: uppercase;
    letter-spacing: 2px; color: var(--color-secondary);
}

/* "25+ years" badge on home about section */
.years-badge {
    position: absolute; bottom: -30px; right: -30px;
    background: var(--color-primary); color: #fff;
    padding: 30px 40px; text-align: center;
}
[dir="rtl"] .years-badge { right: auto; left: -30px; }
.years-badge__value { font-size: 42px; font-weight: 800; line-height: 1; }
.years-badge__label { font-size: 13px; letter-spacing: 1px; }

/* Feature title (home feature list) */
.feature-title {
    font-family: inherit;
    font-size: 16px; font-weight: 600;
    margin: 0;
}

/* Home about image wrapper */
.about-image-wrap { position: relative; }

/* Heading size utilities (apply to h2 directly) */
.h-size-38 { font-size: 38px; }
.h-size-42 { font-size: 42px; }
.section-title-lg, .section-title-lg h2 { font-size: 38px; }
.section-title-xl, .section-title-xl h2 { font-size: 42px; }

/* Citizenship hero subtitle (large) */
.text-lead-lg { font-size: 17px; }
.text-sm-uc { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

/* Testimonial glassmorphic card */
.testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 40px; border-radius: 8px;
    text-align: center;
}
.testimonial-quote { font-size: 36px; }
.testimonial-meta-name { color: var(--color-primary); font-weight: 600; }

.testimonial-avatar {
    width: 60px; height: 60px;
    border-radius: 50%; object-fit: cover;
}

/* Hero inline section (home) */
.hero h1 { font-size: 56px; }
.hero-dark { color: #fff; }

/* Home citizenship CTA (dark section with white text) */
.dark-section { color: #fff; }
.dark-section h2 { color: #fff; font-size: 42px; }

/* Home swiper pagination */
.swiper-pagination-inline {
    position: relative;
    margin-top: 30px;
}

/* Logo images */
.site-logo { height: 48px; width: auto; }
.site-logo--inverted { filter: brightness(0) invert(1); }

/* Inline footer social / language items */
.inline-item { display: inline; }
.inline-item--sep { margin-left: 15px; }
[dir="rtl"] .inline-item--sep { margin-left: 0; margin-right: 15px; }

/* Contact / form */
.info-box { background: #fff; padding: 30px; box-shadow: 0 5px 25px rgba(0,0,0,.05); }
.info-box h5 { margin-bottom: 8px; }
.info-box .icon { font-size: 28px; color: var(--color-primary); margin-bottom: 15px; }

.contact-info-card {
    border: 1px solid var(--color-border);
    height: 100%;
}
.contact-map { min-height: 400px; }

/* Bordered card (used by citizenship steps) */
.bordered-card { border: 1px solid var(--color-border); }

/* Step number (citizenship process) */
.step-number {
    font-size: 60px; font-weight: 800;
    color: var(--color-primary);
    font-family: var(--font-sans);
    line-height: 1;
}

/* Blog card meta small text */
.blog-meta-small { font-size: 12px; color: #999; }

/* Blog sidebar thumbnails */
.blog-side-thumb {
    width: 70px; height: 70px; object-fit: cover;
}
.blog-side-title {
    font-weight: 500;
    color: var(--color-secondary);
    font-size: 14px;
}
.blog-related-title { font-size: 17px; }

/* Generic helpers */
.mt-negative { margin-top: -40px; }
.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.z-3 { z-index: 3; }

/* =======================================================================
   Site-wide popup — colors come from /css/theme.css (DB-driven)
   ======================================================================= */
.site-popup-backdrop {
    position: fixed; inset: 0; z-index: 9998;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.site-popup-backdrop.is-visible { opacity: 1; visibility: visible; }

.site-popup {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -40%) scale(.92);
    z-index: 9999;
    width: min(440px, 92vw);
    max-height: 92vh; overflow-y: auto;
    background: var(--popup-bg, #ffffff);
    color: var(--popup-text, #000000);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .35s ease, transform .35s cubic-bezier(.2,.9,.3,1.2), visibility .35s ease;
}
.site-popup.is-visible {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.site-popup__close {
    position: absolute; top: 12px; right: 14px;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(0,0,0,0.06); border: 0;
    color: var(--popup-text, #000000);
    font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s; z-index: 2;
}
.site-popup__close:hover { background: rgba(0,0,0,0.12); }
[dir="rtl"] .site-popup__close { right: auto; left: 14px; }

.site-popup__image {
    width: 100%; height: 220px; overflow: hidden;
    border-radius: 14px 14px 0 0;
    background: var(--popup-image-bg, linear-gradient(135deg, rgba(201,168,106,.15), #ffffff));
    display: flex; align-items: center; justify-content: center;
}
.site-popup__image img {
    max-width: 78%; max-height: 180px; object-fit: contain; display: block;
}

.site-popup__body { padding: 28px 32px 20px; text-align: center; }

.site-popup__title {
    text-transform: uppercase;
    font-size: 24px; font-weight: 700;
    letter-spacing: 1px;
    color: var(--popup-title, #c9a961);
    margin: 0 0 14px; line-height: 1.2;
}
.site-popup__description {
    text-transform: uppercase;
    font-size: 13px; line-height: 1.6;
    font-weight: 400;
    color: var(--popup-text, #000000);
    margin: 0 0 22px; letter-spacing: .3px;
}

.site-popup__cta {
    display: inline-block;
    padding: 12px 28px;
    background: var(--popup-btn-bg, #c71f3a);
    color: var(--popup-btn-text, #ffffff) !important;
    font-weight: 600; font-size: 14px;
    text-transform: uppercase; letter-spacing: 1px;
    border-radius: 6px; text-decoration: none;
    border: 0; cursor: pointer;
    transition: transform .2s, box-shadow .2s, filter .2s;
}
.site-popup__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
    filter: brightness(1.05);
    color: var(--popup-btn-text, #ffffff) !important;
}

.site-popup__footer {
    padding: 14px 32px 22px;
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
    background: rgba(0,0,0,0.015);
    border-radius: 0 0 14px 14px;
}
.site-popup__footer label {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: #6c757d; cursor: pointer;
    margin: 0; user-select: none;
}
.site-popup__footer input[type="checkbox"] {
    width: 16px; height: 16px; cursor: pointer; margin: 0;
    accent-color: var(--popup-btn-bg, #c71f3a);
}

@media (max-width: 520px) {
    .site-popup__image { height: 160px; }
    .site-popup__image img { max-height: 130px; }
    .site-popup__body { padding: 22px 20px 16px; }
    .site-popup__title { font-size: 20px; }
    .site-popup__description { font-size: 12px; }
}

/* ==== Property search bar (home + listing) ==== */
.property-search-bar {
    background: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.12);
    border-radius: 10px; padding: 18px 22px; position: relative; z-index: 5;
}
.property-search-grid {
    display: grid; gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    align-items: end;
}
.property-search-bar .field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.property-search-bar label {
    font-size: 11px; letter-spacing: 1px; font-weight: 600; color: #6c757d;
    text-transform: uppercase; margin: 0;
}
.property-search-bar select,
.property-search-bar input {
    border: 0; border-bottom: 1.5px solid #e3e3e3; padding: 6px 2px; font-size: 14px;
    background: transparent; color: var(--color-primary, #c9a961); font-weight: 500;
    outline: none; width: 100%;
}
.property-search-bar select:focus,
.property-search-bar input:focus { border-bottom-color: var(--color-primary, #c9a961); }
.property-search-bar .range-inputs { display: flex; gap: 8px; }
.property-search-bar .range-inputs input { flex: 1; min-width: 0; }
.property-search-bar .search-btn {
    background: var(--color-primary, #c9a961); color: #fff; border: 0;
    padding: 14px 22px; cursor: pointer; font-weight: 600;
    display: flex; align-items: center; gap: 8px; border-radius: 6px;
    min-height: 52px; transition: filter .2s;
}
.property-search-bar .search-btn:hover { filter: brightness(.92); }
@media (max-width: 1100px) {
    .property-search-grid { grid-template-columns: repeat(3, 1fr); }
    .property-search-bar .search-btn { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 700px) {
    .property-search-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .property-search-grid { grid-template-columns: 1fr; }
}

/* Home hero overlap */
.hero-search-overlap {
    position: relative; z-index: 6; margin-top: -55px; padding: 0 12px 50px;
}
.hero-search-overlap .container { max-width: 1200px; }

/* ==== Print / PDF for project page ==== */
@media print {
    @page { size: A4; margin: 12mm; }
    body { background: #fff !important; color: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .topbar, .main-navbar, .footer-main, .whatsapp-float, .no-print,
    .swiper-button-next, .swiper-button-prev, .swiper-pagination, .share-buttons,
    .property-sidebar form, #related, .related-projects, .page-banner { display: none !important; }
    .property-hero .main-gallery { height: 220px !important; page-break-inside: avoid; }
    .property-hero .thumbs-gallery { display: none !important; }
    .property-hero .main-gallery .swiper-wrapper { transform: none !important; display: flex; gap: 6px; }
    .property-hero .main-gallery .swiper-slide { flex: 0 0 33.33% !important; max-width: 33.33% !important; height: 220px !important; }
    .property-hero .main-gallery .swiper-slide img { object-fit: cover; width: 100%; height: 100%; }
    .property-title { font-size: 22px !important; margin-bottom: 6px !important; }
    .property-meta-bar, .property-meta-bar--compact { padding: 8px 0 !important; gap: 8px !important; }
    .section { padding: 0 !important; }
    .container { max-width: 100% !important; width: 100% !important; padding: 0 !important; }
    .row > [class*="col-"] { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
    aside.property-sidebar { box-shadow: none !important; border: 1px solid #ccc; padding: 8px !important; }
    .tab-content > .tab-pane { display: block !important; opacity: 1 !important; visibility: visible !important; }
    .nav-tabs { display: none !important; }
    a { color: #000 !important; text-decoration: none !important; }
    .property-price-badge, .price { background: #f2f2f2 !important; color: #000 !important; border: 1px solid #ccc; }
    .project-card, .project-card .image, .project-card .image img { height: auto !important; }
    .no-page-break, .property-hero, .property-title, .property-meta-bar { page-break-inside: avoid; }
}
