body.page-template-single-project-template {
  background-color: #fff !important;
}
.page-template-single-project-template .main-nav .nav-list li a {
  color: #000 !important; /* Change to black or any color */
}
:root { --theme-blue:#0071CE; }
.unit-card-title{
  font-size:16px;font-weight:700;color:#212427;margin-bottom:8px;line-height:1.35
}
.unit-card:hover .unit-card-title,
.unit-card:focus-within .unit-card-title{ color:var(--theme-blue) }

.sp-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 50px 20px 20px 20px;
}
.proj-title {
  font-size: 32px;
  margin-bottom: 10px;
}
.proj-info p {
  font-size: 16px;
  margin: 4px 0;
}
.proj-main-image img {
  width: 100%;
  max-height: 515px;
  object-fit: cover;
  border-radius: 16px;
 margin-top: 50px;
}
.proj-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  justify-content: space-around;
}
.proj-gallery img {
  width: 203px;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
}
.proj-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.proj-buttons .button {
  padding: 12px 24px;
  background-color: #0073aa;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  
}
.proj-buttons .button.green {
  background-color: #4ad964;
}
.proj-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

.proj-info {
  flex: 1;
  min-width: 200px;
}

.proj-buttons {
  display: flex;
  gap: 12px;
}
.proj-details-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.proj-section-title {
  font-size: 22px;
  font-weight: bold;
  color: #222;
}

.proj-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.action-btn {

  padding: 10px 18px;
  border: 1px solid #ddd;
  background-color: #f7f7f7;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background-color: #0073aa;
  color: white;
  border-color: #0073aa;
}

.action-btn.primary {
  background-color: #0073aa;
  color: white;
  border-color: #0073aa;
}

.action-btn.primary:hover {
  background-color: #005e8a;
  border-color: #005e8a;
}

.action-btn.small {
  padding: 8px 14px;
  font-size: 13px;
}
.proj-details-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.proj-section-title {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
}

.action-btn {

  border: 1px solid #ccc;
  background-color: #f9f9f9;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  transition: 0.2s ease;
}

.action-btn:hover {
  background-color: #0073aa;
  color: white;
  border-color: #0073aa;
}

.action-btn.primary {
  background-color: #0073aa;
  color: white;
  border-color: #0073aa;
}

.action-btn.primary:hover {
  background-color: #005e8a;
}

.action-btn.small {
  padding: 8px 14px;
  font-size: 13px;
}

.proj-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.action-btn i {
  margin-right: 8px;
  font-size: 14px;
}
.proj-info-section {
  padding: 60px 0;
}

.proj-info-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.proj-description {
  max-height: 700px;
  overflow-y: auto;
  padding-right: 20px;
}




.cf7-submit {
  background-color: #1c72e3;
  color: #fff;
  padding: 12px 20px;
  font-size: 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.cf7-submit:hover {
  background-color: #155fc1;
}
/* ===== Sticky Form Wrapper ===== */


/* ===== Headline ===== */


/* ===== Label Styling ===== */

/* ===== Input + Textarea Styling ===== */


/* ===== Submit Button ===== */
.proj-contact-form input[type="submit"] {
  width: 100%;
  background-color: #1c72e3;
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.proj-contact-form input[type="submit"]:hover {
  background-color: #155fc1;
}

.meeting-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border: 1px solid #d6d6d6;
  color: #333;
  font-size: 14px;
  padding: 10px 16px;
  width: 90%;
  border-radius: 6px;
  margin-top: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.meeting-button i {
  margin-right: 8px;
  font-size: 16px;
}

.meeting-button:hover {
  background-color: #e0e0e0;
}
.proj-amenities {
  margin-top: 30px;
}

.proj-amenities h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #004d80;
}

.amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.amenity-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #333;
}

.amenity-box i {
  font-size: 18px;
  color: #0077c8;
}

.proj-faqs {
  padding: 0px;
}

.faq-item {
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  background: #fff;
  border: none;
  width: 100%;
  text-align: left;
  padding: 20px;
  font-weight: 500;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  padding: 20px;
  display: none;
  font-size: 14px;
  color: #555;
}

.faq-question.open + .faq-answer {
  display: block;
}

