:root {
  --main-bg: #fafafa;
  /* خلفية بيضاء ناعمة */
  --secondary-bg: #efe8d8;
  /* بيج فاتح */
  --accent-color: #800000;
  /* عنابي داكن */
  --text-main: #333333;
  /* أسود ناعم */
  --text-muted: #7b2c3b;
  /* عنابي فاتح */
}
a {
  text-decoration: none;
  color: #800000; /* Optional: Inherit color from parent if you don't want default blue */
}

/* On hover, still no underline */
a:hover {
  text-decoration: none;
}
html {
  scroll-behavior: smooth;
}

/* تكبير Flatpickr بـ 7px فقط */
.flatpickr-calendar {
    font-size: 14px !important;
    transform: scale(1.05) !important;
    transform-origin: top left !important;
}

.flatpickr-day {
    height: 35px !important;
    width: 35px !important;
    line-height: 35px !important;
}

.flatpickr-weekday {
    height: 28px !important;
    line-height: 28px !important;
}

.flatpickr-months {
    height: 38px !important;
}

.flatpickr-current-month {
    font-size: 15px !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    width: 30px !important;
    height: 30px !important;
}
 /* تكبير Flatpickr بـ 7px فقط */
    .flatpickr-calendar {
        font-size: 14px !important;
        transform: scale(1.05) !important;
        transform-origin: top left !important;
    }
    
    .flatpickr-day {
        height: 35px !important;
        width: 35px !important;
        line-height: 35px !important;
    }
    
    .flatpickr-weekday {
        height: 28px !important;
        line-height: 28px !important;
    }
    
    .flatpickr-months {
        height: 38px !important;
    }
    
    .flatpickr-current-month {
        font-size: 15px !important;
    }
    
    .flatpickr-prev-month,
    .flatpickr-next-month {
        width: 30px !important;
        height: 30px !important;
    }
body {
  background-color: var(--main-bg);
  font-family: "Cairo", sans-serif;
  color: var(--text-main);
  direction: rtl;
}

/* أزرار النموذج */
.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-primary:hover {
  background-color: #a52a2a;
  border-color: #a52a2a;
}

/* العناوين */
h1,
h2,
h5 {
  color: var(--accent-color);
}

.navbar {
  background: var(--secondary-bg);
}
.navbar-nav .navbar-brand {
  color: var(--accent-color);
}
.navbar-nav .nav-link {
  font-size: 18px;
  color: var(--text-muted);
  transition: all 0.3s ease-in-out;
}
.navbar-nav .nav-link:hover {
  color: var(--accent-color);
  transform: scaleY(1.5);
}

/* Start index.php */
.hero-section {
  background-color: #f8f9fa;
  padding: 60px 0;
  margin-top: 56px;
}

/* زر الحجز */
.hero-btn {
  background-color: var(--accent-color);
  border: none;
}

.hero-btn:hover {
  background-color: #a52a2a;
  /* عنابي أفتح */
}

/* تواصل معنا */
.contact-section form {
  max-width: 600px;
}

/* آراء العملاء */
.clients_opinion,
#about {
  background-color: var(--secondary-bg) !important;
}

.owl-carousel .card {
  background-color: white;
  border: 1px solid #eadbc8;
}

.owl-carousel .text-muted {
  color: var(--text-muted) !important;
}

.gallery img {
  object-fit: cover;
  height: 200px;
}
.gallery .card {
  transition: all 0.5s ease-in-out;
}
.gallery .card:hover {
  transform: scale(1.3);
  z-index: 9999;
}
.info-section {
  align-items: center;
}
.info-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
}
.info-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-heading a {
  font-size: 20px;
  color: var(--accent-color);
}
/* End index.php */

