/* =========================================
 * MAIN STYLES - CLEANED & CONSOLIDATED
 * Custom CSS for Permalist Project
 * ========================================= */



/* ========== 1. Variables & Theme ========== */
:root {
  --main-color: #967c3f;
  --main-color-dark: #967c3f;
  --main-color-rgb: 150, 124, 63;
  --main-bg: #f8f9fa;
  --main-text: #212529;
  --main-border: #dee2e6;
  --main-light: #fff;
  
  /* Override Bootstrap colors */
  --bs-danger: #967c3f;
  --bs-danger-rgb: 150, 124, 63;
}

.navbar-logo {
  max-height: 24px; /* Further reduced from 28px */
  width: auto;
  object-fit: contain;
} 

@media (max-width: 992px) {
  .navbar-logo {
    max-height: 20px; /* Further reduced from 24px */
  }
}

/* ========== 2. Base Layout & Typography ========== */
html {
  font-size: 12px; /* Further reduced from 14px for even smaller overall scale */
}

/* Global container adjustments for more compact layout */
.container, .container-fluid {
  padding-left: 8px; /* Further reduced from 12px */
  padding-right: 8px; /* Further reduced from 12px */
}

@media (min-width: 576px) {
  .container {
    max-width: 520px; /* Further reduced from 540px */
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 700px; /* Further reduced from 720px */
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 940px; /* Further reduced from 960px */
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1080px; /* Further reduced from 1100px */
  }
}

html, body {
  background: var(--main-bg);
  color: var(--main-text);
  font-family: 'Cairo', Arial, sans-serif;
  text-align: right;
  min-height: 100vh;
  height: 100%;
  display: flex;
  flex-direction: column;
}

body, main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--main-color);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--main-color-dark);
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6, .card-title {
  color: var(--main-color);
  font-weight: 500;
  letter-spacing: 0.5px;
}

p, .card-text {
  line-height: 1.6; /* Reduced from 1.7 */
  margin-bottom: 0.8rem; /* Reduced from 1rem */
}

/* Reduce section padding globally */
.py-5 {
  padding-top: 2.5rem !important; /* Reduced from 3rem */
  padding-bottom: 2.5rem !important; /* Reduced from 3rem */
}

.py-4 {
  padding-top: 2rem !important; /* Reduced from 2.5rem */
  padding-bottom: 2rem !important; /* Reduced from 2.5rem */
}

.mb-4 {
  margin-bottom: 1.2rem !important; /* Reduced from 1.5rem */
}

.mb-5 {
  margin-bottom: 2.5rem !important; /* Reduced from 3rem */
}

::placeholder {
  color: #adb5bd;
  opacity: 1;
  font-weight: 300;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========== 3. Navbar ========== */
.navbar, .navbar-custom {
  background-color: var(--main-light) !important;
  box-shadow: 0 0.125rem 0.25rem rgba(var(--main-color-rgb), 0.07);
  padding-top: 0.4rem; /* Further reduced from 0.6rem */
  padding-bottom: 0.4rem; /* Further reduced from 0.6rem */
}
.navbar-brand {
  font-weight: 700;
  color: var(--main-color) !important;
  letter-spacing: 1px;
}
.navbar-nav .nav-link {
  color: var(--main-color);
  font-weight: 500;
  padding: 0.3rem 0.6rem; /* Further reduced from 0.4rem 0.8rem */
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: var(--main-color) !important;
  color: #fff !important;
}

/* Search form in navbar */
.search-form-wrapper {
  display: flex;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-radius: 20px;
  transition: all 0.3s;
}
.search-form-wrapper:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}
.search-input {
  border: 1px solid #ddd;
  border-right: none;
  padding-right: 15px;
}
.search-button {
  border: none;
  background-color: var(--main-color);
  color: white;
  padding: 0.25rem 1rem;
}
.search-button:hover {
  background-color: var(--main-color-dark);
  box-shadow: inset 0 0 0 100px rgba(0,0,0,0.1);
}

/* ========== 4. Cards & Content ========== */
.card {
  border: 1px solid var(--main-border);
  border-radius: 0.6rem; /* Further reduced from 0.8rem */
  background: var(--main-light);
  box-shadow: 0 0.15rem 0.5rem rgba(var(--main-color-rgb), 0.05); /* Further reduced shadow */
}

.card-img-top, .card-img-top-fixed-height {
  height: 150px; /* Further reduced from 180px */
  object-fit: cover;
  width: 100%;
  border-top-left-radius: 0.6rem; /* Further reduced from 0.8rem */
  border-top-right-radius: 0.6rem; /* Further reduced from 0.8rem */
}
.card-body {
  padding: 0.8rem 0.6rem 0.3rem; /* Further reduced padding */
}
.card-desc-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  max-height: 4em; /* Further reduced from 4.5em */
  min-height: 2em; /* Further reduced from 2.5em */
  white-space: normal;
  font-size: 0.75rem; /* Further reduced from 0.85rem */
}
.card-actions {
  display: flex;
  flex-direction: row-reverse;
  gap: 0.5rem;
}