.faq-icon {
  font-size: 18px;
  color: #ccc;
}
.proj-faqs {
  padding: 60px 0;
  background-color: #fff; /* optional for section background */
}
.faq-list {
    max-width: 1300px; }
 .units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.unit-card {
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.3s;
}

.unit-card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.unit-label {
  position: absolute;
  background: #f1f1f1;
  padding: 5px 10px;
  font-size: 12px;
  top: 10px;
  left: 10px;
  border-radius: 5px;
}

.unit-card img {
  width: 100%;
  height: unset;
  object-fit: fill;
  aspect-ratio:16/9;
  display: block;
}


.unit-content {
  padding: 15px;
}

.unit-title {
  font-size: 16px;
  font-weight: 600;
  margin: 5px 0;
}

.unit-location {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

.unit-features {
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.unit-price strong {
  font-size: 18px;
  display: block;
  margin-bottom: 5px;
}

.unit-price small {
  font-size: 12px;
  color: #777;
}

.unit-actions {
  margin-top: 10px;
}

.unit-actions a {
  display: inline-block;
  margin-right: 8px;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 16px;
  color: #fff;
  background: #007bff;
  text-align: center;
}

.unit-actions .whatsapp-btn {
  background: #25D366;
}
   
/* === Mobile  === */
@media (max-width: 768px) {
  .proj-action-buttons {
    display: flex
;
    flex-wrap: nowrap;
    gap: 7px;
    flex-direction: row;
    justify-content: space-evenly;
}
  .action-btn {
    padding: 8px 5px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: 0.2s ease;
}
  .proj-info-grid {
    display: flex
;
  
   
    align-content: space-between;
    flex-direction: column;
    flex-wrap: nowrap;
}
.proj-contact-form {
    position: sticky !important;
    padding : 0px;
}
.proj-contact-form { width :unset; }
.proj-description {
    max-height: 350px;
        padding-right: 0px;
}
.meeting-button {
       width: 90%;}

}   
.unit-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.unit-price {
  font-size: 16px;
  color: #000;
  font-weight: 600;
}

.unit-price .price-plan {
  font-size: 16px;
  color: #666;
  font-weight: normal;
}

.unit-actions {
  display: flex;
  gap: 8px;
}

.unit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f5ff;
  color: #0d6efd;
      width: 45px;
    height: 40px;
  border-radius: 12px; /* Slightly more rounded */
  font-size: 30px;     /* Larger icon size */
  transition: all 0.3s ease;
  text-decoration: none;
}

.unit-btn:hover {
  background-color: #0d6efd;
  color: #fff;
}
.unit-actions a {
    display: inline-block;
    margin-right: 0px; 
    padding: 5px; 
    border-radius: 5px;
   font-size:25px;
    
    }

/* === Sticky Title Row === */
.proj-sticky-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

/* === Grid Layout === */
.proj-info-section {
  padding: 60px 0;
}
.proj-info-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

/* === Left Side === */
.proj-description {
  max-height: 100%;
  overflow-y: auto;
  padding-right: 20px;
}

/* === Sticky Form === */

/* === Meeting Button === */
.meeting-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border: 1px solid #d6d6d6;
  color: #333;
  font-size: 14px;
  padding: 10px 16px;
  width: 90%;
  border-radius: 6px;
  margin-top: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.meeting-button i {
  margin-right: 8px;
  font-size: 16px;
}
.meeting-button:hover {
  background-color: #e0e0e0;
}

.proj-contact-form label {
  margin-bottom: 4px;
  display: block;
}
.proj-contact-form input,
.proj-contact-form textarea {
  margin-bottom: 8px;
}


/* Gallery */
.proj-main-image-wrapper {
  width: 100%;
  text-align: center;
}

#mainProjectImage {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.proj-gallery {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
}

.proj-thumb {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border 0.3s;
}

.proj-thumb:hover,
.proj-thumb.active {
  border-color: #333;
}