/* Start show_plan.php */
.office-scroll {
  overflow-x: auto;
  direction: rtl;
}
.office-scroll .rounded {
  transition: all 0.5s ease-in-out;
}
.office-scroll .rounded:hover {
  cursor: pointer;
  border: var(--text-main) 2px solid !important;
  background: var(--main-bg) !important;
}
.rect1 {
  border: 4px solid #896538;
}

/* Right Column */
.office-number-a,
.office-number-a-bottom,
.office-number-p-bottom,
.office-number-b-bottom,
.office-number-p-top,
.office-number-b-top,
.office-number-d-bottom,
.office-number-e-bottom,
.office-number-e-top {
  font-size: 18px;
  display: inline-flex;
  position: relative;
  bottom: -17px;
}

.code-l {
  writing-mode: vertical-rl;
  position: relative;
  top: 4px;
  left: 13px;
}
.code-n {
  writing-mode: vertical-rl;
  position: relative;
  top: -20px;
  left: -4px;
}

/* A01 - A06 */
.office-number-a {
  border: #0dcaf0 0 solid;
  border-width: 0 4px 4px 4px;
  width: 60px;
  height: 60px;
  float: left;
  border-radius: 0 0 51px 0;
  top: 0;
  margin-right: -12px;
  background-color: #fff;
}
.office-number-a .code {
  position: relative;
  top: -4px;
  right: 4px;
  margin: 5px;
  width: 45px;
  height: 45px;
  border: #0dcaf0 4px solid;
}

/* A07 - A12 */
.office-number-a-bottom {
  border: #0dcaf0 0 solid;
  border-width: 4px 4px 0 4px;
  width: 60px;
  height: 60px;
  float: left;
  border-radius: 0 51px 0 0;
  top: 7px;
  margin-right: -12px;
  background-color: #fff;
}
.office-number-a-bottom .code {
  position: relative;
  top: 10px;
  right: 2px;
  margin: 5px;
  width: 45px;
  height: 45px;
  border: #0dcaf0 4px solid;
}

/* P2 */
.office-number-p-bottom {
  border: #0dcaf0 0 solid;
  border-width: 4px 0 4px 4px;
  width: 60px;
  height: 60px;
  float: left;
  border-radius: 51px 0 0 0;
  top: 82.9%;
  margin-right: -13px;
  background-color: #fff;
}
.office-number-p-bottom .code {
  position: relative;
  top: 2px;
  right: -2px;
  margin: 5px;
  width: 45px;
  height: 45px;
  border: #0dcaf0 4px solid;
}

.office-number-p-top {
  border: #0dcaf0 0 solid;
  border-width: 4px 0 4px 4px;
  width: 60px;
  height: 60px;
  float: left;
  border-radius: 0 0 0 51px;
  top: 2px;
  margin-right: -4px;
  background-color: #fff;
}
.office-number-p-top .code {
  position: relative;
  top: -4px;
  right: -5px;
  margin: 5px;
  width: 45px;
  height: 45px;
  border: #0dcaf0 4px solid;
}

.office-number-p-bottom .code-l {
  left: 4px;
  top: 7px;
}
.office-number-p-top .code-l {
  left: 1px;
  top: 7px;
}
/* E01 */
.office-number-e-top {
  border: #0dcaf0 4px solid;
  width: 60px;
  height: 60px;
  float: right;
  border-radius: 0 0 0 51px;
  top: 4px;
  margin-right: -2px;
  background-color: #fff;
}
.office-number-e-top .code {
  position: relative;
  top: -2px;
  right: -5px;
  margin: 5px;
  width: 45px;
  height: 45px;
  border: #0dcaf0 4px solid;
}

/* E02 */
.office-number-e-bottom {
  border: #0dcaf0 4px solid;
  width: 60px;
  height: 60px;
  float: right;
  border-radius: 51px 0 0 0;
  top: 2px;
  margin-right: -2px;
  background-color: #fff;
}
.office-number-e-bottom .code {
  position: relative;
  top: 4px;
  right: -5px;
  margin: 5px;
  width: 45px;
  height: 45px;
  border: #0dcaf0 4px solid;
}

