/* Community details page only — every rule is scoped to .community-details-page */

/* ----------------------------- Intro ----------------------------- */

.community-details-page .community_section {
  padding: 30px 0 0;
  background: none;
}

/* ------------------------- Community facts ------------------------- */

.community-details-page .community-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 20px;
  width: 100%;
  margin-top: 80px;
}

.community-details-page .community-fact-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 154px;
  padding: 16px 18px 18px;
  border: 1px solid #d5d5d5;
  border-radius: 15px;
  background: #ffffff;
}

.community-details-page .fact-label {
  font-size: 16px;
  color: #090909;
}

.community-details-page .fact-value h5 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
  color: #090909;
}

/* Longer text values, e.g. "Check service charges by project, as rates vary" */
.community-details-page .fact-value h5.fact-note {
  font-size: 18px;
  line-height: 1.3;
}

.community-details-page .fact-value small,
.community-details-page .fact-value strong {
  display: block;
  line-height: 1.3;
}

.community-details-page .fact-value small {
  margin-top: 6px;
  font-size: 11px;
}

.community-details-page .fact-value strong {
  font-size: 13px;
  font-weight: bold;
}

/* ----------------------- Community features ----------------------- */

.community-details-page .community-features-title {
  margin-top: 100px;
}

.community-details-page .community-features-title h4 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 10px;
}

.community-details-page .school-shop-list {
  margin-top: 40px;
}

/* ----------------------- Community location ----------------------- */

.community-details-page .community-location {
  margin-top: 45px;
}

/* ------------------------ Projects within ------------------------ */

.community-details-page .community-projects {
  padding: 60px 0 40px;
}

.community-details-page .community-projects .small-title {
  margin-bottom: 24px;
}

.community-details-page .community-project-item {
  position: relative;
  height: 490px;
  border-radius: 16px;
  overflow: hidden;
}

.community-details-page .community-project-item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-details-page .community-project-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 80px 22px 18px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.community-details-page .community-project-content h5 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 6px;
}