/* Sticky Row */
.proj-sticky-row {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.proj-title {
  margin-bottom: 10px;
  font-size: 24px;
}

.proj-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.proj-buttons .button {
  padding: 10px 20px;
  margin-left: 10px;
  display: inline-block;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

.proj-buttons .green {
  background: #4ad964;
}

/* Responsive */
@media (max-width: 768px) {
    .maqam-contact-form textarea {width:91%;}
  .proj-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .proj-buttons {
    margin-top: 10px;
  }
}

/* Modal styling */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  padding-top: 100px;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 30px;
  width: 90%;
  max-width: 400px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-content2 {
 position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0;
  left: auto !important;
  width: 50% !important; /* Half screen */
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  background: #fff;
  box-shadow: -5px 0 15px rgba(0,0,0,0.2);
  z-index: 9999;
  overflow-y: auto;
  border-radius: 0;
}
/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #aaa;
  cursor: pointer;
}

/* Form fields */
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

/* Submit & Download button */
.wpcf7 input[type="submit"],
.download-link button {
  width: 100%;
  padding: 12px;
  background-color: #006699;
  color: white;
  border: none;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.wpcf7 input[type="submit"]:hover,
.download-link button:hover {
  background-color: #004d73;
}

/* Success message alignment */
.wpcf7-response-output {
  margin-top: 15px;
  text-align: center;
}
/* Style for the download button in the thank you section */
#download-section button {
  background-color: #006699;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#download-section button:hover {
  background-color: #004d73;
}

.proj-slider { width:100%; margin:auto; }
.proj-slider-main img { width:100%; height:100%; object-fit:fill; border-radius:12px; }
.proj-slider-thumbs { margin-top:16px; display:flex; justify-content:center; }
.proj-slider-thumbs img {
  border:2px solid transparent; border-radius:6px; transition:0.2s;
}
.proj-slider-thumbs img.active {
  border-color:#357EC7;
  box-shadow:0 2px 8px rgba(0,0,0,0.09);
}

/* ==== Responsive styles for Single Project Template ==== */

/* For phones & small tablets */
.unit-hero-meta{
	max-width: 1300px;
    margin: 0 auto 60px;
}
@media (max-width: 600px) {
    
	.unit-hero-title{
		font-size: 17px !important;
	}
    .unit-hero-meta {
    flex-direction: column;
        font-size: 13px;
}
	.unit-grid{
		    grid-template-columns: repeat(1, 1fr) !important;
	}
    
  .sp-container {
    padding: 24px 5px 10px 5px;
    max-width: 100vw;
  }
  .proj-title {
    font-size: 22px !important;
    margin-bottom: 8px;
  }
  .proj-main-image img, .proj-slider-main img {
    max-height: 250px;
    border-radius: 9px;
    margin-top: 20px;
  }
  .proj-row, .proj-details-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px;
  }
  .proj-buttons {
    flex-direction: column;
    gap: 8px;
    margin-top: 7px;
    width: 100%;
  }
  .proj-buttons .button {
    width: 100%;
    padding: 13px;
    text-align: center;
    font-size: 15px;
  }
  .proj-info-section {
    padding: 24px 0;
  }
  .proj-info-grid {
    display: block !important;
  }
  .proj-description {
    padding-right: 0;
    max-height: none;
    font-size: 15px;
  }
  .proj-contact-form {
    position: static !important;
    max-width: 100%;
    width: 100%;
    margin: 20px 0 0 0;
    padding: 12px 5px;
    border-radius: 8px;
  }
  .proj-contact-form h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }
  .cf7-input,
  .proj-contact-form input[type="text"],
  .proj-contact-form input[type="tel"],
  .proj-contact-form textarea {
    width: 100%;
    font-size: 14px;
    padding: 10px;
  }
  .cf7-submit,
  .proj-contact-form input[type="submit"] {
    font-size: 15px;
    padding: 12px 0;
  }
  .proj-amenities {
    margin-top: 18px;
  }
  .proj-amenities h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }
  .amenities-list {
    flex-direction: column;
    gap: 10px;
  }
  .amenity-box {
    font-size: 13px;
    gap: 7px;
  }
  .proj-faqs {
    padding: 20px 0;
  }
  .faq-item, .faq-question, .faq-answer {
    font-size: 14px;
    padding: 13px !important;
  }
  .units-grid {
    grid-template-columns: 1fr !important;
    gap: 13px;
  }
  .unit-card {
    font-size: 14px;
    width: 325px;
  }
  .unit-title {
    font-size: 15px;
  }
  .unit-location, .unit-features {
    font-size: 12px;
  }
  .unit-price strong {
    font-size: 16px;
  }
  .unit-actions a,
  .unit-btn {
    font-size: 18px !important;
    padding: 6px !important;
    width: 36px;
    height: 34px;
  }
  .proj-slider-main img {
    height: 180px !important;
  }
  .proj-slider-thumbs img {
    width: 58px;
    height: 40px;
  }
  /* Modal */
  .modal-content, .modal-content2 {
    width: 98vw !important;
    max-width: none !important;
    min-width: 0 !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 7px;
    padding: 15px 4px;
  }
  .modal-content2 {
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
  }
}

