/* ==============================
   DAR AL ITQAN - MAIN STYLES
   ============================== */
:root {
    --navy: #142a36;
    --navy-light: #203e4b;
    --gold: #c6a568;
    --gold-light: #e1c994;
    --cream: #f7f5f0;
    --white: #ffffff;
    --text: #26343a;
    --muted: #738087;
    --border: #e6e5e0;
    --shadow: 0 12px 35px rgba(20, 42, 54, 0.09);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}
body {
    font-family: "Cairo", Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.8;
}
body[dir="ltr"] {
    font-family: Arial, sans-serif;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
select {
    cursor: pointer;
}
img {
    max-width: 100%;
    display: block;
}
.container {
    width: min(1160px, 92%);
    margin-inline: auto;
}
.section-padding {
    padding: 90px 0;
}
/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}
.navbar {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 47px;
    height: 47px;
    border-radius: 50%;
    color: var(--navy);
    background: var(--gold-light);
    font-size: 25px;
    font-weight: 800;
}
.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}
.brand-name strong {
    font-size: 18px;
    color: var(--navy);
}
.brand-name small {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 2px;
}
.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}
.nav-links a {
    color: var(--navy);
    font-size: 14px;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--gold);
}
.nav-actions {
    gap: 12px;
}
.language-button {
    border: 1px solid var(--border);
    background: white;
    color: var(--navy);
    border-radius: 7px;
    padding: 8px 12px;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 12px 22px;
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s ease;
    text-align: center;
}
.button:hover {
    transform: translateY(-2px);
}
.button-gold {
    color: var(--navy);
    background: var(--gold);
}
.button-gold:hover {
    background: var(--gold-light);
}
.button-dark {
    color: white;
    background: var(--navy);
}
.button-dark:hover {
    background: var(--navy-light);
}
.button-outline {
    color: white;
    border-color: rgba(255, 255, 255, 0.65);
    background: transparent;
}
.button-outline:hover {
    background: rgba(255, 255, 255, 0.12);
}
/* Hero */
.hero {
    min-height: 590px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(12, 27, 35, 0.88), rgba(12, 27, 35, 0.32)),
        url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=2000&q=90")
        center/cover no-repeat;
}
body[dir="rtl"] .hero {
    background:
        linear-gradient(270deg, rgba(12, 27, 35, 0.88), rgba(12, 27, 35, 0.32)),
        url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=2000&q=90")
        center/cover no-repeat;
}
.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    padding-block: 90px;
}
.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}
.hero h1 {
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.35;
    margin-bottom: 18px;
    max-width: 720px;
}
.hero p {
    max-width: 600px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
    margin-bottom: 28px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
/* Search */
.search-section {
    position: relative;
    z-index: 3;
    margin-top: -38px;
}
.search-box {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 18px;
    align-items: end;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.search-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.search-field label {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
}
.search-field select,
.form-control {
    width: 100%;
    min-height: 47px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    color: var(--text);
    outline: none;
}
.search-field select:focus,
.form-control:focus {
    border-color: var(--gold);
}
/* Section headings */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 35px;
}
.section-heading h2,
.about-content h2,
.contact-content h2 {
    color: var(--navy);
    font-size: clamp(27px, 3.5vw, 40px);
    line-height: 1.5;
    margin-bottom: 8px;
}
.section-heading p,
.about-content p,
.contact-content p {
    color: var(--muted);
}
/* Property cards */
.properties-section {
    background: var(--cream);
    padding-top: 90px;
}
.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.property-card {
    overflow: hidden;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform 0.25s, box-shadow 0.25s;
}
.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.property-image-wrap {
    height: 245px;
    position: relative;
    overflow: hidden;
    background: #e8e8e8;
}
.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}
.property-card:hover .property-image {
    transform: scale(1.04);
}
.property-badge {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    background: var(--gold);
    color: var(--navy);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 800;
}
.property-body {
    padding: 20px;
}
.property-location {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 6px;
}
.property-title {
    color: var(--navy);
    font-size: 19px;
    line-height: 1.5;
    margin-bottom: 10px;
}
.property-description {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 15px;
}
.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 12px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}
.property-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
}
.property-price {
    color: var(--navy);
    font-weight: 800;
    font-size: 18px;
}
.property-price small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
}
.property-footer .button {
    padding: 9px 13px;
    font-size: 12px;
}
.loading-message,
.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 35px 15px;
    color: var(--muted);
}
/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}
.about-image {
    overflow: hidden;
    border-radius: 12px;
    min-height: 360px;
}
.about-image img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}
.about-content p {
    margin-bottom: 24px;
}
/* Contact */
.contact-section {
    background: var(--navy);
    text-align: center;
}
.contact-content h2 {
    color: white;
}
.contact-content p {
    max-width: 650px;
    margin: 0 auto 25px;
    color: rgba(255, 255, 255, 0.75);
}
/* Footer */
.site-footer {
    padding: 25px 0;
    background: #0d1e27;
    color: white;
}
.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.footer-brand .brand-name strong {
    color: white;
}
.footer-content p,
.admin-link {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}
.admin-link:hover {
    color: var(--gold-light);
}
/* Admin and forms */
.admin-page {
    min-height: 100vh;
    background: var(--cream);
}
.admin-header {
    background: var(--navy);
    color: white;
    padding: 20px 0;
}
.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.admin-header h1 {
    font-size: 22px;
}
.admin-main {
    padding-block: 35px 70px;
}
.panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(20, 42, 54, 0.04);
}
.panel h2 {
    color: var(--navy);
    font-size: 22px;
    margin-bottom: 18px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form-group label {
    font-size: 13px;
    font-weight: 700;
}
.form-control {
    min-height: 45px;
}
textarea.form-control {
    min-height: 110px;
    resize: vertical;
}
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.status-message {
    margin-top: 15px;
    font-size: 14px;
    overflow-wrap: anywhere;
}
.status-message.error {
    color: #b42318;
}
.status-message.success {
    color: #137547;
}
.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}
.admin-table th,
.admin-table td {
    text-align: start;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.admin-table th {
    background: var(--cream);
    color: var(--navy);
}
.admin-table img {
    width: 65px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}
.table-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}
.button-small {
    border: 0;
    border-radius: 5px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
}
.button-edit {
    background: #e8f1f7;
    color: #1b536b;
}
.button-delete {
    background: #fde8e7;
    color: #b42318;
}
.hidden {
    display: none !important;
}
/* WhatsApp floating shortcut */
.whatsapp-float {
    position: fixed;
    z-index: 90;
    bottom: 22px;
    inset-inline-end: 22px;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #20bd65;
    color: white;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.2);
}
/* Responsive */
@media (max-width: 1000px) {
    .nav-links {
        gap: 12px;
    }
    .nav-links a {
        font-size: 12px;
    }
    .properties-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .search-box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .search-box > button {
        min-height: 47px;
    }
}
@media (max-width: 720px) {
    .navbar {
        flex-wrap: wrap;
        padding-block: 12px;
        gap: 12px;
    }
    .nav-links {
        order: 3;
        width: 100%;
        justify-content: space-between;
        overflow-x: auto;
        padding: 6px 0;
    }
    .nav-links a {
        white-space: nowrap;
    }
    .nav-actions {
        margin-inline-start: auto;
    }
    .nav-actions .button {
        display: none;
    }
    .hero {
        min-height: 520px;
    }
    .hero-content {
        padding-block: 70px;
    }
    .hero h1 {
        font-size: 36px;
    }
    .search-section {
        margin-top: -20px;
    }
    .search-box {
        grid-template-columns: 1fr;
        padding: 18px;
    }
    .section-padding {
        padding: 60px 0;
    }
    .properties-section {
        padding-top: 60px;
    }
    .properties-grid {
        grid-template-columns: 1fr;
    }
    .property-image-wrap {
        height: 230px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-image,
    .about-image img {
        min-height: 250px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: auto;
    }
    .panel {
        padding: 17px;
    }
}
.inquiry-form { width: min(600px, 100%); margin: 25px auto; display: grid; gap: 14px; text-align: start; } .inquiry-form textarea { min-height: 120px; } .inquiry-form button { width: 100%; } #inquiryStatus { font-size: 14px; overflow-wrap: anywhere; }

/* Logo image and multi-image property gallery */
.brand-logo { width: 54px; height: 54px; object-fit: contain; display: block; }
.property-thumbnails { display:flex; gap:6px; overflow-x:auto; padding:8px 12px; }
.property-thumbnails img { width:64px; height:48px; object-fit:cover; border-radius:6px; flex:0 0 auto; }

/* Updated brand and interactive property gallery */
.brand-logo { width: 76px; height: 76px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.property-thumbnails { display:flex; gap:7px; padding:9px; overflow-x:auto; }
.thumbnail-button { padding:0; border:2px solid transparent; border-radius:6px; background:transparent; flex:0 0 65px; overflow:hidden; }
.thumbnail-button:focus-visible { border-color:var(--gold); outline:2px solid var(--navy); }
.thumbnail-button img { width:65px; height:54px; object-fit:cover; }
@media(max-width:650px) { .brand-logo { width:55px; height:55px; } }

.property-image-link{display:block}.details-button{display:flex;margin-top:12px}.brand-logo{width:58px;height:58px;object-fit:contain}