/* ========== 5. Buttons ========== */
.btn-danger, .btn-main {
  background-color: var(--main-color) !important;
  border-color: var(--main-color) !important;
  color: #fff !important;
  transition: all 0.3s;
}
.btn-danger:hover, .btn-main:hover,
.btn-danger:focus, .btn-main:focus {
  background-color: var(--main-color-dark) !important;
  border-color: var(--main-color-dark) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Contact Button Styling */
.contact-btn {
  border: 1px solid var(--main-color) !important;
  color: var(--main-color) !important;
  background-color: transparent !important;
  transition: all 0.3s ease;
  padding: 10px 16px; /* Reduced from 12px 20px */
  font-weight: 500;
  border-radius: 8px;
}

.contact-btn:hover {
  background-color: var(--main-color) !important;
  border-color: var(--main-color) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--main-color-rgb), 0.3);
}

.contact-btn:focus {
  background-color: var(--main-color) !important;
  border-color: var(--main-color) !important;
  color: white !important;
  box-shadow: 0 0 0 0.2rem rgba(var(--main-color-rgb), 0.25) !important;
}

/* Override Bootstrap success buttons for contact purposes */
.btn-outline-success {
  border-color: var(--main-color) !important;
  color: var(--main-color) !important;
  background-color: transparent !important;
}

.btn-outline-success:hover,
.btn-outline-success:focus {
  background-color: var(--main-color) !important;
  border-color: var(--main-color) !important;
  color: white !important;
}

/* WhatsApp and success button overrides */
.btn-success {
  background-color: var(--main-color) !important;
  border-color: var(--main-color) !important;
  color: white !important;
}

.btn-success:hover,
.btn-success:focus {
  background-color: var(--main-color-dark) !important;
  border-color: var(--main-color-dark) !important;
  color: white !important;
}

.btn-outline-secondary, .custom-action-btn {
  border-color: var(--main-color) !important;
  color: var(--main-color) !important;
  background: transparent !important;
  transition: all 0.3s;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.custom-action-btn:hover,
.custom-action-btn:focus {
  background: var(--main-color) !important;
  color: #fff !important;
  border-color: var(--main-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}
.btn-icon {
  padding: 0.25rem 0.5rem;
  background: transparent;
  border: none;
  line-height: 1;
}
.btn-icon .icon, .fa-solid {
  height: 1.1em;
  width: auto;
  vertical-align: middle;
  color: var(--main-color);
  transition: color 0.2s;
}
.btn-icon:hover .icon, .btn-icon:hover .fa-solid {
  color: var(--main-color-dark);
}
.custom-action-btn .fa-pen-to-square,
.custom-action-btn .fa-trash {
  color: var(--main-color);
  transition: color 0.2s;
}
.custom-action-btn:hover .fa-pen-to-square,
.custom-action-btn:focus .fa-pen-to-square,
.custom-action-btn:hover .fa-trash,
.custom-action-btn:focus .fa-trash {
  color: #fff;
}
.btn-success {
  transition: all 0.3s;
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.btn-outline- danger {
  color: var(--main-color);
  border-color: var(--main-color);
}
.btn-outline- danger:hover {
  background-color: var(--main-color);
  border-color: var(--main-color);
  color: white;
}

/* ========== 6. Forms & Inputs ========== */
.form-label {
  font-weight: 400;
  color: var(--main-color-dark);
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}
.form-control, .form-select {
  font-weight: 300;
  border-color: var(--main-border);
  padding: 0.6rem 0.75rem;
  border-right: none;
  transition: all 0.3s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--main-color);
  box-shadow: 0 0 0 0.25rem rgba(var(--main-color-rgb), 0.15);
}
.input-group {
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-radius: 0.375rem;
  overflow: hidden;
}
.input-group-text {
  background-color: #f8f9fa;
  border-left: none;
  min-width: 40px;
  display: flex;
  justify-content: center;
  border-color: #e2e8f0;
}
.form-control:focus + .input-group-text {
  border-color: var(--main-color);
}
textarea.form-control {
  border: 1px solid #ced4da;
}
textarea.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--main-color-rgb), 0.15);
}
label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.shadow-sm {
  box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}
.form-check-input:checked {
  background-color: var(--main-color);
  border-color: var(--main-color);
}
.form-switch .form-check-input {
  width: 2.5em;
  height: 1.25em;
}

/* ========== 7. Pagination ========== */
.custom-pagination {
  display: flex;
  gap: 5px;
}
.custom-pagination .page-link {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  border: 1px solid #ddd;
  font-weight: 500;
  transition: all 0.2s;
}
.custom-pagination .page-item.active .page-link {
  background-color: var(--main-color);
  border-color: var(--main-color);
  color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.custom-pagination .page-item:not(.active) .page-link:hover {
  background-color: #f8f9fa;
  color: var(--main-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.custom-pagination .page-item.disabled .page-link {
  color: #ccc;
  background-color: #f9f9f9;
  border-color: #eee;
}
.pagination-info {
  color: #777;
  font-size: 0.9rem;
}

/* ========== 8. Carousel ========== */
.carousel-item {
  height: 350px;
}
.carousel-item img {
  object-fit: contain;
  height: 100%;
  width: 100%;
  border-radius: 4px;
  background: #f8f9fa;
}
.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.2);
  border-radius: 50%;
}
.carousel-indicators {
  margin-bottom: -1rem;
}

/* ========== 9. Thumbnails & Media ========== */
.single-item-thumbnail,
.img-thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  padding: 0.15rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
  border-radius: 0.5rem;
}
.single-item-thumbnail:hover,
.single-item-thumbnail.active,
.img-thumbnail:hover,
.img-thumbnail.active {
  opacity: 1;
  border-color: var(--main-color);
}
.edit-image-thumb {
  position: relative;
  display: inline-block;
}
.delete-image-btn {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  padding: 2px 6px;
  font-size: 0.9rem;
  opacity: 0.85;
}
.delete-image-btn:hover {
  opacity: 1;
}