.community-details-page .community-project-content p {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.community-details-page .community-projects-nav {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 40px;
}

.community-details-page .community-projects-nav .buttons {
  position: relative;
  z-index: 2;
  display: flex;
  column-gap: 15px;
}

.community-details-page .community-projects-nav .swiper-pagination {
  position: absolute;
  top: 50%;
  bottom: auto;
  left: 0;
  right: 0;
  width: auto;
  transform: translateY(-50%);
}

.community-details-page .community-projects-nav .swiper-pagination-bullet {
  width: 14px;
  height: 14px;
  margin: 0 5px;
  border: 1px solid var(--color-primary);
  background: transparent;
}

.community-details-page .community-projects-nav .swiper-pagination-bullet-active {
  background: var(--color-primary);
}

/* --------------------------- Responsive --------------------------- */

@media (max-width: 1199px) {
  .community-details-page .community-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .community-details-page .community-facts {
    margin-top: 50px;
  }
  .community-details-page .community-features-title {
    margin-top: 60px;
  }
  .community-details-page .community-project-item {
    height: 420px;
  }
}

@media (max-width: 767px) {
  .community-details-page .community-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .community-details-page .community-fact-item {
    min-height: 120px;
    padding: 14px;
  }
  .community-details-page .fact-value h5 {
    font-size: 20px;
  }
  .community-details-page .community-features-title {
    width: 100%;
    margin-top: 40px;
  }
  .community-details-page .community-projects {
    padding: 40px 0 20px;
  }
  .community-details-page .community-projects-nav {
    margin-top: 25px;
  }
}

/* ------------------------ List your property ------------------------ */

.community-details-page .list-your-property {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 315px;
  margin-top: 40px;
  padding: 30px 130px 30px 30px;
  color: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  background: url(../images/list-your.png) no-repeat center / cover;
}

.community-details-page .list-your-property-content {
  max-width: 480px;
}

.community-details-page .list-your-property h3 {
  font-size: 44px;
  font-weight: bold;
  margin-bottom: 12px;
}

.community-details-page .list-your-property p {
  font-weight: 600;
  margin: 0;
}

.community-details-page .community-btn {
  display: inline-block;
  padding: 12px 34px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  background: var(--color-primary);
  transition: background 0.35s ease-in-out;
}

.community-details-page .community-btn:hover {
  color: #ffffff;
  background: var(--color-primary-hover);
}

.community-details-page .list-your-property .community-btn {
  margin-top: 30px;
}

/* ----------------------------- Tables ----------------------------- */

.community-details-page .community-table-section {
  padding-top: 80px;
}

.community-details-page .community-table-title {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 10px;
}

.community-details-page .community-table-text {
  max-width: 660px;
  margin-bottom: 30px;
}

.community-details-page .community-table-caption {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 12px;
}

.community-details-page .community-table-wrap + .community-table-caption {
  margin-top: 44px;
}

.community-details-page .community-table-wrap {
  overflow-x: auto;
}

.community-details-page .community-table {
  width: 100%;
  border-collapse: collapse;
}

.community-details-page .community-table th,
.community-details-page .community-table td {
  height: 66px;
  padding: 0 30px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid #d5d5d5;
}

.community-details-page .community-table th {
  font-weight: bold;
  border-top: 1px solid #d5d5d5;
}

.community-details-page .community-table th:first-child,
.community-details-page .community-table td:first-child {
  text-align: left;
}

.community-details-page .community-table th:last-child,
.community-details-page .community-table td:last-child {
  text-align: right;
}

.community-details-page .community-table-3 th,
.community-details-page .community-table-3 td {
  width: 33.33%;
}

/* ------------------------------- FAQ ------------------------------- */

.community-details-page .community-faq {
  padding-top: 110px;
}

.community-details-page .community-faq-title {
  max-width: 1000px;
  margin: 0 auto 40px;
  text-align: center;
}

.community-details-page .community-faq-title h2 {
  font-size: 60px;
  font-weight: bold;
  line-height: 1.1;
  color: #090909;
  margin-bottom: 10px;
}

.community-details-page .community-faq-title p {
  max-width: 720px;
  margin: 0 auto;
}

.community-details-page .community-faq-item {
  border-bottom: 1px solid #707070;
}

.community-details-page .community-faq-question {
  position: relative;
  display: block;
  width: 100%;
  min-height: 96px;
  padding: 20px 60px 20px 0;
  font: inherit;
  text-align: left;
  color: #090909;
  background: none;
  border: 0;
  cursor: pointer;
}

.community-details-page .community-faq-question .plus {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
}

.community-details-page .community-faq-question .plus::before,
.community-details-page .community-faq-question .plus::after {
  content: "";
  position: absolute;
  background: #090909;
  transition: opacity 0.3s ease-in-out;
}

.community-details-page .community-faq-question .plus::before {
  top: 12px;
  left: 0;
  width: 26px;
  height: 2px;
}

.community-details-page .community-faq-question .plus::after {
  top: 0;
  left: 12px;
  width: 2px;
  height: 26px;
}

.community-details-page .community-faq-item.open .plus::after {
  opacity: 0;
}

.community-details-page .community-faq-answer {
  display: none;
  padding: 0 60px 25px 0;
}

.community-details-page .community-faq-item.open .community-faq-answer {
  display: block;
}

/* ---------------------- Connect with our agent ---------------------- */

.community-details-page .community-connect {
  padding: 120px 0 0;
  background: linear-gradient(180deg, #ffffff 0%, #e4ebe9 60%);
}

.community-details-page .community-connect .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.community-details-page .community-connect-left {
  max-width: 600px;
}

.community-details-page .community-connect-left h2 {
  font-size: 80px;
  font-weight: bold;
  line-height: 1.1;
  color: #090909;
  margin-bottom: 30px;
}

.community-details-page .community-connect-left .heading_dot {
  display: inline-block;
}

.community-details-page .community-connect-left .heading_dot::after {
  right: -20px;
  bottom: 18px;
}

.community-details-page .community-connect-left p {
  max-width: 480px;
}

.community-details-page .community-connect-form {
  width: 710px;
  max-width: 100%;
  padding: 32px;
  background: #ffffff;
  border-radius: 24px;
}

.community-details-page .community-connect-form h4 {
  font-size: 44px;
  font-weight: bold;
  text-align: center;
  color: #090909;
}

.community-details-page .community-connect-form .response-time {
  font-size: 24px;
  text-align: center;
  margin-bottom: 30px;
}

.community-details-page .community-connect-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.community-details-page .community-connect-form .form-row {
  display: flex;
  gap: 20px;
}

.community-details-page .community-connect-form input,
.community-details-page .community-connect-form textarea,
.community-details-page .community-connect-form .nice-select {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  font-size: 15px;
  line-height: 46px;
  border: 1px solid #707070;
  border-radius: 8px;
  background: #ffffff;
}

.community-details-page .community-connect-form .nice-select {
  float: none;
  color: #9a9a9a;
}

.community-details-page .community-connect-form .nice-select .list {
  width: 100%;
}

.community-details-page .community-connect-form textarea {
  height: 208px;
  padding: 15px 18px;
  line-height: 1.4;
  resize: vertical;
}

.community-details-page .community-connect-form .form-phone {
  display: flex;
  border: 1px solid #707070;
  border-radius: 8px;
  overflow: hidden;
}

.community-details-page .community-connect-form .form-phone input {
  border: 0;
  border-radius: 0;
}

.community-details-page .community-connect-form .phone-code {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 0 16px;
  font-size: 15px;
  border-right: 1px solid #707070;
}

.community-details-page .flag-uae {
  display: inline-block;
  width: 24px;
  height: 16px;
  background:
    linear-gradient(90deg, #ef3340 0 27%, transparent 27%),
    linear-gradient(180deg, #009739 0 33.3%, #ffffff 33.3% 66.6%, #000000 66.6%);
}

.community-details-page .community-connect-form button {
  height: 50px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  border: 0;
  border-radius: 8px;
  background: var(--color-primary);
  cursor: pointer;
  transition: background 0.35s ease-in-out;
}

.community-details-page .community-connect-form button:hover {
  background: var(--color-primary-hover);
}

/* -------------------- Discover similar communities -------------------- */

.community-details-page .community-similar {
  padding: 125px 0 80px;
  background: #e4ebe9;
}

.community-details-page .community-similar .small-title {
  margin-bottom: 24px;
}

.community-details-page .community-similar-list {
  display: flex;
  gap: 16px;
  height: 504px;
}

.community-details-page .community-similar-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  transition: flex-grow 0.4s ease-in-out;
}

.community-details-page .community-similar-item.active {
  flex-grow: 1.6;
}

.community-details-page .community-similar-item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-details-page .community-similar-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 80px 20px 30px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.community-details-page .community-similar-content h5 {
  font-size: 24px;
  font-weight: bold;
  line-height: 1.1;
}

.community-details-page .community-similar-content span {
  font-size: 14px;
  font-weight: bold;
}

.community-details-page .community-similar-content p,
.community-details-page .community-similar-content .arrow {
  display: none;
}

.community-details-page .community-similar-item.active p {
  display: block;
  margin: 12px 0 18px;
  font-weight: 600;
}

.community-details-page .community-similar-item.active .arrow {
  display: block;
  width: 28px;
}

.community-details-page .community-similar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
}

.community-details-page .community-similar-nav .buttons {
  display: flex;
  column-gap: 15px;
}

.community-details-page .community-similar-nav .swiper-button-prev,
.community-details-page .community-similar-nav .swiper-button-next {
  cursor: pointer;
}

/* --------------------------- Responsive --------------------------- */

@media (max-width: 1199px) {
  .community-details-page .community-connect-left h2 {
    font-size: 60px;
  }
  .community-details-page .community-connect-form {
    width: 560px;
  }
}

@media (max-width: 991px) {
  .community-details-page .list-your-property {
    padding: 30px;
  }
  .community-details-page .community-faq-title h2 {
    font-size: 40px;
  }
  .community-details-page .community-connect .container {
    flex-direction: column;
    align-items: stretch;
  }
  .community-details-page .community-connect-left {
    max-width: none;
  }
  .community-details-page .community-connect-form {
    width: 100%;
  }
  .community-details-page .community-similar-list {
    height: 420px;
  }
}

@media (max-width: 767px) {
  .community-details-page .list-your-property {
    height: auto;
    min-height: 260px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url(../images/list-your.png);
    background-position: left center;
  }
  .community-details-page .list-your-property h3 {
    font-size: 32px;
  }
  .community-details-page .community-table-section {
    padding-top: 50px;
  }
  .community-details-page .community-table th,
  .community-details-page .community-table td {
    height: 52px;
    padding: 0 15px;
  }
  .community-details-page .community-faq {
    padding-top: 60px;
  }
  .community-details-page .community-faq-title h2 {
    font-size: 32px;
  }
  .community-details-page .community-faq-question {
    min-height: 72px;
  }
  .community-details-page .community-connect {
    padding-top: 60px;
  }
  .community-details-page .community-connect-left h2 {
    font-size: 40px;
  }
  .community-details-page .community-connect-form {
    padding: 20px;
  }
  .community-details-page .community-connect-form h4 {
    font-size: 30px;
  }
  .community-details-page .community-connect-form .response-time {
    font-size: 16px;
  }
  .community-details-page .community-connect-form .form-row {
    flex-direction: column;
  }
  .community-details-page .community-similar {
    padding: 60px 0;
  }
  .community-details-page .community-similar-list {
    flex-direction: column;
    height: auto;
  }
  .community-details-page .community-similar-item {
    flex: none;
    height: 320px;
  }
}

/* ------------------ Separator between Sales and Rent ------------------ */

.community-details-page .cd-separator {
  height: 0;
  margin: 60px 0 58px;
  border: 0;
  border-top: 2px solid #9a9a9a;
  opacity: 1;
}

@media (max-width: 767px) {
  .community-details-page .cd-separator {
    margin: 30px 0;
  }
}

/* ------------------ Properties for Sale / Rent cards ------------------ */

.community-details-page .cd-properties .swiper-nav-wrap {
  margin-top: 30px;
}

.community-details-page .cd-property-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.community-details-page .cd-property-image img {
  display: block;
  width: 100%;
  height: 286px;
  object-fit: cover;
}

.community-details-page .cd-property-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 18px;
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 6px;
  background: var(--color-primary);
}

.community-details-page .cd-property-image .list_of_pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  text-align: center;
}

