{% require_css %}
<style>
  {% scope_css %}
  
  /* === SECTION SETUP === */
  .properties_section {
    {% if module.style.section_background.choose_background_type == "color" %}
    background-color: ;
    {% elif module.style.section_background.choose_background_type == "gradient" %}
    background: ;
    {% elif module.style.section_background.choose_background_type == "image" %}
    ;
    {% endif %}
    
    ;
    position: relative;
    
    /* ADDED: Spacing at bottom for Load More button */
    padding-bottom: 100px; 
  }
  
  .properties_section:before {
    background-color: ;
    content: "";
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    pointer-events: none;
    inset: 0;
    z-index: -1;
  }

  {% if module.style.enable_custom_wrapper %}
  .properties_section .wrapper {
    max-width: px;
    width: 100%;
    margin: 0 auto;
    padding-left: px;
    padding-right: px;
  }
  {% endif %}

  /* === HEADER === */
  .properties_section .sec_heading_conta {
    margin-bottom: 60px;
    padding-bottom: 10px;
    /* ADDED: Spacing above Header */
    padding-top: 80px; 
    position: relative;
  }
  .properties_section .sec_heading_conta:before {
    background-color: #7CA7AD;
    bottom: 0;
    content: "";
    height: 1px;
    left: 0;
    margin: 0 auto;
    position: absolute;
    right: 0;
    width: 333px;
  }
  .properties_section .sec_heading_conta h2, 
  .properties_section .sec_heading_conta h1,
  .properties_section .sec_heading_conta h3 {
     color: #0B3744;
  }

  /* === CARD GRID === */
  .properties_section .wrap_card_conta {
    display: grid;
    column-gap: 16px;
    row-gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 66px;
  }
  
  /* === CARD BACKGROUND CHANGE === */
  /* This creates the Grey Box effect (#EFEFEA) */
  .properties_section .card_conta {
    background-color: #EFEFEA; 
    display: flex;
    flex-direction: column;
  }
  
  /* IMAGE AREA */
  .properties_section .card_img_conta {
    aspect-ratio: 518 / 383;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
  }
  
  /* TEXT CONTENT AREA */
  .properties_section .content_conta {
    display: flex;
    column-gap: 8px;
    padding: 29px 34px 20px;
    row-gap: 9px;
    justify-content: space-between;
    align-items: center;
  }
  .properties_section .left_content {
    max-width: 318px;
    width: 100%;
  }

  /* === FONT ADJUSTMENTS === */
  /* Changed font-weight to 400 (Normal) to thin it out */
  .properties_section .card_title p,
  .properties_section .card_specs p {
    color: #0B3744 !important;
    font-size: 15px !important;
    font-family: 'Boston', sans-serif !important;
    text-transform: uppercase;
    font-weight: 400 !important; /* Normal weight, not bold */
    margin-bottom: 5px;
    line-height: 1.4;
  }

  /* BUTTONS */
  .properties_section .card_button {
    max-width: 130px; 
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
  .properties_section .cta_button {
    text-align: center;
    display: inline-block;
    padding: 10px 20px;
    background: #0B3744;
    color: #fff;
    text-decoration: none;
    text-transform: normal;
    white-space: nowrap;
    font-size: 14px;
    font-family: 'Boston', sans-serif;
  }

  /* LOAD MORE */
  .hidden_ { display: none; }
  .properties_section .load_more_btn { margin-top: 20px; }

  /* === POPUP STYLES === */
  .properties_section .wrap_property_popup {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    border: 21px solid rgba(11, 55, 68, .22);
    max-width: 1280px;
    padding: 72px 94px 80px;
    width: 100%;
    overflow-y: auto;
    height: 75vh;
  }
  .properties_section .wrap_property_popup.show-popup { display: block; }
  .properties_section .wrap_property_popup.show-popup ~ body::before { display: block; }
  
  .properties_section .close_popup {
    background: none; border: none; cursor: pointer;
    padding: 16px; position: absolute; right: 24px; top: 24px; z-index: 23;
  }
  .properties_section .close_popup:before,
  .properties_section .close_popup:after {
    content: ""; position: absolute; top: 18px; left: 14px;
    width: 31px; height: 1px; background: #7CA7AD; transform-origin: center;
  }
  .properties_section .close_popup:before { transform: translate(-50%, -50%) rotate(45deg); }
  .properties_section .close_popup:after { transform: translate(-50%, -50%) rotate(-45deg); }

  /* Popup Content */
  .properties_section .popup_title h3 { line-height: 20px; text-transform: uppercase; color: #0B3744; }
  .properties_section .popup_title { margin-bottom: 27px; }
  .properties_section .popup_specs { margin-bottom: 25px; }
  .properties_section .popup_desc { margin-bottom: 27px; }
  .properties_section .popup_button_conta { margin-bottom: 40px; }

  /* Gallery */
  .properties_section .gallery_main_view {
    width: 100%;
    aspect-ratio: 1091 / 635;
    background-size: cover;
    background-position: center;
    margin-bottom: 15px;
    transition: background-image 0.3s ease;
  }
  .properties_section .gallery_thumbs {
    display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px;
  }
  .properties_section .thumb_img {
    min-width: 100px; height: 70px;
    background-size: cover; background-position: center;
    cursor: pointer; opacity: 0.6; transition: opacity 0.2s;
    border: 2px solid transparent;
  }
  .properties_section .thumb_img:hover,
  .properties_section .thumb_img.active {
    opacity: 1; border-color: #0B3744;
  }

  /* === RESPONSIVE === */
  @media (min-width: 768px) and (max-width: 1024px) {
    .properties_section { ; }
    .properties_section .wrap_property_popup { padding: 54px 35px 40px; }
  }
  @media (max-width: 767px){
    .properties_section { ; }
    .properties_section .wrap_card_conta {
      grid-template-columns: repeat(1, minmax(0, 1fr));
      row-gap: 12px;
      margin-bottom: 26px;
    }
    .properties_section .content_conta {
      flex-direction: column; align-items: center; text-align: center;
      padding: 14px 10px 12px;
    }
    .properties_section .sec_heading_conta { margin-bottom: 22px; padding-bottom: 8px; padding-top: 40px; }
    .properties_section .wrap_property_popup {
      padding: 35px 20px 35px; overflow-x: hidden; height: 70vh; width: 95%;
    }
    .properties_section .close_popup { right: 5px; top: 5px; }
    .properties_section .card_button { justify-content: center; margin-top: 10px;}
    .properties_section .sec_heading_conta:before { background-color: #7CA7AD; }
    .properties_section .load_more_btn { margin-bottom: 40px; }
  }
  {% end_scope_css %}
</style>
{% end_require_css %}