/* ========== 10. Footer ========== */
.site-footer {
  background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-dark) 100%);
  color: #fff;
  width: 100%;
  margin-top: auto;
  padding: 2.5rem 0 2rem;
}
.footer-content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  text-align: right;
}
.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-heading {
  color: white;
  font-weight: bold;
  margin-bottom: 1.5rem;
  padding-right: 0.75rem;
  border-right: 3px solid #fff;
  position: relative;
  text-align: right;
  width: fit-content;
}
.footer-text {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 1.2rem;
  justify-content: flex-start;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  color: white !important;
  text-decoration: none;
  transition: all 0.3s ease;
}
.social-icon i {
  color: white !important;
  font-size: 1rem;
}
.social-icon:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-item {
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: flex-start;
}
.contact-icon {
  color: white !important;
  margin-left: 12px;
  width: 18px;
  text-align: center;
}
.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 2.5rem 0;
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
.footer-copyright {
  text-align: center;
  width: 100%;
  max-width: none;
  padding-top: 1rem;
}
.footer-copyright p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 1rem;
}
.footer-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}
.footer-link i {
  color: white !important;
  margin-left: 8px;
  font-size: 0.8rem;
}
.footer-link:hover {
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-column {
    align-items: flex-start;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
}
@media (max-width: 576px) {
  .footer-content {
    padding: 0 1.5rem;
  }
}

/* ========== 11. Utility & Responsive ========== */
.icon-sm {
  height: 1.2em;
  width: 1.2em;
  vertical-align: middle;
}
.icon-md {
  height: 1.5em;
  width: 1.5em;
  vertical-align: middle;
}
@media (max-width: 991.98px) {
  .single-item-carousel-image,
  .carousel-item { height: 220px; }
}
@media (max-width: 767.98px) {
  .single-item-carousel-image,
  .carousel-item { height: 140px; }
  .single-item-thumbnail, .img-thumbnail { max-width: 50px; }
  .col-md-4 { border-radius: 0 0 0.5rem 0.5rem !important; }
}
@media (max-width: 575.98px) {
  .single-item-carousel-image,
  .carousel-item { height: 90px; }
  .single-item-thumbnail, .img-thumbnail { max-width: 32px; }
  .card-actions { flex-direction: column; align-items: stretch; gap: 0.5rem; margin-top: 1rem; }
}

/* ========== 12. Select2 (if used) ========== */
.select2-container--default .select2-selection--single {
  height: 38px !important;
  padding: 5px 10px !important;
  display: flex !important;
  align-items: center !important;
  border-radius: 6px !important;
  border-color: #ced4da !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  text-align: right !important;
  padding-right: 0 !important;
  padding-left: 20px !important;
  line-height: 1.5 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 38px !important;
  left: 5px !important;
  right: auto !important;
}
.select2-dropdown {
  z-index: 9999 !important;
  border-color: var(--main-color) !important;
  border-radius: 6px !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}
.select2-search--dropdown .select2-search__field {
  padding: 8px !important;
  border-radius: 4px !important;
  text-align: right !important;
  direction: rtl !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--main-color) !important;
}
.select2-container--default .select2-results__option {
  padding: 8px 10px !important;
  text-align: right;
}
.select2-container--open .select2-dropdown {
  right: auto;
  left: 0;
}

.card-body > div {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.card-desc-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  min-height: 72px; /* ارتفاع ثابت تقريبي لثلاثة أسطر */
}
.divider-fixed {
  height: 3px;
  opacity: 0.15;
  margin-bottom: 0 !important;
  margin-top: 1rem;
}

/* Override Bootstrap badge danger class */
.badge.bg-danger {
    background-color: #967c3f !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    border: 2px solid rgba(255,255,255,0.2) !important;
}

/* Override all bg-danger classes */
.bg-danger {
    background-color: #967c3f !important;
    color: white !important;
}

/* Override btn-danger classes */
.btn-danger {
    background-color: #967c3f !important;
    border-color: #967c3f !important;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
    background-color: #8b7036 !important;
    border-color: #8b7036 !important;
}

/* Override btn-outline-danger classes */
.btn-outline-danger {
    color: #967c3f !important;
    border-color: #967c3f !important;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:active {
    background-color: #967c3f !important;
    border-color: #967c3f !important;
    color: white !important;
}

/* Override text-danger classes */
.text-danger,
.text-danger-emphasis {
    color: #967c3f !important;
}

/* Override alert-danger classes */
.alert-danger {
    background-color: rgba(150, 124, 63, 0.15) !important;
    border-color: #967c3f !important;
    color: #6b4a26 !important;
}

.alert.alert-danger {
    background-color: rgba(150, 124, 63, 0.15) !important;
    border-color: #967c3f !important;
    color: #6b4a26 !important;
}