/* For tablets and small laptops */
@media (max-width: 991px) {
  .sp-container {
    padding: 36px 8px 14px 8px;
    max-width: 100vw;
  }
  .proj-title {
    font-size: 26px;
  }
  .proj-main-image img, .proj-slider-main img {
    max-height: 340px;
    margin-top: 25px;
  }
  .proj-info-grid {
    display: block !important;
  }
  .proj-contact-form {
    position: static !important;
    max-width: 100%;
    width: 100%;
    margin: 22px 0 0 0;
    padding: 14px 5px;
  }
  .proj-amenities {
    margin-top: 20px;
  }
  .units-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 18px;
  }
  .modal-content2 {
    width: 90vw !important;
  }
}

/* No horizontal scroll ever */

/* ---- RTL---- */

body.rtl{
  direction: rtl;
}
.rtl .wpcf7 input[type="submit"], .rtl  button,.rtl .proj-contact-form h3{
    font-family: 'Gothic-arthin' !important;;
}
.rtl .proj-contact-form h3{
    text-align: right;}
/* ===== RTL Overrides ===== */
.rtl .unit-label {
  left: auto;
  right: 10px;
}

.rtl .close {
  right: auto;
  left: 15px;
}


.rtl .proj-contact-form input[type="text"],
.rtl .proj-contact-form input[type="tel"],
.rtl .proj-contact-form textarea {
  text-align: right;
}
.rtl .proj-contact-form textarea{
    width: 92%;}
.rtl .proj-contact-form label {
  text-align: right;
}

.rtl .action-btn i {
  margin-left: 8px;
  margin-right: 0;
}

.rtl .meeting-button i {
  margin-left: 8px;
  margin-right: 0;
}

.rtl .proj-thumb {
  border: 2px solid transparent;
}

.rtl .proj-thumb:hover,
.rtl .proj-thumb.active {
  border-color: #333;
}

.rtl .proj-buttons .button {
  margin-right: 10px;
  margin-left: 0;
}

.rtl .modal-content2 {
  right: auto !important;
  left: 0 !important;
}
/* ===== new form style ===== */
.proj-contact-form {
  background: #f5f5f5;
  padding-left:10px;
  padding-right:20px;
  border-radius: 5px;
  max-width: 360px;
  width: 100%;
  position: sticky;
  top: 210px;
}

.proj-contact-form h3 {
  font-size: 18px;
  font-weight: 600;
  padding-top: 30px;
  color: #1c72e3;
  margin-top: 0px;

}

.cf7-group {
  margin-bottom: 0px;  /* Reduced for tighter fields */
}

.cf7-group:last-child {
  margin-bottom: 0;     /* No space after the last field */
}

.proj-contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  color: #333;
}

.proj-contact-form input[type="text"],
.proj-contact-form input[type="tel"],
.proj-contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  margin: 0;             /* Remove any default margin */
  box-sizing: border-box;
  display: block;
}

.proj-contact-form textarea {
  min-height: 50px;
  resize: vertical;
}

.proj-contact-form input:focus,
.proj-contact-form textarea:focus {
  border-color: #1c72e3;
  outline: none;
}

.proj-contact-form input[type="submit"] {
  width: 100%;
  background-color: #1c72e3;
  color: #fff;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.proj-contact-form input[type="submit"]:hover {
  background-color: #155fc1;
}

/* Remove p tag margin from inside the form (for CF7 compatibility) */
.proj-contact-form p {
  margin: 0 !important;
  padding: 0 !important;
}
.proj-contact-form br {
  display: none !important;
}

/* ================================================ MODAL BACKDROP ===== */
.modal-bg {
  position: fixed;
  left: 0; top: 100px;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.33);
  z-index: 99999; /* High to cover everything */
  display: flex;
  justify-content: flex-start; /* Align left */
  align-items: flex-start;
}