/* D04 - D03 */
.office-number-d-bottom {
  border: #0dcaf0 4px solid;
  width: 60px;
  height: 60px;
  float: right;
  border-radius: 0 0 0 51px;
  top: 4px;
  margin-right: -2px;
  background-color: #fff;
}
.office-number-d-bottom .code {
  position: relative;
  top: -4px;
  right: -5px;
  margin: 5px;
  width: 45px;
  height: 45px;
  border: #0dcaf0 4px solid;
}

/* B10 - B12 */
.office-number-b-top {
  border: #0dcaf0 0 solid;
  border-width: 0 4px 4px 4px;
  width: 60px;
  height: 60px;
  float: left;
  border-radius: 0 0 51px 0;
  top: 0;
  margin-left: 2px;
  background-color: #fff;
}
.office-number-b-top .code {
  position: relative;
  top: -4px;
  left: -4px;
  margin: 5px;
  width: 45px;
  height: 45px;
  border: #0dcaf0 4px solid;
}

/* B07 - B09 */
.office-number-b-bottom {
  border: #0dcaf0 0 solid;
  border-width: 4px 4px 0 4px;
  width: 60px;
  height: 60px;
  float: left;
  border-radius: 0 51px 0 0;
  top: 0;
  margin-left: 2px;
  background-color: #fff;
}
.office-number-b-bottom .code {
  position: relative;
  top: 5px;
  left: -2px;
  margin: 5px;
  width: 45px;
  height: 45px;
  border: #0dcaf0 4px solid;
}

.A01_A06 {
  position: relative;
  bottom: -50px;
}

.men-placeholder,
.women-placeholder {
  writing-mode: vertical-rl;
  color: #00f00a;
  position: relative;
  left: 20px;
}
.women-placeholder {
  margin-top: -20px;
}
/* End show_plan.php */

/* Contact Section Styles */
.contact-section {
  background: linear-gradient(to bottom, #f8f9fa, #ffffff);
  padding: 4rem 0;
  margin-top: 50px;
}

.contact-section h2 {
  color: #800000;
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
}

.info-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  width: fit-content;
  margin: 0 auto 1rem;
}

.info-section:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.info-img:hover {
  transform: scale(1.1);
}

.info-text {
  text-align: right;
}

.info-heading {
  font-size: 1.2rem;
  font-weight: 500;
  color: #4a5568;
  margin: 0;
}

.info-link {
  color: #800000;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.info-link:hover {
  opacity: 0.8;
}