.community-details-page .cd-property-image .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 3px;
}

.community-details-page .cd-property-content {
  padding-top: 18px;
}

.community-details-page .cd-property-title {
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.community-details-page .cd-property-title a {
  color: #090909;
}

.community-details-page .cd-property-place,
.community-details-page .cd-property-ref {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #090909;
}

.community-details-page .cd-property-place {
  font-size: 15px;
}

.community-details-page .cd-property-ref {
  font-size: 13px;
}
.community-details-page .cd-property-ref img {
   border-radius: 0px !important;
}

.community-details-page .cd-property-ref strong {
  font-weight: bold;
}

.community-details-page .cd-property-place img,
.community-details-page .cd-property-ref img {
  width: 16px;
  flex-shrink: 0;
}

.community-details-page .cd-property-options {
  display: flex;
  column-gap: 34px;
  margin-top: 14px;
  padding: 12px 0;
  border-top: 1px solid #e2e2e2;
  border-bottom: 1px solid #e2e2e2;
}

.community-details-page .cd-property-option {
  display: flex;
  align-items: center;
  gap: 10px;
}

.community-details-page .cd-property-option img {
  width: 26px;
}

.community-details-page .cd-property-option strong,
.community-details-page .cd-property-option span {
  display: block;
  line-height: 1.2;
}

.community-details-page .cd-property-option strong {
  font-size: 13px;
  font-weight: bold;
}

.community-details-page .cd-property-option span {
  font-size: 12px;
}

.community-details-page .cd-property-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-top: 14px;
}

.community-details-page .cd-property-price {
  font-size: 22px;
  font-weight: bold;
  color: #090909;
}

.community-details-page .cd-property-date {
  display: block;
  font-size: 12px;
  color: #9a9a9a;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .community-details-page .cd-property-image img {
    height: 240px;
  }
  .community-details-page .cd-property-options {
    column-gap: 20px;
  }
  .community-details-page .cd-property-price {
    font-size: 19px;
  }
}