/* ===== MODAL CONTENT (HALF SCREEN LEFT) ===== */
.modal-content {
  background: #fff;
 
  width: 50vw;
  min-width: 340px;
  max-width: 720px;
  margin: 0;
  box-shadow: 2px 8px 44px rgba(32, 110, 219, 0.13);
  padding: 30px 28px 18px 28px;
  position: relative;
  direction: ltr;
  margin-top: 38px; /* Tweak if needed */
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.modal-content h2 {
  font-size: 17px;
    text-align: center;
    font-weight:600;
}

.modal-content p { margin:2px; }
/* Responsive: modal full width on mobile */
@media (max-width: 900px) {
  .modal-content {
    width: 97vw;
    max-width: 97vw;
    min-width: 0;
    border-radius: 10px;
    margin-top: 8px;
    padding: 12px 5px 8px 5px;
  }
}
@media (max-width: 500px) {
  .modal-content {
    border-radius: 8px;
    padding: 11px 3px 10px 3px;
  }
}

/* ===== CLOSE BUTTON ===== */
.close {
  position: absolute;
  right: 24px; top: 18px;
  font-size: 2rem;
  color: #8d99ae;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
}
.close:hover { color: #206edb; }

/* ===== FORM LAYOUT ===== */
#meeting-modal .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== TWO COLUMNS FOR NAME & PHONE ===== */
.form-row {
  display: flex;
  gap: 10px;
}
.form-row .form-col {
  flex: 1 1 0;
  min-width: 0;
}
/* On mobile, stack fields */
@media (max-width: 600px) {
  .form-row { flex-direction: column; gap: 7px; }
}

/* ===== LABELS ===== */
#meeting-modal .wpcf7-form label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  color: #222;
  display: block;
  letter-spacing: 0.02em;
}

/* ===== INPUT FIELDS ===== */
#meeting-modal .wpcf7-form input[type="text"],
#meeting-modal .wpcf7-form input[type="tel"],
#meeting-modal .wpcf7-form input[type="date"],
#meeting-modal .wpcf7-form select {
  width: 100%;
  padding: 9px 9px;
  border-radius: 7px;
  border: 1.2px solid #dbe3ee;
  font-size: 14px;
  background: #fafbfc;
  color: #333;
  margin-bottom: 0;
  transition: border 0.18s, background 0.18s;
}
#meeting-modal .wpcf7-form input:focus,
#meeting-modal .wpcf7-form select:focus {
  border-color: #206edb;
  background: #fff;
}
#meeting-modal .wpcf7-form input[readonly] {
  background: #f2f2f2 !important;
  color: #888 !important;
  opacity: 1 !important;
}

/* ===== RADIO GROUPS as BUTTONS ===== */
.date-row .wpcf7-list-item,
.time-row .wpcf7-list-item,
.location-row .wpcf7-list-item {
  display: inline-block;
  margin: 7px 8px 7px 0;
}
.wpcf7-list-item-label {
  display: inline-block;
  padding: 7px 13px;
  background: #f2f6fa;
  border: 1.5px solid #dbe3ee;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #222;
  transition: background .18s, color .18s, border .18s;
  min-width: 70px;
  text-align: center;
}
input[type="radio"]:checked + .wpcf7-list-item-label {
  background: #206edb;
  color: #fff;
  border-color: #206edb;
}
.date-row, .time-row, .location-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: auto;
}
.date-row::-webkit-scrollbar,
.time-row::-webkit-scrollbar,
.location-row::-webkit-scrollbar {
  display: none;
}

/* ===== SUBMIT BUTTON ===== */
#meeting-modal .wpcf7-form input[type="submit"] {
  width: 100%;
  background: #206edb;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border-radius: 10px;
  border: none;
  padding: 13px 0;
  margin-top: 8px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(32, 110, 219, 0.10);
  transition: background 0.2s;
  cursor: pointer;
}
#meeting-modal .wpcf7-form input[type="submit"]:hover {
  background: #174ea6;
}