/* Override border-danger classes */
.border-danger {
    border-color: #967c3f !important;
}

/* Create brown badge class */
.bg-brown {
    background-color: #967c3f !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    border: 2px solid rgba(255,255,255,0.2) !important;
}



/* Extra specific selectors for property badges */
span.badge.bg-brown.property-id-badge,
.card-body span.badge,
.card span.badge {
    background-color: #967c3f !important;
    color: white !important;
    opacity: 1 !important;
}

/* Ensure any badge containing رقم has background */
*[class*="badge"]:contains("رقم"),
span:contains("رقم") {
    background-color: #967c3f !important;
    color: white !important;
    padding: 0.6em 1em !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
}

/* Contact buttons with specific colors */
.contact-call-btn {
    color: white !important;
    border-color: #2b3a2a !important;
    background-color: #2b3a2a !important;
}

.contact-call-btn:hover,
.contact-call-btn:focus,
.contact-call-btn:active {
    background-color: #1f2a1f !important;
    border-color: #1f2a1f !important;
    color: white !important;
}

.contact-whatsapp-btn {
    color: white !important;
    border-color: #273f52 !important;
    background-color: #273f52 !important;
}

.contact-whatsapp-btn:hover,
.contact-whatsapp-btn:focus,
.contact-whatsapp-btn:active {
    background-color: #1e3040 !important;
    border-color: #1e3040 !important;
    color: white !important;
}

.contact-email-btn {
    color: white !important;
    border-color: #967c3f !important;
    background-color: #967c3f !important;
}

.contact-email-btn:hover,
.contact-email-btn:focus,
.contact-email-btn:active {
    background-color: #8b7036 !important;
    border-color: #8b7036 !important;
    color: white !important;
}

/* ========== CLIENT ITEMS PAGE STYLES ========== */
/* Property image containers */
.property-image-container {
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  position: relative;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-action-btn {
  width: 35px;
  height: 35px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.875rem;
}

.card-desc-truncate {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Install app banner */
.install-app-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

.install-app-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
}

/* ========== HOME PAGE STYLES ========== */
/* Agents Hover Effect Styles */
.agents-hover-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  overflow: visible;
}

.agents-profile-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  max-width: 1000px;
}

.agent-profile-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  height: 400px;
  width: 150px;
  border-radius: 75px;
  transition: width 0.6s cubic-bezier(0.65, 0, 0.35, 1), 
              border-radius 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.agent-profile-card.active {
  width: 350px;
  border-radius: 30px;
}