.contact-numbers {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-label {
  color: #800000;
  font-weight: 500;
}

/* Social Media Section */
.social-media {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.social-media a {
  transition: transform 0.3s ease;
}

.social-media a:hover {
  transform: scale(1.1);
}

.social-media img {
  max-width: 50px;
}

/* Mobile Image */
.mobile-image {
  display: none;
}

@media (max-width: 768px) {
  .mobile-image {
    display: block;
    text-align: center;
  }

  .mobile-image img {
    max-width: 399px;
    margin: 0 auto;
  }


/* الخط الرئيسي */
body, .form-control, .form-select, label, button {
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif !important;
}

/* ألوان وهوية الشركة */
:root {
    --main-color: #800000; /* لون الشركة الأساسي */
    --main-light: #f9f6f2;
    --main-border: #c7b299;
    --main-accent: #7c5c3b;
}

/* خلفية ونمط الفورم */
.search-form-container {
    background: var(--main-light);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1.5px solid var(--main-border);
    padding: 32px 24px 18px 24px;
    margin-bottom: 32px;
}

/* الحقول */
.form-control, .form-select {
    border-radius: 10px !important;
    border: 1.5px solid var(--main-border) !important;
    min-height: 48px;
    background: #fffdfa;
    color: #333;
    font-size: 1.1rem !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--main-color) !important;
    box-shadow: 0 0 0 2px #80000022;
}

/* التسميات */
label {
    font-size: 1.2rem !important;
    font-weight: 600;
    color: var(--main-accent);
}

/* الأزرار */
.btn-success, .btn-primary {
    background: var(--main-color) !important;
    border: none !important;
    color: #fff !important;
    font-weight: bold;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(128,0,0,0.08);
    transition: background 0.2s;
}
.btn-success:hover, .btn-primary:hover {
    background: #5a2d0c !important;
}

/* تحسين المسافات بين الحقول */
.search-form-container .col-4,
.search-form-container .col-12 {
    margin-bottom: 18px;
}

/* تحسين مظهر رسائل التنبيه */
.alert {
    border-radius: 10px;
    font-size: 1.1rem;
}

/* تحسين مظهر select الأثاث */
select.form-select {
    min-width: 180px;
    padding: 8px 12px;
}

/* تحسين مظهر الفورم بشكل عام */
.search-form-container input[type='date'],
.search-form-container input[type='text'],
.search-form-container input[type='number'] {
    direction: rtl;
    text-align: right;
}

/* ألوان القاعات والمكاتب - بسيط */
.bg-danger.text-white.bg-opacity-25 {
    background-color: rgba(220, 53, 69, 0.25) !important;
    color: white !important;
}

.bg-success.text-white.bg-opacity-25 {
    background-color: rgba(25, 135, 84, 0.25) !important;
    color: white !important;
}

.bg-secondary.text-white.bg-opacity-10 {
    background-color: rgba(108, 117, 125, 0.1) !important;
    color: #6c757d !important;
}

/* تأكيد على أن القاعات المحجوزة تظهر باللون الأحمر */
.M01.bg-danger, .M02.bg-danger, .M03.bg-danger, .T01.bg-danger, .T02.bg-danger {
    background-color: rgba(220, 53, 69, 0.25) !important;
    color: white !important;
}

/* تأكيد على أن القاعات المتاحة تظهر باللون الأخضر */
.M01.bg-success, .M02.bg-success, .M03.bg-success, .T01.bg-success, .T02.bg-success {
    background-color: rgba(25, 135, 84, 0.25) !important;
    color: white !important;
}

/* CSS إضافي لضمان ظهور الألوان بشكل صحيح */
div[class*="M01"], div[class*="M02"], div[class*="M03"], div[class*="T01"], div[class*="T02"] {
    transition: background-color 0.3s ease;
}

/* تأكيد على اللون الأحمر للقاعات المحجوزة */
div[class*="M01"].bg-danger, div[class*="M02"].bg-danger, div[class*="M03"].bg-danger, 
div[class*="T01"].bg-danger, div[class*="T02"].bg-danger {
    background-color: rgba(220, 53, 69, 0.25) !important;
    color: white !important;
    border-color: #dc3545 !important;
}

/* تأكيد على اللون الأخضر للقاعات المتاحة */
div[class*="M01"].bg-success, div[class*="M02"].bg-success, div[class*="M03"].bg-success, 
div[class*="T01"].bg-success, div[class*="T02"].bg-success {
    background-color: rgba(25, 135, 84, 0.25) !important;
    color: white !important;
    border-color: #198754 !important;
}

/* CSS إضافي لضمان ظهور الألوان بشكل واضح */
.M01, .M02, .M03, .T01, .T02 {
    position: relative;
}

.M01.bg-danger::before, .M02.bg-danger::before, .M03.bg-danger::before, 
.T01.bg-danger::before, .T02.bg-danger::before {
    content: "محجوز";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 1000;
    font-size: 14px;
}

.M01.bg-success::before, .M02.bg-success::before, .M03.bg-success::before, 
.T01.bg-success::before, .T02.bg-success::before {
    content: "متاح";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(25, 135, 84, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 1000;
    font-size: 14px;
}

}