/* ===== SUCCESS/ERROR MESSAGES ===== */
#meeting-modal .wpcf7-response-output {
  margin: 12px 0 0 0;
  padding: 10px;
  border-radius: 9px;
  text-align: center;
  font-size: 15px;
  background: #f4f6fb;
  border: 1.5px solid #dde5f4;
  color: #206edb;
}
.wpcf7-list-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
/* Hide the default radio circle for all wpcf7-list-item radios */
.wpcf7-list-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Style the label to look like a button */
.wpcf7-list-item-label {
     display: inline-block;
    padding: 8px 16px;
    background: #f2f6fa;
    border: 1.5px solid #dbe3ee;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-right: 5px;
    margin-bottom: 5px;
    min-width: 70px;
  text-align: center;
  transition: background .18s, color .18s, border .18s, box-shadow .15s;
  box-shadow: none;
  position: relative;
}

/* Highlight the "selected" button */
.wpcf7-list-item input[type="radio"]:checked + .wpcf7-list-item-label,
.wpcf7-list-item input[value="Online Meeting"] + .wpcf7-list-item-label{
  background: #357EC7;
  color: #fff;
  border-color: #357EC7;
  box-shadow: 0 1px 8px rgba(32,110,219,0.09);
}

/* Optional: keyboard focus outline for accessibility */
.wpcf7-list-item input[type="radio"]:focus + .wpcf7-list-item-label {
  outline: 2px solid #206edb;
  outline-offset: 2px;
}

/* Remove extra spacing between radio items */
.time-row, .location-row {
  gap: 10px;
}

#modal-view-body {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0;
  padding: 0;
}

#modal-view-body .map-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio (9/16 = 0.5625 = 56.25%) */
  height: 38%;
}