.agent-profile-card:nth-child(1) { 
  background: linear-gradient(135deg, #e8f4f8, #d1e7dd);
}
.agent-profile-card:nth-child(2) { 
  background: linear-gradient(135deg, #967c3f, #b8941f);
}
.agent-profile-card:nth-child(3) { 
  background: linear-gradient(135deg, #f8f5e4, #e8dcc0);
}
.agent-profile-card:nth-child(4) { 
  background: linear-gradient(135deg, #f0f8f4, #e2f0e8);
}

.agent-profile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  border-radius: inherit;
}

.agent-profile-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #967c3f 0%, #967c3f 20%, rgba(150,124,63,0.2) 50%, rgba(150,124,63,0) 100%);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.agent-profile-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.agent-profile-card:hover img {
  transform: scale(1.08);
}

.agent-profile-info {
  position: absolute;
  bottom: 25px;
  left: 25px;
  right: 25px;
  color: white;
  text-align: center;
  direction: rtl;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.agent-profile-card.active .agent-profile-info,
.agent-profile-card:hover .agent-profile-info {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.agent-profile-info h3 {
  margin: 0 0 8px 0;
  font-size: 1.6rem;
  font-weight: 600;
  font-family: 'Cairo', Arial, sans-serif;
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.agent-title-link {
  color: white !important;
  text-decoration: none;
  position: relative;
  z-index: 3;
  display: block;
}

.agent-title-link:hover {
  color: #fff !important;
  text-decoration: none;
}

.agent-profile-info .experience {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 12px;
}

.agent-contact-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
  flex-wrap: wrap;
}

.agent-contact-buttons .btn {
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 90px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 3;
  position: relative;
}

.agent-contact-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.agent-contact-buttons .btn-success {
  background-color: #2b3a2a !important;
  border-color: #2b3a2a !important;
}

.agent-contact-buttons .btn-success:hover {
  background-color: #1e2b1e !important;
  border-color: #1e2b1e !important;
}

.agent-contact-buttons .btn-primary:hover {
  background-color: #f2f4ef !important;
  border-color: #f2f4ef !important;
  color: #967c3f !important;
}

.agent-image-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

/* Horizontal Agent Card Styles */
.agent-card-horizontal {
  border: 1px solid var(--main-border);
  border-radius: 12px;
  background: var(--main-light);
  transition: all 0.3s ease;
  overflow: hidden;
}

.agent-card-horizontal:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: var(--main-color);
}

.agent-avatar-horizontal {
  position: relative;
  flex-shrink: 0;
}

.agent-image-horizontal {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--main-color);
  transition: all 0.3s ease;
}

.agent-card-horizontal:hover .agent-image-horizontal {
  transform: scale(1.05);
  border-color: var(--main-color-dark);
}

.agent-info-horizontal {
  flex: 1;
  min-width: 0;
}

.agent-name-horizontal {
  color: var(--main-text);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.agent-experience {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
}

.agent-contact-horizontal {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.agent-contact-horizontal .btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.agent-contact-horizontal .btn-success {
  background-color: #25d366;
  border-color: #25d366;
}

.agent-contact-horizontal .btn-success:hover {
  background-color: #1aa347;
  border-color: #1aa347;
  transform: translateY(-1px);
}

.agent-contact-horizontal .btn-outline-primary {
  border-color: var(--main-color);
  color: var(--main-color);
}

.agent-contact-horizontal .btn-outline-primary:hover {
  background-color: var(--main-color);
  border-color: var(--main-color);
  color: white;
  transform: translateY(-1px);
}

.agent-stats-horizontal {
  flex-shrink: 0;
  padding: 0.5rem;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--main-color);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* ===============================================
   HORIZONTAL TEAM CARD COMPONENT
   =============================================== */

/* Base Card Container */
.single-team-horizontal {
  position: relative;
  overflow: hidden;
  background-color: var(--main-light);
  border-radius: var(--radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
  transition: var(--transition);
  margin-bottom: 30px;
  max-width: 100%;
  width: 100%;
  height: 180px;
}

.single-team-horizontal:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Image Container */
.single-team-horizontal .thumbnail {
  display: block;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.single-team-horizontal .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: var(--transition);
}

.single-team-horizontal:hover .thumbnail img {
  transform: scale(1.05);
}

/* Content Container */
.single-team-horizontal .inner-content {
  padding: 12px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
}

/* Text Content */
.single-team-horizontal .text-content {
  text-align: right;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  margin-right: 10px;
}

.single-team-horizontal .title {
  margin-bottom: 3px;
  font-size: 1.2rem;
  color: var(--main-color);
  transition: var(--transition);
  font-weight: 600;
  line-height: 1.2;
}

.single-team-horizontal .title:hover {
  color: var(--main-color-dark);
}

.single-team-horizontal span {
  color: var(--color-body);
  font-size: 0.8rem;
  line-height: 1.3;
  margin-bottom: 2px;
}

.single-team-horizontal .text-content div {
  margin-top: 2px !important;
  margin-bottom: 1px !important;
}

.single-team-horizontal .text-content div span {
  font-size: 0.75rem !important;
  line-height: 1.2;
}

/* Social Icons */
.single-team-horizontal .social-one-wrapper {
  margin-left: 10px;
  flex-shrink: 0;
}

.single-team-horizontal .social-one-wrapper ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 6px;
  flex-direction: row;
}

.single-team-horizontal .social-one-wrapper ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 32px;
  background-color: rgba(32, 40, 45, 0.06);
  border-radius: 50%;
  color: var(--color-body);
  transition: var(--transition);
  font-size: 16px;
}

/* Social Icon Hover Effects */
.single-team-horizontal .social-one-wrapper ul li.call a:hover {
  background-color: var(--main-color);
  color: var(--main-light);
}

.single-team-horizontal .social-one-wrapper ul li.whatsapp a:hover {
  background-color: #25d366;
  color: var(--main-light);
}

.single-team-horizontal .social-one-wrapper ul li.email a:hover {
  background-color: #967c3f;
  color: var(--main-light);
}

/* ===============================================
   RESPONSIVE BREAKPOINTS
   =============================================== */

/* Tablet (992px - 769px) */
@media (max-width: 992px) and (min-width: 769px) {
  .single-team-horizontal {
    height: 160px;
  }
  
  .single-team-horizontal .inner-content {
    padding: 10px 15px;
  }
  
  .single-team-horizontal .title {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }
  
  .single-team-horizontal span {
    font-size: 0.75rem;
  }
  
  .single-team-horizontal .text-content div span {
    font-size: 0.7rem !important;
  }
  
  .single-team-horizontal .social-one-wrapper {
    margin-left: 8px;
  }
  
  .single-team-horizontal .social-one-wrapper ul {
    gap: 4px;
  }
  
  .single-team-horizontal .social-one-wrapper ul li a {
    height: 28px;
    width: 28px;
    font-size: 14px;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .single-team-horizontal {
    height: 180px;
  }
  
  .single-team-horizontal .inner-content {
    padding: 12px 15px;
    flex-direction: row;
    align-items: center;
  }
  
  .single-team-horizontal .text-content {
    margin-right: 8px;
    text-align: right;
    flex: 1;
  }
  
  .single-team-horizontal .title {
    font-size: 1rem;
    margin-bottom: 1px;
  }
  
  .single-team-horizontal span {
    font-size: 0.7rem;
  }
  
  .single-team-horizontal .text-content div span {
    font-size: 0.65rem !important;
  }
  
  .single-team-horizontal .social-one-wrapper {
    margin-left: 6px;
  }
  
  .single-team-horizontal .social-one-wrapper ul {
    gap: 3px;
    flex-direction: column;
  }
  
  .single-team-horizontal .social-one-wrapper ul li a {
    height: 24px;
    width: 24px;
    font-size: 12px;
  }
  
  .single-team-horizontal .thumbnail {
    height: 100%;
  }
}

/* Extra Small Mobile (576px and below) */
@media (max-width: 576px) {
  .single-team-horizontal {
    height: 160px;
  }
  
  .single-team-horizontal .inner-content {
    padding: 6px 10px;
  }
  
  .single-team-horizontal .title {
    font-size: 0.9rem;
    margin-bottom: 1px;
  }
  
  .single-team-horizontal span {
    font-size: 0.65rem;
  }
  
  .single-team-horizontal .text-content div span {
    font-size: 0.6rem !important;
  }
  
  .single-team-horizontal .social-one-wrapper {
    margin-left: 4px;
  }
  
  .single-team-horizontal .social-one-wrapper ul li a {
    height: 20px;
    width: 20px;
    font-size: 11px;
  }
}

/* Agent Contact Information Styling */
.single-team-horizontal .agent-contact-info {
  margin: 5px 0;
}

.single-team-horizontal .agent-contact-info span {
  color: var(--main-color);
  font-size: 0.8rem;
  font-weight: 500;
  display: block;
}

.single-team-horizontal .agent-property-count {
  margin-top: 5px;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.single-team-horizontal .agent-property-count .count {
  color: var(--main-color);
  font-weight: 600;
  font-size: 1rem;
}

.single-team-horizontal .agent-property-count .label {
  color: var(--color-body);
  font-size: 0.8rem;
}

/* Responsive adjustments for agent elements */
@media (max-width: 768px) {
  .single-team-horizontal .agent-contact-info span {
    font-size: 0.9rem;
  }
  
  .single-team-horizontal .agent-property-count .count {
    font-size: 1.1rem;
  }
  
  .single-team-horizontal .agent-property-count .label {
    font-size: 0.85rem;
  }
  
  .single-team-horizontal .title {
    font-size: 1.3rem;
  }
  
  .single-team-horizontal span {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .single-team-horizontal .agent-contact-info span {
    font-size: 1rem;
  }
  
  .single-team-horizontal .agent-property-count .count {
    font-size: 1.2rem;
  }
  
  .single-team-horizontal .agent-property-count .label {
    font-size: 0.95rem;
  }
  
  .single-team-horizontal .title {
    font-size: 1.4rem;
  }
  
  .single-team-horizontal span {
    font-size: 1rem;
  }
  
  .single-team-horizontal .inner-content {
    padding: 15px 18px;
  }
}

/* ===============================================
   END HORIZONTAL TEAM CARD COMPONENT
   =============================================== */
  }
  
  .single-team-horizontal .social-one-wrapper ul li a {
    height: 36px;
    width: 36px;
    font-size: 14px;
  }
}

/* Hero section */
.hero-section {
  background-color: #f8f9fa;
  min-height: 40vh; /* Reduced from 50vh */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 0; /* Reduced from 2rem 0 */
  overflow: hidden;
}

.hero-section img {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  width: 100%;
  height: auto;
  display: block;
}

.hover-card {
  transition: transform 0.3s ease;
}

.hover-card:hover {
  transform: translateY(-5px);
}

.lc-block {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.lc-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 15px;
}

/* Categories Carousel */
.categories-carousel {
  display: flex;
  overflow-x: auto;
  gap: 25px;
  padding: 15px 8px 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  height: 300px;
  align-items: center;
  min-width: 100%;
  scroll-behavior: smooth;
}

.categories-carousel::-webkit-scrollbar {
  display: none;
}

.property-categories-section {
  background-color: #f2f4ef;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.carousel-nav-arrows {
  display: flex;
  gap: 8px;
  margin-right: 30px;
}

.carousel-nav-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: 2px solid var(--bs-primary) !important;
  background-color: white !important;
  color: var(--bs-primary) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-size: 14px !important;
  z-index: 10 !important;
  position: relative !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  pointer-events: auto !important;
}

.carousel-nav-btn:hover {
  background-color: var(--bs-primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.category-card {
  flex: 0 0 auto;
  width: 200px;
  height: 200px;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  cursor: pointer;
  min-width: 200px;
}

.category-card:hover {
  transform: translateY(-5px) rotate(-3deg) scale(1.1);  
}

.category-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 16px;
}

.category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-image {
  transform: scale(1.05);
}

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #967c3f 0%, #967c3f 20%, rgba(150,124,63,0.2) 50%, rgba(150,124,63,0) 100%);
  border-radius: 16px;
} 

.category-title {
  position: absolute;
  bottom: 15px;
  right: 15px;
  color: #fff;
  font-weight: 400;
  margin: 0;
  font-size: 1.25rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Projects Carousel */
.projects-carousel {
  display: flex;
  overflow-x: auto;
  padding: 15px 8px 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  align-items: center;
  background-color: #ffffff;
  padding: 1.5rem 0; /* Reduced from 2rem 0 */
  min-width: 100%;
  scroll-behavior: smooth;
}

.projects-carousel::-webkit-scrollbar {
  display: none;
}

.projects-section {
  background-color: #ffffff;
}

.slide.project-slide {
  flex: 0 0 auto;
  width: 208px;
  height: 290px;
  margin: 0 12px;
}

.project-card-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bs-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.project-card-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-card-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-title {
  font-size: 20px;
  color: white;
  margin: 0 0 16px 0;
  line-height: 1.4;
  text-align: center;
}

.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

/* Mega Menu Footer */
.mega-menu-footer {
  background-color: #f8f9fa;
  border-top: 2px solid #e9ecef;
}


.nav-tabs {
  border-bottom: none;
  justify-content: center;
}

.nav-tabs .nav-link {
  border: none;
  color: #495057;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-tabs .nav-link:hover {
  color: var(--bs-primary);
}

.nav-tabs .nav-link.active {
  color: var(--bs-primary);
  background-color: transparent;
  border-bottom-color: var(--bs-primary);
}

.tab-content {
  background-color: #ffffff;
  padding: 1.5rem; /* Reduced from 2rem */
  box-shadow: 0 3px 10px rgba(0,0,0,.08); /* Reduced shadow */
}

.links-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: start;
}

.links-container a {
  padding: 0.25rem 0;
  color: var(--bs-primary);
  text-decoration: none;
  background-color: transparent !important;
  border: none !important;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.links-container a:hover {
  text-decoration: underline;
  color: #967c3f;
  font-weight: 500;
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 768px) {
  .agents-profile-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .agent-profile-card {
    width: 80vw;
    max-width: 300px;
    height: 350px;
    border-radius: 30px;
  }
  
  .agent-profile-card.active {
    width: 80vw;
    max-width: 300px;
  }
  
  .category-card {
    width: 160px;
    height: 160px;
  }
  
  .categories-carousel {
    gap: 15px;
    height: 220px;
  }
  
  .project-card-wrapper {
    width: 180px;
    height: 250px;
  }
  
  .slide.project-slide {
    width: 180px;
    height: 250px;
    margin: 0 8px;
  }
}

/* ========== ITEM PAGE STYLES ========== */
.item-details-container {
  background-color: #f8f9fa;
  padding: 1.5rem 0; /* Reduced from 2rem 0 */
}

.image-gallery-container {
  position: relative;
  border-radius: 12px; /* Reduced from 15px */
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1); /* Reduced shadow */
}

.item-info-section {
  background-color: white;
  border-radius: 12px; /* Reduced from 15px */
  box-shadow: 0 3px 10px rgba(0,0,0,0.08); /* Reduced shadow */
  padding: 1.5rem; /* Reduced from 2rem */
}

.contact-section {
  background-color: #f2f4ef;
  border-radius: 12px; /* Reduced from 15px */
  padding: 1.5rem; /* Reduced from 2rem */
  margin-top: 1.5rem; /* Reduced from 2rem */
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}

/* ========== PAGINATION STYLES ========== */
.pagination-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.pagination .page-link {
  color: var(--bs-primary);
  border-color: #dee2e6;
  padding: 0.75rem 1rem;
  margin: 0 0.125rem;
  border-radius: 0.375rem;
}

.pagination .page-link:hover {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: white;
}

.pagination .page-item.active .page-link {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

/* ========== SEARCH AND FILTER STYLES ========== */
.search-container {
  background-color: white;
  padding: 1rem; /* Further reduced from 1.5rem */
  border-radius: 10px; /* Further reduced from 12px */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* Further reduced shadow */
  margin-bottom: 1rem; /* Further reduced from 1.5rem */
}

.filter-section {
  background-color: #f8f9fa;
  padding: 0.8rem; /* Further reduced from 1.2rem */
  border-radius: 6px; /* Further reduced from 8px */
  margin-bottom: 0.6rem; /* Further reduced from 0.8rem */
}

.search-input {
  border: 2px solid #e9ecef;
  border-radius: 16px; /* Further reduced from 20px */
  padding: 0.4rem 1rem; /* Further reduced from 0.6rem 1.2rem */
  font-size: 0.8rem; /* Further reduced from 0.9rem */
  transition: border-color 0.3s ease;
}

.search-input:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.1rem rgba(150, 124, 63, 0.25); /* Further reduced from 0.15rem */
}

.search-btn {
  border-radius: 16px; /* Further reduced from 20px */
  padding: 0.4rem 1.2rem; /* Further reduced from 0.6rem 1.5rem */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========== ADMIN STYLES ========== */
.admin-header {
  background-color: #967c3f; /* Changed to brown */
  color: white;
  padding: 0.5rem 0; /* Further reduced from 0.75rem 0 */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-sidebar {
  background-color: #f8f9fa;
  min-height: calc(100vh - 55px); /* Further reduced from 65px */
  padding: 1rem 0.6rem; /* Further reduced from 1.5rem 0.8rem */
  border-right: 1px solid #dee2e6;
}

.admin-content {
  padding: 1rem; /* Further reduced from 1.5rem */
  background-color: white;
  min-height: calc(100vh - 55px); /* Further reduced from 65px */
}

.admin-card {
  border: none;
  border-radius: 12px; /* Reduced from 15px */
  box-shadow: 0 3px 10px rgba(0,0,0,0.08); /* Reduced shadow */
  transition: transform 0.3s ease;
}

.admin-card:hover {
  transform: translateY(-3px); /* Reduced from -5px */
}

/* Admin table styles for compactness */
.admin-content .table {
  font-size: 0.75rem; /* Further reduced from 0.85rem */
}

.admin-content .table th,
.admin-content .table td {
  padding: 0.3rem; /* Further reduced from 0.5rem */
  vertical-align: middle;
}

.admin-content .btn {
  padding: 0.3rem 0.6rem; /* Further reduced from 0.4rem 0.8rem */
  font-size: 0.7rem; /* Further reduced from 0.8rem */
}

.admin-content .btn-sm {
  padding: 0.2rem 0.4rem; /* Further reduced from 0.25rem 0.5rem */
  font-size: 0.65rem; /* Further reduced from 0.75rem */
}

/* ========== FORM STYLES ========== */
.form-container {
  background-color: white;
  padding: 1rem; /* Further reduced from 1.5rem */
  border-radius: 10px; /* Further reduced from 12px */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* Further reduced shadow */
}

.form-group {
  margin-bottom: 0.8rem; /* Further reduced from 1.2rem */
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.3rem; /* Further reduced from 0.4rem */
  color: #495057;
  font-size: 0.8rem; /* Further reduced from 0.9rem */
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 4px; /* Further reduced from 6px */
  padding: 0.4rem; /* Further reduced from 0.6rem */
  font-size: 0.8rem; /* Further reduced from 0.9rem */
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(150, 124, 63, 0.25);
}

.form-select {
  border: 2px solid #e9ecef;
  border-radius: 4px; /* Further reduced from 6px */
  padding: 0.4rem; /* Further reduced from 0.6rem */
  font-size: 0.8rem; /* Further reduced from 0.9rem */
}

/* ========== UTILITIES ========== */
.text-primary-custom {
  color: var(--bs-primary) !important;
}

.bg-primary-light {
  background-color: #f2f4ef !important;
}

.border-primary-custom {
  border-color: var(--bs-primary) !important;
}

.shadow-custom {
  box-shadow: 0 3px 10px rgba(0,0,0,0.08) !important; /* Reduced shadow */
}

.rounded-custom {
  border-radius: 12px !important; /* Reduced from 15px */
}

.btn-primary-custom {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: white;
  font-weight: 600;
  padding: 0.6rem 1.5rem; /* Reduced from 0.75rem 2rem */
  border-radius: 20px; /* Reduced from 25px */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background-color: #8b7036;
  border-color: #8b7036;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary{
  background-color: #967c3f !important;
}

/* Orders Pages Styling */
.orders-card {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.orders-header {
  background: linear-gradient(135deg, #2b3a2a, #273f52);
  color: white;
  border-radius: 12px 12px 0 0;
  padding: 1rem 1.5rem;
}

.action-buttons {
  gap: 0.25rem;
}

.action-btn {
  border-radius: 6px;
  padding: 0.375rem 0.5rem;
  transition: all 0.2s ease;
}

.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.whatsapp-btn {
  background-color: #25D366 !important;
  border-color: #25D366 !important;
}

.call-btn {
  background-color: #2b3a2a !important;
  border-color: #2b3a2a !important;
}

.edit-btn {
  background-color: #967c3f !important;
  border-color: #967c3f !important;
}

.delete-btn {
  background-color: #967c3f !important;
  border-color: #967c3f !important;
}

.form-control-lg {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.form-control-lg:focus {
  border-color: #967c3f;
  box-shadow: 0 0 0 0.2rem rgba(150, 124, 63, 0.25);
}

.orders-status-pending {
  background-color: rgba(150, 124, 63, 0.2);
  color: #967c3f;
  border: 1px solid #967c3f;
}

.orders-status-processing {
  background-color: rgba(39, 63, 82, 0.2);
  color: #273f52;
  border: 1px solid #273f52;
}

.orders-status-completed {
  background-color: rgba(43, 58, 42, 0.2);
  color: #2b3a2a;
  border: 1px solid #2b3a2a;
}

.orders-status-cancelled {
  background-color: rgba(108, 117, 125, 0.2);
  color: #6c757d;
  border: 1px solid #6c757d;
}

.selected-offers {
  background-color: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
}

.selected-offer {
  background-color: white;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.gradient-header {
  background: linear-gradient(135deg, #2b3a2a 0%, #273f52 100%);
  color: white;
}

.btn-orders-primary {
  background-color: #2b3a2a;
  border-color: #2b3a2a;
  color: white;
}

.btn-orders-primary:hover {
  background-color: #1f2b1f;
  border-color: #1f2b1f;
  color: white;
}

.btn-orders-secondary {
  background-color: #967c3f;
  border-color: #967c3f;
  color: white;
}

.btn-orders-secondary:hover {
  background-color: #7a6633;
  border-color: #7a6633;
  color: white;
}

.orders-buttons {
  color: #967c3f !important;
}

/* ========== Agent Card Styling ========== */
.agent-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(150, 124, 63, 0.1) !important;
}

.agent-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(150, 124, 63, 0.15) !important;
  border-color: rgba(150, 124, 63, 0.3) !important;
}

.agent-card .agent-photo {
  transition: all 0.3s ease;
}

.agent-card:hover .agent-photo {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(150, 124, 63, 0.3);
}

.agent-card .btn {
  transition: all 0.2s ease;
  border-radius: 6px;
}

.agent-card .btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .agent-card .col-8,
  .agent-card .col-4 {
    flex: 0 0 auto;
  }
  
  .agent-card .col-8 {
    width: 70%;
  }
  
  .agent-card .col-4 {
    width: 30%;
  }
  
  .agent-card .agent-photo {
    width: 60px !important;
    height: 60px !important;
  }
  
  .agent-card .btn {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.4rem !important;
  }
}