* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    background-color: #F7F5F0;
    color: #1C1A17;
    line-height: 1.6;
    min-height: 100vh;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}

.btn-primary {
    background: var(--primary,#2563EB);
    color: #FFFFFF;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #E4DFD6;
    color: #1C1A17;
}

.btn-primary:hover {
    background: var(--primary-dark,#1D4ED8);
}

.navbar {
    background: #FFFFFF;
    border-bottom: 1px solid #E4DFD6;
    height: 64px;
    display: flex;
    align-items: center;
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar__logo {
    font-size: 22px;
    font-weight: bold;
}

.navbar__logo span {
    color: var(--primary,#2563EB);
}

.navbar__nav {
    display: flex;
    gap: 25px;
}

.navbar__nav a {
    font-size: 14px;
    color: #7A7267;
}

.navbar__nav a:hover {
    color: #1C1A17;
}

.navbar__actions {
    display: flex;
    gap: 10px;
}

.hero {
    background: #EEE9DF;
    padding: 80px 24px;
    text-align: center;
    background: url("../images/banner.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}

.hero__title {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 40px;
    margin-top: 40px;
}

.hero__subtitle {
    color: #7A7267;
    margin-bottom: 35px;
}

.search-bar {
    display: flex;
    background: #FFFFFF;
    border: 1px solid #E4DFD6;
    border-radius: 12px;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}

.search-bar__field {
    flex: 1;
    padding: 12px 20px;
    border-inline-end: 1px solid #E4DFD6;
    text-align:start;
}

.search-bar__field:last-of-type {
    border-inline-end: none;
}

.search-bar__label {
    display: block;
    font-size: 11px;
    font-weight: bold;
    color: #7A7267;
    text-transform: uppercase;
}

.search-bar__input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
}

.search-bar__btn {
    border-radius: 0;
    padding: 0 30px;
}

/* Nav Dropdown Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown__btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.nav-dropdown__btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.nav-dropdown__content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 8px 0;
}

/* Invisible bridge to prevent hover loss across the margin gap */
.nav-dropdown__content::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.nav-dropdown__content a {
    color: #475569;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-dropdown__content a:hover {
    background-color: #f1f5f9;
    color: var(--primary,#2563EB);
}

.nav-dropdown:hover .nav-dropdown__content {
    display: block;
}

.auth-page {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-card {
    background: #FFFFFF;
    width: 100%;
    max-width: 450px;
    border: 1px solid #E4DFD6;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    background: #F0EDE7;
    border-bottom: 1px solid #E4DFD6;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: #7A7267;
}

.auth-tab.active {
    background: #FFFFFF;
    color: #1C1A17;
}

.auth-panel {
    padding: 30px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-label {
    font-size: 12px;
    font-weight: bold;
    color: #7A7267;
}

.form-input {
    padding: 10px;
    border: 1px solid #E4DFD6;
    border-radius: 6px;
    background: #FAFAF8;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary,#2563EB);
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: "";
    height: 1px;
    background: #E4DFD6;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 1;
}

.auth-divider span {
    background: #FFFFFF;
    padding: 0 10px;
    position: relative;
    z-index: 2;
    font-size: 12px;
    color: #7A7267;
}


.section {
    padding: 60px 0;
}

/* A grid (not flex-wrap): cards left over on the last row keep the SAME size as the others
   instead of stretching across the whole row. 3 per row on a computer, 2 on a tablet, 1 on a phone. */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 20px;
}

.card {
    background: #FFFFFF;
    flex: 1 1 300px;
    border-radius: 15px;
    border: 1px solid #E4DFD6;
    overflow: hidden;
}

.card__img {
    height: 200px;
    background: #E8E3DA;
}

.card__img_image {
    height: 200px;
    width: 100%;
}

.card__body {
    padding: 20px;
}

.footer {
    background: #FFFFFF;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #E4DFD6;
    margin-top: auto;
}

.footer__links {
    margin-bottom: 15px;
}

.footer__links a {
    margin: 0 10px;
    font-size: 13px;
    color: #7A7267;
}

.footer__copy {
    font-size: 12px;
    color: #B5AFA6;
}

@media (max-width: 768px) {

    .navbar__nav {
        display: none;
    }

    .hero__title {
        font-size: 28px;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar__field {
        border-inline-end: none;
        border-bottom: 1px solid #E4DFD6;
    }

    .form-row {
        display: flex;
        flex-direction: column;
    }
}

/* 1. الأساسيات */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    background-color: #F7F5F0;
    color: #1C1A17;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 2. الأزرار */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.2s;
    gap: 8px;
}

.btn-primary {
    background: var(--primary,#2563EB);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--primary-dark,#1D4ED8);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #E4DFD6;
    color: #1C1A17;
}

.btn-outline:hover {
    border-color: #1C1A17;
}

/* 3. الهيدر والفوتر */
.navbar {
    background: #FFFFFF;
    border-bottom: 1px solid #E4DFD6;
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar__logo {
    font-size: 22px;
    font-weight: bold;
}

.navbar__logo span {
    color: var(--primary,#2563EB);
}

.navbar__nav {
    display: flex;
    gap: 25px;
}

.navbar__nav a {
    font-size: 14px;
    color: #7A7267;
}

.navbar__actions {
    display: flex;
    gap: 10px;
}

.footer {
    background: #FFFFFF;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #E4DFD6;
    margin-top: auto;
}

.footer__links a {
    margin: 0 10px;
    font-size: 13px;
    color: #7A7267;
}

.footer__copy {
    font-size: 12px;
    color: #B5AFA6;
    margin-top: 10px;
}

/* 4. كود صفحة الرسائل (Chat) - مبسط */
.chat-wrapper {
    flex: 1;
    display: flex;
    overflow: hidden;
    background: #FFFFFF;
    border-top: 1px solid #E4DFD6;
}

/* القائمة الجانبية للمحادثات */
.thread-sidebar {
    width: 300px;
    border-inline-end: 1px solid #E4DFD6;
    display: flex;
    flex-direction: column;
    background: #FBFBFA;
}

.thread-sidebar__header {
    padding: 15px;
    border-bottom: 1px solid #E4DFD6;
    background: #fff;
}

.thread-search {
    width: 100%;
    padding: 8px;
    border: 1px solid #E4DFD6;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.thread-list {
    overflow-y: auto;
    flex: 1;
}

.thread-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-bottom: 1px solid #F0EDE7;
    cursor: pointer;
}

.thread-item:hover {
    background: #F7F5F0;
}

.thread-item.active {
    background: var(--primary-tint,#EFF4FF);
    border-inline-start: 4px solid var(--primary,#2563EB);
}

.thread-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #E4DFD6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.thread-info {
    flex: 1;
}

.thread-name {
    font-weight: 600;
    font-size: 14px;
}

.thread-preview {
    font-size: 12px;
    color: #7A7267;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* منطقة المحادثة */
.convo-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #F7F5F0;
}

.convo-header {
    padding: 12px 20px;
    background: #fff;
    border-bottom: 1px solid #E4DFD6;
    display: flex;
    align-items: center;
    gap: 12px;
}

.convo-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* الفقاعات (Bubbles) */
.bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    position: relative;
}

.bubble--in {
    background: #FFFFFF;
    align-self: flex-start;
    border: 1px solid #E4DFD6;
    border-bottom-left-radius: 2px;
}

.bubble--out {
    background: var(--primary,#2563EB);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.bubble__time {
    font-size: 10px;
    display: block;
    margin-top: 5px;
    opacity: 0.7;
}

/* منطقة الإدخال */
.convo-input-bar {
    padding: 15px 20px;
    background: #fff;
    border-top: 1px solid #E4DFD6;
    display: flex;
    gap: 10px;
    align-items: center;
}

.msg-input-field {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #E4DFD6;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
}

.msg-input-field:focus {
    border-color: var(--primary,#2563EB);
}

/* 5. التجاوب مع الموبايل */
@media (max-width: 768px) {
    .thread-sidebar {
        display: none;
    }

    /* لإبقاء الشات واسعاً على الموبايل */
    .navbar__nav,
    .navbar__actions .btn-outline {
        display: none;
    }

    .hero__title {
        font-size: 28px;
    }

    .search-bar {
        flex-direction: column;
    }

    .bubble {
        max-width: 85%;
    }
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-body, 'DM Sans', sans-serif);   /* Arabic pages set --font-body to Cairo (css/rtl.css) */
}

body {
    background-color: #F7F5F0;
    color: #1C1A17;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

.header {
    background: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E4DFD6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

.logo span {
    color: var(--primary,#2563EB);
}

.nav-links a {
    margin-inline-end: 20px;
    color: #7A7267;
    font-size: 14px;
}

.nav-buttons .btn {
    padding: 8px 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    margin-inline-start: 5px;
}

.btn-blue {
    background: var(--primary,#2563EB);
    color: white;
}

.btn-outline {
    background: white;
    border: 1px solid #E4DFD6 !important;
}

.main-wrapper {
    display: flex;
    flex: 1;
}

.sidebar {
    width: 240px;
    background: #F4F1EB;
    border-inline-end: 1px solid #E4DFD6;
    padding: 20px;
}

.user-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E4DFD6;
    margin-bottom: 20px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--primary,#2563EB);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.menu-item {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 5px;
    border: none;
    background: none;
    text-align:start;
    cursor: pointer;
    border-radius: 8px;
    color: #7A7267;
    font-size: 15px;
}

.menu-item:hover,
.menu-item.active {
    background: #E4DFD6;
    color: #1C1A17;
}

.menu-item.active {
    background: var(--primary-tint,#EFF4FF);
    color: var(--primary,#2563EB);
    font-weight: bold;
}

.content {
    flex: 1;
    padding: 30px;
}

.page-title {
    margin-bottom: 20px;
    font-size: 24px;
}

.stats-container {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #E4DFD6;
    flex: 1;
    min-width: 150px;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    display: block;
}

.stat-label {
    color: #7A7267;
    font-size: 13px;
}

.table-container {
    background: white;
    border-radius: 12px;
    border: 1px solid #E4DFD6;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #F0EDE7;
    padding: 12px;
    text-align:start;
    font-size: 12px;
    color: #7A7267;
}

td {
    padding: 15px;
    border-bottom: 1px solid #E4DFD6;
    font-size: 14px;
}

.status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.confirmed {
    background: #DCFCE7;
    color: #16A34A;
}

.pending {
    background: #FEF3C7;
    color: #D97706;
}

.profile-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #E4DFD6;
    max-width: 600px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    color: #7A7267;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #E4DFD6;
    border-radius: 6px;
}

.messages-box {
    display: flex;
    height: 400px;
    background: white;
    border: 1px solid #E4DFD6;
    border-radius: 12px;
}

.msg-list {
    width: 200px;
    border-inline-end: 1px solid #E4DFD6;
    padding: 10px;
}

.msg-chat {
    flex: 1;
    background: #F7F5F0;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.chat-bubble {
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    max-width: 80%;
    font-size: 14px;
}

.bubble-in {
    background: white;
    align-self: flex-start;
}

.bubble-out {
    background: var(--primary,#2563EB);
    color: white;
    align-self: flex-end;
}

.page-panel {
    display: none;
}

.page-panel.active {
    display: block;
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
        padding: 10px;
    }

    .sidebar span,
    .user-box div {
        display: none;
    }

    .main-wrapper {
        flex-direction: column;
    }
}

.contact-wrapper {
    display: flex;
    gap: 30px;
    padding: 50px 0;
    flex-wrap: wrap;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #E4DFD6;
    flex: 2;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #7A7267;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1.5px solid #E4DFD6;
    border-radius: 8px;
    background: #FAFAF8;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary,#2563EB);
    background: white;
}

.btn-send {
    background: var(--primary,#2563EB);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    font-size: 16px;
}

.btn-send:hover {
    background: var(--primary-dark,#1D4ED8);
}

.contact-info-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #E4DFD6;
    flex: 1;
    min-width: 300px;
    height: fit-content;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-tint,#EFF4FF);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary,#2563EB);
    font-weight: bold;
}

.info-text p {
    font-size: 14px;
    color: #1C1A17;
    font-weight: 500;
}

.info-text span {
    font-size: 12px;
    color: #7A7267;
    display: block;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.hours-section {
    border-top: 1px solid #E4DFD6;
    padding-top: 20px;
    margin-top: 20px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 5px;
}

.hours-day {
    color: #7A7267;
}

.hours-time {
    font-weight: bold;
}

#success-msg {
    display: none;
    background: #DCFCE7;
    color: #16A34A;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid #E4DFD6;
    background: white;
    margin-top: 50px;
}

.footer p {
    font-size: 13px;
    color: #B5AFA6;
}

@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }
}

.steps-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
}

.step {
    color: #7A7267;
    display: flex;
    align-items: center;
    gap: 5px;
}

.step.active {
    color: var(--primary,#2563EB);
    font-weight: bold;
}

.step.done {
    color: #16A34A;
}

.line {
    flex: 1;
    height: 1px;
    background: #E4DFD6;
    max-width: 50px;
}

.checkout-layout {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.details-section {
    flex: 2;
    min-width: 350px;
}

.card-panel {
    background: white;
    border-radius: 12px;
    border: 1px solid #E4DFD6;
    padding: 30px;
    margin-bottom: 20px;
}

.panel-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 1px solid #F0EDE7;
    padding-bottom: 10px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #7A7267;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1.5px solid #E4DFD6;
    border-radius: 8px;
    background: #FAFAF8;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary,#2563EB);
    background: white;
}

.summary-section {
    flex: 1;
    min-width: 300px;
    position: sticky;
    top: 20px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    border: 2px solid #E4DFD6;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.summary-total {
    border-top: 1px dashed #E4DFD6;
    margin-top: 15px;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 18px;
    color: var(--primary,#2563EB);
}

.btn-confirm {
    background: #16A34A;
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    font-size: 16px;
}

.btn-confirm:hover {
    background: #15803D;
}

.error-input {
    border-color: #DC2626 !important;
}

@media (max-width: 768px) {
    .checkout-layout {
        flex-direction: column;
    }

    .summary-section {
        position: static;
        order: -1;
    }

    /* اجعل الملخص في الأعلى في الموبايل */
}

:root {
    --primary: #2563EB;
    --bg: #F8F9FA;
    --text: #1F2937;
    --muted: #6B7280;
    --border: #E5E7EB;
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-body, 'DM Sans', sans-serif);   /* Arabic pages set --font-body to Cairo (css/rtl.css) */
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--text);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

/* Header Title */
.chalet-header {
    padding: 30px 0 20px;
}

.chalet-title {
    font-size: 28px;
    margin-bottom: 5px;
}

.chalet-meta {
    font-size: 14px;
    color: var(--muted);
    display: flex;
    gap: 15px;
}

.rating {
    color: #F59E0B;
    font-weight: bold;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 400px;
    gap: 10px;
    margin-bottom: 30px;
    border-radius: var(--radius);
    overflow: hidden;
}

.main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #DDD;
}

.side-imgs {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}

.side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #CCC;
}

/* Layout Body */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-bottom: 60px;
}

/* Info Section */
.info-content h2 {
    margin-bottom: 15px;
    font-size: 22px;
}

.description {
    color: var(--muted);
    margin-bottom: 30px;
}

.amenities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.amenity {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.amenity-icon {
    width: 35px;
    height: 35px;
    background: white;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Booking Widget */
.booking-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.price-per-night {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.price-per-night span {
    font-size: 14px;
    color: var(--muted);
    font-weight: normal;
}

.input-box {
    margin-bottom: 15px;
}

.input-box label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: var(--muted);
    margin-bottom: 5px;
}

.input-box input,
.input-box select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #F9FAFB;
}

.price-calc {
    border-top: 1px solid var(--border);
    margin-top: 20px;
    padding-top: 15px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.total-row {
    font-weight: bold;
    font-size: 18px;
    color: var(--primary);
    margin-top: 10px;
}

.btn-book {
    background: var(--primary);
    color: white;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-book:hover {
    background: var(--primary-dark,#1D4ED8);
}

/* Mobile Responsive */
@media (max-width: 850px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 250px;
    }

    .side-imgs {
        display: none;
    }

    .main-layout {
        grid-template-columns: 1fr;
    }

    .booking-card {
        position: static;
        order: -1;
    }
}

/* ===== Calma Chalet - phone menu and small-screen fixes ===== */

/* The banner title sits on a photo: a soft light glow keeps it readable everywhere */
.hero__title {
    text-shadow: 0 0 14px rgba(255, 255, 255, .9), 0 0 3px rgba(255, 255, 255, .9);
}

/* Phone menu button + panel (hidden on wide screens) */
.navbar__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    background: #FFFFFF;
    border: 1px solid #E4DFD6;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.navbar__toggle span {
    display: block;
    height: 2px;
    background: #1C1A17;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

.navbar__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.is-open span:nth-child(2) { opacity: 0; }
.navbar__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.navbar__mobile {
    display: none;
}

/* "Hello, name" menu: also opens with a tap (touch screens) */
.nav-dropdown.is-open .nav-dropdown__content {
    display: block;
}

.nav-dropdown__btn {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .navbar--responsive .navbar__nav,
    .navbar--responsive .navbar__actions {
        display: none;
    }

    .navbar__toggle {
        display: flex;
    }

    .navbar__inner {
        padding: 0 16px;
    }

    .navbar__mobile {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 99;
        background: #FFFFFF;
        border-bottom: 1px solid #E4DFD6;
        box-shadow: 0 14px 24px rgba(28, 26, 23, .10);
        padding: 6px 16px 18px;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }

    .navbar__mobile.is-open {
        display: block;
    }

    .navbar__mobile > a:not(.btn) {
        display: block;
        padding: 14px 4px;
        font-size: 16px;
        font-weight: 500;
        color: #1C1A17;
        border-bottom: 1px solid #F1EDE4;
    }

    .navbar__mobile > a:not(.btn):active {
        background: #F7F5F0;
    }

    .navbar__mobile .navbar__mobile-logout {
        color: #DC2626;
        border-bottom: 0;
    }

    .navbar__mobile-user {
        padding: 16px 4px 4px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: #7A7267;
    }

    .navbar__mobile-buttons {
        display: flex;
        gap: 10px;
        padding-top: 16px;
    }

    .navbar__mobile-buttons .btn {
        flex: 1;
        padding: 12px 10px;
    }

    .hero {
        padding: 48px 16px;
    }

    .container {
        padding-inline-start: 16px;
        padding-inline-end: 16px;
    }
}

@media (max-width: 480px) {
    .navbar__logo {
        font-size: 20px;
    }

    .hero__title {
        font-size: 26px;
        margin-top: 20px;
        margin-bottom: 24px;
    }
}

/* ===== footer: social links + language button on the phone menu ===== */
.footer__social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 4px;
}

.footer__social a {
    padding: 6px 14px;
    border: 1px solid #E4DFD6;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #7A7267;
    background: #FFFFFF;
}

.footer__social a:hover {
    color: var(--primary, #2563EB);
    border-color: var(--primary, #2563EB);
}

@media (max-width: 768px) {
    .navbar__mobile > a.navbar__mobile-lang {
        color: var(--primary, #2563EB);
        font-weight: 700;
    }
}

/* footer links: a long link moves to the next line as a whole (it is never cut in the middle) */
.footer__links a {
    display: inline-block;
    margin-top: 4px;
    margin-bottom: 4px;
}


/* ==== v2.1: search by dates (two rows on wide screens) ==== */
.search-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #E4DFD6; max-width: 820px; }
.search-bar__field { background: #FFFFFF; border: none; min-width: 0; }
.search-bar__field:last-of-type { border: none; }
.search-bar__input { font-family: inherit; min-width: 0; background: transparent; }
.search-bar__btn { width: 100%; min-height: 58px; padding: 0 20px; }
@media (max-width: 768px) {
    .search-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search-bar__field { padding: 10px 14px; border-bottom: none; }
    .search-bar__field--wide, .search-bar__btn { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
    .search-bar { grid-template-columns: minmax(0, 1fr); }
}