#modal-view-body .map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Action icon buttons on card */
.unit-actions{display:flex; gap:10px; align-items:center;}
.unit-actions a{
  width:44px; height:44px; border-radius:9999px;
  display:flex; align-items:center; justify-content:center;
  color:#fff; background:#0ea5e9; /* phone default */
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.unit-actions .phone-btn{ background:#1f6feb; }      /* blue */
.unit-actions .whatsapp-btn{ background:#25D366; }   /* whatsapp green */
.unit-actions a:hover{ transform: translateY(-2px); box-shadow:0 10px 18px rgba(0,0,0,.12); }
.unit-actions a:active{ transform: translateY(0); }

/* Grid spacing helper if needed */
.unit-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }

/* Show more button */
.units-loadmore-wrap{ text-align:center; margin-top:20px; }
#load-more-units{
  appearance:none; border:0; outline:0;
  background: #f5f5f5;
  color:#000;     padding: 10px 40px; border-radius:8px;
  font-weight:500; letter-spacing:.2px;
  border:1px solid black;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
#load-more-units:hover{ transform: translateY(-2px); }
#load-more-units:active{ transform: translateY(0); }
#load-more-units:disabled{ opacity:.6; cursor:not-allowed; }

/* Loading state spinner */
#load-more-units.is-loading{ position:relative; color:transparent; }
#load-more-units.is-loading::after{
  content:""; width:18px; height:18px; border:2px solid #fff; border-top-color:transparent;
  border-radius:50%; position:absolute; inset:0; margin:auto; animation:spin .8s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

/* === PROJECT PAGE MODAL OVERRIDES (match Unit page style) === */

/* shared backdrop */
#modalBackdrop.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
#modalBackdrop.modal-backdrop.show{
  opacity: 1;
  pointer-events: auto;
}

/* side-panel base (applies to both) */
.gallery-modal,
.master-modal{
  position: fixed !important;
  top: 0;
  right: -100%;
  width: 50%;
  max-width: 720px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 10px rgba(0,0,0,.4);
  z-index: 9999;
  transition: right .3s ease-in-out;
  overflow: hidden;
  display: block !important;      /* prevent center-modal display:flex styles */
}
.gallery-modal.open,
.master-modal.open{ right: 0; }

/* RTL: slide from left */
html[lang="ar"] .gallery-modal,
html[lang="ar"] .master-modal{ left: -100%; right: auto; }
html[lang="ar"] .gallery-modal.open,
html[lang="ar"] .master-modal.open{ left: 0; }

/* panel inner layout */
.gallery-modal-content,
.master-modal-content{
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 16px;
}

/* close buttons (logical inline end for LTR/RTL) */
.gallery-modal-close,
.master-modal-close{
  position: absolute;
  top: 10px;
  inset-inline-start: 12px;  /* left in LTR, right in RTL automatically */
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
  background: transparent;
  border: 0;
}

/* slider area fills panel */
.gallery-slider,
.master-slider{
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* images fit without cropping (like unit page) */
.gallery-slide,
.master-slide{
  display: none;              /* JS toggles */
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f7f7f7;
}

/* controls pinned at bottom, centered */
.gallery-controls,
.master-controls{
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 10px;
}
.gallery-controls button,
.master-controls button{
  padding: 6px 14px;
  font-size: 18px;
  cursor: pointer;
}

/* responsive: full width on small screens */
@media (max-width: 991px){
  .gallery-modal,
  .master-modal{ width: 100%; max-width: none; }
}
.action-btn {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* wrapper */
.proj-contact-form{
  background:#f6f6f6;
  border:1px solid #ddd;
  border-radius:8px;
  padding:18px;
}

/* title */
.proj-cf-title{
  margin:0 0 12px;
  font-size:20px;
  font-weight:700;
  color:#1f2a37;
}

/* grid for first row (name/phone) */
.proj-cf-row{
  display:grid;
  grid-template-columns:1fr 1fr; /* 50/50 */
  gap:12px;
  
}
.proj-cf-col,
.proj-cf-group{ margin-bottom:1px; }

/* labels */
.proj-contact-form label{
  display:block;
  margin-bottom:6px;
  font-size:13px;
  font-weight:500;
  color:#000;
}

/* inputs */
.proj-input,
.proj-textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid #d1d5db;
  background:#fff;
  border-radius:6px;
  padding:10px 12px;
  font-size:14px;
  line-height:1.4;
  outline:none;
  transition:border-color .2s, box-shadow .2s;
}
.proj-input:focus,
.proj-textarea:focus{
  border-color:#0071CE;
  box-shadow:0 0 0 3px rgba(0,113,206,0.15);
}

/* readonly project field */
.proj-input[readonly]{
  background:#f3f4f6;
  color:#111827;
  cursor:not-allowed;
  opacity:1; /* keep text readable */
}

/* submit */
.proj-cf-actions{ margin-top:6px; }
.proj-submit{
  background:#0071CE;
  color:#fff;
  border:none;
  border-radius:8px;
  padding:10px 18px;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
}
.proj-submit:hover{ filter:brightness(0.95); }

/* responsive stack */
@media (max-width:640px){
  .proj-cf-row{ grid-template-columns:1fr; } /* stack on mobile */
}
/* ===== RTL support for the project contact form ===== */
html[dir="rtl"] .proj-contact-form,
body.rtl .proj-contact-form{
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .proj-cf-title,
body.rtl .proj-cf-title{
  text-align: right;
}

html[dir="rtl"] .proj-contact-form label,
body.rtl .proj-contact-form label{
  text-align: right;
}

/* Right-align text fields/textarea in RTL */
html[dir="rtl"] .proj-input,
html[dir="rtl"] .proj-textarea,
body.rtl .proj-input,
body.rtl .proj-textarea{
  text-align: right;
}

/* Keep phone & email LTR for readability */
html[dir="rtl"] .proj-contact-form input[type="tel"],
html[dir="rtl"] .proj-contact-form input[type="email"],
body.rtl .proj-contact-form input[type="tel"],
body.rtl .proj-contact-form input[type="email"]{
  direction: ltr;
  text-align: left;
}

/* Actions naturally align to the right in RTL */
html[dir="rtl"] .proj-cf-actions,
body.rtl .proj-cf-actions{
  text-align: start; /* = right in RTL, left in LTR */
}

/* Hide CF7's default response box / border entirely */

/* Only Arabic (WordPress rtl body class) */
body.rtl .proj-contact-form { direction: rtl; }
body.rtl .proj-contact-form input,
body.rtl .proj-contact-form textarea { text-align: right !important; }
body.rtl .proj-contact-form input::placeholder,
body.rtl .proj-contact-form textarea::placeholder { text-align: right; }

@media (max-width:768px){
  /* kill any top CTA rows/strips on mobile */
  .unit-hero-meta .cta-row,
  .unit-hero-meta .cta-top,
  .cta-topbar,
  .sticky-cta-top {
    display:none !important;
  }
  /* and make hero meta non-sticky if you don’t want it at all on mobile */
  .unit-hero-meta{
    position: static !important;
    top:auto !important;
    border-bottom: 0 !important;
  }
}
@media (max-width:768px){
  html, body { overflow-x:hidden; }

  .mobile-cta-bar{
    position: fixed;
    inset: auto 0 0 0;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid #e6ebf2;
    padding: 12px 16px;   /* same left/right */
    box-sizing: border-box;
    max-width: 100%;
  }

  body { padding-bottom: 82px; } /* make space for bar */

  .mobile-cta-row{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;            /* gap between buttons */
    align-items: center;
  }

  .btn-cta{
    display:inline-block;
    width:100%;
    text-align:center;
    font-weight:600;
    line-height:1;
    padding:14px 0;       /* same vertical padding */
    border-radius:10px;
    text-decoration:none;
    font-size:15px;
  }

  /* Call Now */
  .btn-cta.primary{
    background:#0071CE;
    color:#fff;
  }
  .btn-cta.primary:hover{ opacity:.9; }

  /* WhatsApp */
  .btn-cta.whatsapp{
    background:#25D366;
    color:#fff;
  }
  .btn-cta.whatsapp:hover{ opacity:.9; }
}


/* ===== CF7: show message on TOP (scoped) ===== */
#contact-form .wpcf7-form,
.proj-contact-form .wpcf7-form {          /* add any wrapper you use */
  display: flex;
  flex-direction: column-reverse;
}

#contact-form .wpcf7-response-output,
.proj-contact-form .wpcf7-response-output {
  order: -1;
  margin: 0 0 15px 0 !important;
  text-align: center;
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 6px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100%;
}

/* ===== Status colors (new CF7 + legacy) ===== */
/* Success */
#contact-form .wpcf7 form.sent .wpcf7-response-output,
.proj-contact-form .wpcf7 form.sent .wpcf7-response-output,
#contact-form .wpcf7-mail-sent-ok,
.proj-contact-form .wpcf7-mail-sent-ok {
  background: #e6f9f0;
  color: #0a8f5e;
  border: 1px solid #0a8f5e;
}

/* Validation / failed */
#contact-form .wpcf7 form.invalid .wpcf7-response-output,
#contact-form .wpcf7 form.failed  .wpcf7-response-output,
#contact-form .wpcf7-validation-errors,
#contact-form .wpcf7-mail-sent-ng,
.proj-contact-form .wpcf7 form.invalid .wpcf7-response-output,
.proj-contact-form .wpcf7 form.failed  .wpcf7-response-output,
.proj-contact-form .wpcf7-validation-errors,
.proj-contact-form .wpcf7-mail-sent-ng {
  background: #fdecea;
  color: #d93025;
  border: 1px solid #d93025;
}
/* Custom top message bar (independent of CF7's own output) */
.proj-contact-form .cf7-top-msg,
#contact-form .cf7-top-msg {
  display: none;
  margin: 0 0 12px 0;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
}

.proj-contact-form .cf7-top-msg.cf7-ok,
#contact-form .cf7-top-msg.cf7-ok {
  background: #e6f9f0;
  color: #0a8f5e;
  border: 1px solid #0a8f5e;
}

.proj-contact-form .cf7-top-msg.cf7-error,
#contact-form .cf7-top-msg.cf7-error {
  background: #fdecea;
  color: #d93025;
  border: 1px solid #d93025;
}
/* Hide CF7's built-in message in the project contact form */
.proj-contact-form .wpcf7 .wpcf7-response-output,
#contact-form .wpcf7 .wpcf7-response-output {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
/* 1) Reset the form layout */
.wpcf7-form,
#contact-form .wpcf7-form,
.proj-contact-form .wpcf7-form {
  display: block;           /* undo the flex change */
}

/* 2) Optional: hide CF7's native message since we inject our own bar */
#contact-form .wpcf7-response-output,
.proj-contact-form .wpcf7-response-output {
  display: none !important; /* removes the blank space above the form */
}

/* 3) Keep our custom top bar styles (from previous step) */
.proj-contact-form .cf7-top-msg,
#contact-form .cf7-top-msg {
  display: none;
  margin: 0 0 12px 0;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
}
.proj-contact-form .cf7-top-msg.cf7-ok,
#contact-form .cf7-top-msg.cf7-ok { background:#e6f9f0; color:#0a8f5e; border:1px solid #0a8f5e; }
.proj-contact-form .cf7-top-msg.cf7-error,
#contact-form .cf7-top-msg.cf7-error { background:#fdecea; color:#d93025; border:1px solid #d93025; }
