.group {
      max-width: 400px; /* simulate mobile width */
      margin: auto;
      background: #fff;
      border-radius: 8px;
      padding: 10px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      display: none; /* Hide by default, show when JS runs */
    }

    .images {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-gap: 5px;
    }

    .images img {
      width: 100%;
      height: 150px;
      object-fit: cover;
      border-radius: 5px;
    }

    .more {
      position: relative;
      cursor: pointer;
    }
    .more::after {
      content: attr(data-count);
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.6);
      color: #fff;
      font-size: 22px;
      font-weight: bold;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 5px;
    }

    /* Modal styles */
    .modale {
      display: none;
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.8);
      z-index: 9000;
      overflow: hidden;
      box-sizing: border-box;
    }

    .modale.is-open {
      display: block;
    }

    body.modale-open {
      overflow: hidden;
    }

    .modale-close {
      position: fixed;
      top: max(10px, env(safe-area-inset-top, 0px));
      right: max(10px, env(safe-area-inset-right, 0px));
      z-index: 9010;
      margin: 0;
      padding: 6px 10px;
      border: none;
      border-radius: 4px;
      background: rgba(255, 255, 255, 0.92);
      color: #111;
      font-size: 18px;
      font-weight: bold;
      line-height: 1;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }

    .modale-scroll {
      height: 100%;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
      padding: 12px 0 24px;
      box-sizing: border-box;
    }

    .modale-content {
      background: #fff;
      padding: 20px;
      padding-top: 44px;
      border-radius: 8px;
      max-width: 90%;
      width: 100%;
      margin: 0 auto;
      box-sizing: border-box;
    }

    #clickedImage {
      width: 100%;
      margin-bottom: 10px;
      border-radius: 5px;
      cursor: pointer;
    }

    .modale-content img:not(#clickedImage) {
      width: 100%;
      margin-bottom: 10px;
      border-radius: 5px;
      cursor: pointer;
    }

    .close {
      float: right;
      cursor: pointer;
      font-size: 18px;
      font-weight: bold;
    }
    /* Confirmation Modal Styles */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.35);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10000;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s, visibility 0.2s;
    }
    .modal-overlay.active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
    .modal-box {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 6px 32px rgba(0,0,0,0.18);
        padding: 32px 24px;
        max-width: 90vw;
        width: 350px;
        text-align: center;
    }
    .modal-box h2 {
        color: orange;
        margin-bottom: 12px;
    }
    .modal-box p {
        color: #333;
        margin-bottom: 24px;
    }
    .modal-close-btn {
        background: orange;
        color: #fff;
        border: none;
        border-radius: 20px;
        padding: 8px 28px;
        font-size: 1rem;
        cursor: pointer;
        transition: background 0.2s;
    }
    .modal-close-btn:hover {
        background: #ff9800;
    }

    /* "Thanks for posting" modal */
    .posted-modal-box {
        padding: 36px 28px 28px;
    }
    .posted-modal-icon {
        width: 64px;
        height: 64px;
        margin: 0 auto 16px;
        border-radius: 50%;
        background: #e8f5e9;
        color: #2e7d32;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: posted-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .posted-modal-icon svg {
        width: 36px;
        height: 36px;
    }
    .posted-modal-text {
        font-size: 0.95rem;
        line-height: 1.5;
        color: #555;
    }
    .posted-modal-view-btn {
        width: 100%;
        padding: 12px 28px;
        font-weight: 700;
    }
    @keyframes posted-pop {
        0% { transform: scale(0.4); opacity: 0; }
        100% { transform: scale(1); opacity: 1; }
    }

    @media (max-width: 500px) {
        .modal-box {
            width: 90vw;
            padding: 18px 6vw;
        }
    }

    html{
        font-size: 62.5%;
    }
    body{
        background-color: #FAEBD7;
    }

    .property-features{
        text-align: center;
        margin-bottom: 5px;
        color: orange;
    }
    .grid-container{
        display: block;
    }

    .map-container {
        width: 100%;
        max-width: 900px;
        margin: 0 auto 24px auto;
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        padding: 0 2vw;
    }
    .map-div {
        width: 100%;
        max-width: 800px;
        box-sizing: border-box;
    }
    .map-div iframe {
        width: 100%;
        max-width: 800px;
        min-width: 220px;
        height: 340px;
        border-radius: 8px;
        border: 0;
        display: block;
        margin: 0 auto;
        box-sizing: border-box;
        background: #eee;
    }
    @media (max-width: 900px) {
        .map-container, .map-div, .map-div iframe {
            width: 100%;
            max-width: 100%;
        }
        .map-div iframe {
            height: 38vw;
            min-height: 160px;
        }
    }
    @media (max-width: 600px) {
        .map-div iframe {
            height: 48vw;
            min-height: 120px;
        }
    }

.agency-website-link:hover,
.agency-profile-link:hover {
    color: #ff9800 !important; /* Slightly lighter orange on hover */
    text-decoration: none;
    text-decoration-color: #ff9800;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  

  .property-type-paragraph{
    color: orange;
  }
    .house-details {
        padding-top: 0;
        margin-left: auto;
        margin-right: auto;
        margin-top: var(--header-h, 88px);
        width: 100%;
        max-width: 700px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        background-color: white;
        box-sizing: border-box;
    }

    #property-detail-content {
        width: 100%;
        max-width: 100%;
        align-self: stretch;
        box-sizing: border-box;
    }

    .house-details-back {
        width: 100%;
        align-self: stretch;
    }

    .house-details-back .hh-page-back {
        margin-bottom: 4px;
    }
@media (max-width: 500px){
    .house-details {
        width: 100%;
        max-width: min(700px, calc(100vw - 24px));
        margin-left: auto;
        margin-right: auto;
        margin-top: var(--header-h, 88px);
        padding: 12px;
    }
    .grid-image-div,.image-grid{
      

    }
    /* Type + price line and action icons on narrow screens */
    .type-annoucement-div-div {
        margin-left: 0;
        margin-bottom: 8px;
    }
    .property-type-paragraph {
        font-size: clamp(14px, 3.8vw, 16px);
        line-height: 1.35;
    }
    .property-style-and-announcement {
        margin-left: 0;
        flex: 1;
        min-width: 0;
    }
    .type-price-and-options .loyer {
        font-size: clamp(14px, 4vw, 20px);
        line-height: 1.2;
    }
    .type-price-and-options .loyer.loyer--long {
        font-size: clamp(10px, 2.75vw, 13px);
        letter-spacing: -0.02em;
    }
    .type-price-and-options {
        gap: 8px;
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 4px;
    }
    .type-price-and-options .options {
        gap: 4px;
        margin-left: 8px;
        margin-right: 4px;
        flex-shrink: 0;
        align-items: center;
        max-width: 100%;
    }
    .type-price-and-options .property-style-and-announcement {
        overflow: hidden;
    }
    .type-price-and-options .loyer {
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    .type-price-and-options .options .share,
    .type-price-and-options .options .signal,
    .type-price-and-options .options .like {
        display: flex;
        align-items: center;
    }
    .type-price-and-options .options .contacter-div {
        margin-right: 0;
        margin-left: 0;
    }
    .type-price-and-options .options .like-icon-svg,
    .type-price-and-options .options .options-icon,
    .type-price-and-options .options .options-icon-svg {
        width: 20px;
        height: 20px;
        margin-right: 0;
    }
    .type-price-and-options .options .like-button,
    .type-price-and-options .options .options-action-btn {
        padding: 4px;
        margin: 0;
        min-width: 28px;
        min-height: 28px;
    }
    .type-price-and-options .options .like-button {
        margin: 0;
    }
    .house-info-details .info-box-loyer {
        font-size: clamp(14px, 3.6vw, 16px);
    }
    .contacter-div button,
    .contact-scroll-btn {
        background-color: orange;
        color: white;
        font-size: 11px;
        margin-left: 0;
        padding: 5px 8px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        line-height: 1.2;
        white-space: nowrap;
        transition: background-color 0.3s ease;
    }
    .contacter-div button:hover,
    .contact-scroll-btn:hover {
        background-color: #ff9800;
    }

    iframe{
        width: 100%;
        height: 200px;
    }
    .house-info-details{
        
    }
    .phone-btn{
        width: 100%;
        max-width: 320px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
    
   
/* Similar listings — compact horizontal rail (outside .house-details) */
.similar-listings {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1.25rem clamp(0.75rem, 3vw, 1.25rem) 1.5rem;
    background: #fff;
    border-top: 1px solid #ebe3d8;
    box-sizing: border-box;
}

.similar-listings__inner {
    width: min(960px, 100%);
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.similar-listings__title {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1a1a1a;
}

.similar-listings__scroller {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0 8px;
    margin: 0;
    scrollbar-width: thin;
    scrollbar-color: #c9b8a4 transparent;
}

.similar-listings__scroller::-webkit-scrollbar {
    height: 4px;
}

.similar-listings__scroller::-webkit-scrollbar-thumb {
    background: #c9b8a4;
    border-radius: 999px;
}

.similar-card {
    flex: 0 0 168px;
    scroll-snap-align: start;
}

.similar-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.similar-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: #e8e0d4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.similar-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.similar-card__link:hover .similar-card__image,
.similar-card__link:focus-visible .similar-card__image {
    transform: scale(1.03);
}

.similar-card__body {
    padding: 0.4rem 0.1rem 0;
}

.similar-card__title {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-card__location {
    margin: 0.12rem 0 0;
    font-size: 0.7rem;
    line-height: 1.3;
    color: #6b6156;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-card__price {
    margin: 0.2rem 0 0;
    font-size: 0.74rem;
    line-height: 1.3;
    color: #1a1a1a;
}

.similar-card__price-label {
    font-weight: 500;
    color: #5c5348;
}

.similar-card__price-value,
.similar-card__price .price-with-unit__amount {
    font-weight: 700;
}

.similar-card__specs {
    margin: 0.15rem 0 0;
    font-size: 0.68rem;
    color: #7a7064;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.similar-card__specs-sep {
    opacity: 0.55;
}

@media (max-width: 560px) {
    .similar-listings {
        padding: 1rem 0.75rem 1.25rem;
    }

    .similar-card {
        flex-basis: 152px;
    }

    .similar-listings__title {
        font-size: 0.95rem;
    }
}

    .grid-image-div {
        width: 100%;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
        display: block;
        box-sizing: border-box;
        padding: 0;
        text-align: center;
    }
    .image-grid {
        display: grid;
        margin: 24px auto 0 auto;
        width: 100%;
        max-width: 520px;
        min-width: 220px;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 116px);
        gap: 10px;
        box-sizing: border-box;
        padding-top: 0;
        justify-items: center;
        align-items: center;
    }
    @media (max-width: 900px) {
        .house-details {
            width: 100%;
            max-width: min(700px, calc(100vw - 24px));
            margin-left: auto;
            margin-right: auto;
            padding: 12px;
            box-sizing: border-box;
        }

        .type-annoucement-div-div,
        .property-style-and-announcement {
            margin-left: 0;
            margin-right: 0;
            width: 100%;
        }

        .type-price-and-options .property-style-and-announcement {
            width: auto;
            flex: 1;
            min-width: 0;
        }

        .type-price-and-options .options {
            width: auto;
            margin-left: 12px;
            margin-right: 0;
            flex-shrink: 0;
        }

        .sd-stay-pricing {
            margin-left: 0;
            margin-right: 0;
            max-width: 100%;
        }

        .grid-image-div {
            width: 100%;
            max-width: 100%;
            padding: 0;
            margin-left: auto;
            margin-right: auto;
        }
        .image-grid {
            width: 100%;
            max-width: 100%;
            min-width: 0;
            margin-left: auto;
            margin-right: auto;
            grid-template-rows: repeat(3, min(116px, 28vw));
        }
    }
    @media (max-width: 700px) {
        .image-grid {
            width: 100%;
            max-width: 100%;
            grid-template-rows: repeat(3, min(120px, 30vw));
        }
    }
  .image-container {
    width: 100%;
    height: 100%;
  }
  .image-container--more {
    position: relative;
    cursor: pointer;
  }
  .image-container--more::after {
    content: attr(data-count);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    pointer-events: none;
  }
  .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
  }
  .group .images img {
    cursor: pointer;
  }
  .image1 {
    grid-column: 1 / 2; /* First column */
    grid-row: 1 / 4; /* Spans all three rows */
  }

  .image2 {
    grid-column: 2 / 3; /* Second column */
    grid-row: 1 / 2; /* First row */
  }
  .image3 {
    grid-column: 2 / 3; /* Second column */
    grid-row: 2 / 3; /* Second row */
  }
  .image4 {
    grid-column: 2 / 3; /* Second column */
    grid-row: 3 / 4; /* Third row */
  }

  /* Desktop grid adapts to actual photo count (no duplicate fillers). */
  .image-grid--count-1 {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 360px);
  }
  .image-grid--count-1 .image1 {
    grid-column: 1;
    grid-row: 1;
  }

  .image-grid--count-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(180px, 280px);
  }
  .image-grid--count-2 .image1 {
    grid-column: 1;
    grid-row: 1;
  }
  .image-grid--count-2 .image2 {
    grid-column: 2;
    grid-row: 1;
  }

  .image-grid--count-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 116px);
  }
  .image-grid--count-3 .image1 {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .image-grid--count-3 .image2 {
    grid-column: 2;
    grid-row: 1;
  }
  .image-grid--count-3 .image3 {
    grid-column: 2;
    grid-row: 2;
  }

  @media (max-width: 900px) {
    .image-grid--count-1 {
      grid-template-rows: minmax(180px, 50vw);
    }
    .image-grid--count-2 {
      grid-template-rows: minmax(140px, 40vw);
    }
    .image-grid--count-3 {
      grid-template-rows: repeat(2, 13vw);
    }
  }

  @media (max-width: 700px) {
    .image-grid--count-3 {
      grid-template-rows: repeat(2, 15vw);
    }
  }

  /* Mobile gallery adapts to photo count. */
  .images--count-1 {
    grid-template-columns: 1fr;
  }
  .images--count-1 img,
  .images--count-1 .more {
    height: 220px;
  }

  .images--count-2 {
    grid-template-columns: 1fr 1fr;
  }

  .images--count-3 img:nth-child(3),
  .images--count-3 .more:nth-child(3) {
    grid-column: 1 / -1;
  }

  .images--count-4 {
    grid-template-columns: 1fr 1fr;
  }

.property-flash-messages {
    list-style: none;
    max-width: 820px;
    margin: 72px auto 0;
    padding: 0 12px;
}
.property-flash {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.property-flash--success {
    background: #e8f5e9;
    color: #2e7d32;
}
.property-flash--error {
    background: #ffebee;
    color: #c62828;
}
.description-div{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}
.description-container {
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
    text-align: center;
}
.description-container h4 {
    margin-bottom: 10px;
    color: orange;
}
.description-preview-wrap {
    position: relative;
}
.description-preview-wrap.is-truncated::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 32px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
}
.description-paragraph {
    max-height: 4.8em;
    overflow: hidden;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    white-space: pre-wrap;
    word-break: break-word;
    color: #333;
}

.view-more-btn {
  background: none;
  border: none;
  color: orange;
  font-weight: bold;
  cursor: pointer;
  padding: 8px 0 0;
  margin-top: 4px;
  font-size: 1em;
  text-decoration: underline;
}
.view-more-btn:hover {
  color: #ea580c;
}

.description-modal-box.modal-box--wide {
    text-align: center;
}
.description-modal-box.modal-box--left h2,
.description-modal-box h2 {
    text-align: center;
    margin-bottom: 14px;
}
.description-modal-body {
    max-height: min(60vh, 480px);
    overflow-y: auto;
    text-align: center;
    line-height: 1.6;
    color: #333;
    margin-bottom: 18px;
    padding-right: 4px;
    word-break: break-word;
}
.description-modal-body p {
    margin: 0 0 0.75em;
}
.description-modal-body p:last-child {
    margin-bottom: 0;
}


.type-price-and-options{
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-items: center;
    position: relative;
    z-index: 6;
    gap: 12px;
}

.property-style-and-announcement{
    display: flex;
    flex-direction: column;
    margin-left: 8%;
    flex: 1;
    min-width: 0;
}

.type-annoucement-div-div{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-left: 8%;
    margin-bottom: 4px;
}
.type-annoucement-div{
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
}
.property-type-paragraph{
    font-weight: bold;
    font-size: 16px;
    line-height: 1.35;
    margin: 0;
    color: #333;
}
.loyer {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: orange;
    white-space: nowrap;
}

.price-with-unit--sd .price-per-unit {
    font-weight: 600;
    color: #c45f00;
}

.price-per-unit__sym,
.price-per-unit__full {
    font-size: 0.78em;
    font-weight: 600;
}

.type-price-and-options .price-per-unit__sym {
    display: inline;
}

.type-price-and-options .price-per-unit__full {
    display: none;
}

@media (min-width: 520px) {
    .type-price-and-options .price-per-unit__sym {
        display: none;
    }

    .type-price-and-options .price-per-unit__full {
        display: inline;
    }
}

.sd-stay-pricing {
    margin: 12px 8% 16px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #fff8f0;
    border: 1px solid #ffe0b8;
    max-width: 640px;
}

.sd-stay-pricing__title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
}

.sd-stay-pricing__formula {
    margin: 0 0 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35em 0.5em;
    font-size: 1.05rem;
    line-height: 1.4;
}

.sd-stay-pricing__times,
.sd-stay-pricing__equals {
    color: #888;
    font-weight: 600;
}

.sd-stay-pricing__total {
    color: orange;
    font-size: 1.15em;
}

.sd-stay-pricing__note {
    margin: 0;
    font-size: 0.88rem;
    color: #666;
}

.sd-stay-pricing .price-per-unit__sym {
    display: none;
}

.sd-stay-pricing .price-per-unit__full {
    display: inline;
}

.options{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-right: 0;
    margin-left: auto;
    position: relative;
    z-index: 5;
    gap: 6px;
    flex-shrink: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.options .share,
.options .signal,
.options .like {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.options .contacter-div {
    margin-right: 0;
}
.options .options-icon {
    width: 25px;
    height: auto;
    margin-right: 0;
    display: block;
    pointer-events: none;
}
.options-action-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    position: relative;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}
.options-action-btn .options-icon,
.options-action-btn .options-icon-svg {
    pointer-events: none;
}
.options-icon-svg {
    width: 25px;
    height: 25px;
    margin-right: 0;
    display: block;
    color: #333;
}
.options-action-btn--signal:hover .options-icon-svg,
.options-action-btn--signal:focus .options-icon-svg {
    color: #b91c1c;
}
.modal-box--wide {
    width: min(420px, 92vw);
    text-align: left;
}
.modal-box--left h2 {
    text-align: left;
}
.modal-close-btn--secondary {
    background: #eee;
    color: #333;
}
.modal-close-btn--secondary:hover {
    background: #ddd;
}
.share-modal-preview {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 16px;
    word-break: break-word;
}
.share-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}
.share-action-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #faf9f7;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: #222;
    box-sizing: border-box;
}
.share-action-btn:hover {
    border-color: orange;
    background: #fff7ed;
}
.share-url-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 8px;
    box-sizing: border-box;
}
.share-copy-feedback {
    color: #15803d;
    font-size: 0.9rem;
    margin: 0 0 12px;
}
.report-modal-intro {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 16px;
}
.report-reasons {
    border: none;
    margin: 0 0 16px;
    padding: 0;
}
.report-reason-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.92rem;
    cursor: pointer;
}
.report-reason-label input {
    margin-top: 3px;
}
.report-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.report-form-actions .modal-close-btn {
    flex: 1;
    min-width: 120px;
}
.report-listing-link-wrap {
    text-align: center;
    margin: 8px 0 0;
}
.report-listing-link {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 8px;
}
.report-listing-link:hover {
    color: #b91c1c;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
#report-modal .form-group {
    margin-bottom: 14px;
}
#report-modal .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}
#report-modal textarea,
#report-modal input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    box-sizing: border-box;
}
.like-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.like-icon-svg {
    width: 25px;
    height: 25px;
    margin-right: 0;
    display: block;
}
.like-heart-path {
    fill: none;
    stroke: #333;
    stroke-width: 1.6;
    stroke-linejoin: round;
    transition: fill 0.2s ease, stroke 0.2s ease;
}
.like-button.liked .like-heart-path {
    fill: orange;
    stroke: orange;
}
.rent-price-div {
    margin-top: 0;

}
.favoris-div{
    display: flex;
    align-items: center;
    margin-right: 10%;
}
.house-cart{
width: 100%;
height: 300%;
border-radius: 8px;
background-color: white;
overflow: hidden;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
aspect-ratio: 1/1.6;
}
.house-cart-image{
    width: 100%;
}

.property-type-div{
    height: auto;
    margin-left: 5px;
}
.icons-div{
    margin-top: 5px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 25px;
}
.sofa-icon-div,.bed-icon-div,.shower-icon-div{
    display: flex;
    justify-content: center;
    align-items: center;
}
.sofa-icon,.bed-icon{
    width: 25px;
    height: 25px;

}
.place-paragraph-div{

    margin-top: 10px;

}

.place-paragraph{
    margin-left: 10px;
}
.see-more-button-div{
    margin-top: 20px;
    display: flex;
    justify-content: center;
}
.see-more-button{
    background-color: orange;
    color: white;
    width: 90px;
    height: 2dvi;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}
.rent-price-div{
    
    font-size: 20px;
    font-weight: bold;
}
.rent-price-paragraph{
    margin-left: 10px;
}




.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two equal columns */
    gap: 20px; /* Space between items */
    padding: 20px;
    max-width: 600px;
    margin: auto;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px; /* Smooth corners */
}

.grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background-color: #FAEBD7;
    border: 1px solid #ccc;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.grid-item:hover {
    background-color: #d1d1d1; /* Slight highlight on hover */
}

.icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}


.specifique-property-address,
.specifique-property-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0.65rem 0 0;
    padding: 8px 12px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.specifique-property-address img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    flex-shrink: 0;
}

.specifique-property-address p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #333;
    text-align: center;
}

.specifique-property-title {
    margin-top: 0.5rem;
}

.specifique-property-title p {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #333;
    text-align: center;
}

@media (min-width: 901px) {
    .specifique-property-address,
    .specifique-property-title {
        padding: 7px 12px;
        margin-top: 0.6rem;
    }

    .specifique-property-address img {
        width: 18px;
        height: 18px;
        margin-right: 6px;
    }

    .specifique-property-address p {
        font-size: 13px;
    }

    .specifique-property-title p {
        font-size: 14px;
    }
}
.house-info-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px 12px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 100%;
    margin: 1rem auto 1.25rem;
    box-sizing: border-box;
    align-items: stretch;
}

/* Lone chip on the last row (odd total) stretches across the row */
.house-info-details > .info-box:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.house-info-details > .info-box:only-child {
    grid-column: 1 / -1;
}

.info-box {
    display: flex;
    align-items: center;
    background-color: #FAEBD7;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: clamp(10px, 2.65vw, 13px);
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid #ccc;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    container-type: inline-size;
}

.info-box img {
    width: clamp(14px, 3.8vw, 18px);
    height: clamp(14px, 3.8vw, 18px);
    margin-right: clamp(4px, 1.4vw, 6px);
    flex-shrink: 0;
}

/* Shrink chip content in narrow grid cells — keeps pill shape, no line breaks */
@container (max-width: 13rem) {
    .info-box {
        font-size: 11px;
        padding: 6px 8px;
    }

    .info-box img {
        width: 15px;
        height: 15px;
        margin-right: 4px;
    }
}

@container (max-width: 10.5rem) {
    .info-box {
        font-size: 10px;
        padding: 5px 7px;
    }

    .info-box img {
        width: 13px;
        height: 13px;
        margin-right: 3px;
    }
}

@container (max-width: 8.75rem) {
    .info-box {
        font-size: 9px;
        padding: 4px 6px;
        letter-spacing: -0.01em;
    }

    .info-box img {
        width: 12px;
        height: 12px;
        margin-right: 3px;
    }
}

@media (min-width: 640px) {
    .house-info-details {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .house-info-details > .info-box:last-child:nth-child(odd) {
        grid-column: auto;
    }

    /* Last row has a single chip (e.g. 4, 7, 10 items) */
    .house-info-details > .info-box:last-child:nth-child(3n + 1):not(:only-child) {
        grid-column: 1 / -1;
    }
}

.house-name-and-options-div {
    display: flex;
    justify-content: space-between; /* Ensures left and right alignment */
    align-items: center;
    
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: auto;
}

.name-div {
    font-size: 20px;
    font-weight: bold;
}

.options-div {
    display: flex;
    gap: 15px; /* Adds spacing between "Favoris" and "Contacter" */
}

.favoris-div {
    font-size: 16px;
    cursor: pointer;
    color: #ff6347; /* Stylish red shade */
    font-weight: bold;
}

.contact-scroll-btn {
    background-color: orange;
    color: white;
    font-size: 16px;
    margin-left: 0;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.contact-scroll-btn:hover {
    background-color: #ff9800;
}

@media (min-width: 501px) {
    .contacter-div button,
    .contact-scroll-btn {
        background-color: orange;
        color: white;
        font-size: 16px;
        margin-left: 0;
        padding: 10px 15px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }


    .contacter-div button:hover,
    .contact-scroll-btn:hover {
        background-color: #ff9800; /* Slightly lighter orange on hover */
    }
}

/* Contact Form Responsive & Appealing Styles */
/* Modern, centered contact form styles */
/* Contact Form Responsive & Appealing Styles */
.contact-form-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.10);
    max-width: 700px;
    width: 100%;
    margin: 32px auto 32px auto;
    padding: 0;
    border: none;
    overflow: hidden;
}
/* Contact Form Modern Centered Styles */
/* Contact Form Modern Centered Styles */
.contact-form-header {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 18px 0 0 18px;
    padding: 32px 0 32px 0;
    box-shadow: none;
}
.contact-form-header img {
    width: 120px;
    height: 120px;
    border-radius: 6px;
    object-fit: cover;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.10);
}
.agence-contact-name{
    font-size: 1.3rem;
    font-weight: bold;
    color: orange;
    margin-top: 6px;
    text-align: center;
}
.agence-contact-links{
    font-size: 1rem;
    margin-top: 6px;
    text-align: center;
}
.agence-contact-links a {
    color: orange;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.agence-contact-links a:hover {
    color: #ff9800;
    text-decoration: underline;
}
.contact-form-content {
    flex: 2 1 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 32px 24px;
    min-width: 220px;
}
.phone-btn {
    display: block;
    width: 100%;
    max-width: 320px;
    padding: 10px;
    margin: 10px 0 16px 0;
    background-color: orange;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.2s;
}
.phone-btn:hover {
    background-color: #ff9800;
}
#phone-number {
    display: none;
    text-align: center;
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}
.contact-form-content form {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.form-group {
    width: 100%;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.form-group label {
    margin-bottom: 4px;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    align-self: flex-start;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #f3d1a2;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    transition: border 0.2s;
    resize: none;
}
.form-group input:focus, .form-group textarea:focus {
    border: 1.5px solid orange;
    outline: none;
}
.form-group--phone {
    align-items: stretch;
}
.phone-input-hint {
    align-self: flex-start;
    margin-top: 4px;
    font-size: 0.78rem;
    color: #888;
    line-height: 1.3;
}
.phone-input-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid #f3d1a2;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border 0.2s;
    min-height: 44px;
}
.phone-input-wrapper:focus-within {
    border: 1.5px solid orange;
}
.phone-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 58px;
    padding: 0 12px;
    background: #f7ead8;
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    border-right: 1px solid #f3d1a2;
    user-select: none;
}
.phone-input-wrapper input {
    border: none !important;
    border-radius: 0 !important;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding: 10px 12px !important;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}
.phone-input-wrapper input:focus {
    border: none !important;
    outline: none;
}
.phone-input-wrapper input::placeholder {
    color: #b8b8b8;
    letter-spacing: 0.06em;
}
.owner-preview-banner {
    width: 100%;
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff8ee;
    border: 1px solid #ffd9a8;
    color: #5c4a32;
    font-size: 0.92rem;
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.owner-preview-banner strong {
    color: #c45f00;
    font-size: 0.95rem;
}
.contact-form-preview-hint {
    width: 100%;
    max-width: 320px;
    margin: 0 0 12px;
    font-size: 0.85rem;
    color: #777;
    text-align: center;
    line-height: 1.4;
}
.submit-btn {
    width: 100%;
    max-width: 320px;
    padding: 12px;
    background-color: orange;
    color: white;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.10);
}
.submit-btn:hover {
    background-color: #ff9800;
}
@media (max-width: 900px) {
    .contact-form-container {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 0 0 18px;
        box-sizing: border-box;
    }
    .info-box{
        font-size: clamp(9px, 2.5vw, 12px);
        padding: 5px;
        border-radius: 15px;
    }
    .house-info-details{
        gap: 20px;
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .loyer{
        font-size: 15px;
    }
    .grid-container{
        width: 100%;
        max-width: 100%;
        justify-content: center;
        align-items: center;
    }
    .grid-item{
        padding: 10px;
        font-size: 12px;
    }
    .contact-form-header {
        border-radius: 18px 18px 0 0;
        padding: 18px 0 0 0;
    }
    .contact-form-header img {
        width: 70px;
        height: 70px;
    }
    .contact-form-content {
        padding: 0 12px;
    }
    .contact-form-content form {
        width: 100%;
        max-width: 100%;
        gap: 10px;
    }
}
    /* ...existing code... */

/* Responsive adjustments */

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}
.image-modal.active {
display: flex;
}
.image-modal img {
max-width: 80vw;
max-height: 80vh;
border-radius: 10px;
box-shadow: 0 0 20px #0008;
}
.image-modal-close {
position: absolute;
top: 24px;
right: 40px;
font-size: 2.5em;
color: orange;
cursor: pointer;
font-weight: bold;
z-index: 2;
}
.image-modal-arrow {
background: orange;
color: white;
border: none;
border-radius: 50%;
width: 48px;
height: 48px;
font-size: 2em;
cursor: pointer;
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 2;
opacity: 0.8;
}

@media (max-width:700px){
.contact-form-container{
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}
.contact-form-content{
    width: 100%;
}
.form-group {
    width: 100%;
}
.image-modal-arrow {
    display: none !important;
}
}
#image-modal-prev { left: 40px; }
#image-modal-next { right: 40px; }

/* ...existing code... */
.links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    
}

/* Chosen image modal */
.chosen-image-modal-img-animate {
        transition: transform 0.32s cubic-bezier(0.4,0.2,0.2,1), opacity 0.32s cubic-bezier(0.4,0.2,0.2,1);
        will-change: transform, opacity;
    }

            .chosen-image-modal {
                display: none;
                position: fixed;
                z-index: 10001;
                left: 0; top: 0; right: 0; bottom: 0;
                width: 100vw; height: 100vh;
                background: rgba(0,0,0,0.7);
                justify-content: center;
                align-items: center;
                transition: opacity 0.2s;
            }
            .chosen-image-modal.active {
                display: flex;
                touch-action: pan-y pinch-zoom;
            }
            .chosen-image-modal img {
                max-width: 90vw;
                max-height: 90vh;
                border-radius: 10px;
                box-shadow: 0 0 20px #0008;
                background: #fff;
                display: block;
                margin: auto;
                cursor: pointer;
                touch-action: manipulation;
                user-select: none;
                -webkit-user-drag: none;
            }
            .chosen-image-modal.is-native-view {
                background: #000;
                padding: 0;
            }
            .chosen-image-modal.is-native-view img {
                max-width: 100vw;
                max-width: 100dvw;
                max-height: 100vh;
                max-height: 100dvh;
                width: auto;
                height: auto;
                border-radius: 0;
                box-shadow: none;
                background: transparent;
                object-fit: contain;
            }
            .chosen-image-modal-close {
                position: absolute;
                top: 24px;
                right: 40px;
                font-size: 2.5em;
                color: orange;
                cursor: pointer;
                font-weight: bold;
                z-index: 2;
                background: none;
                border: none;
                line-height: 1;
                transition: color 0.2s;
            }
            .chosen-image-modal-close:hover {
                color: #ff9800;
            }
            .chosen-image-modal-arrow {
                background: orange;
                color: #fff;
                border: none;
                border-radius: 50%;
                width: 44px;
                height: 44px;
                font-size: 1.5rem;
                line-height: 1;
                cursor: pointer;
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                z-index: 3;
                opacity: 0.88;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 0;
            }
            .chosen-image-modal-arrow:hover {
                opacity: 1;
            }
            .chosen-image-modal-arrow--prev {
                left: 16px;
            }
            .chosen-image-modal-arrow--next {
                right: 16px;
            }
            .chosen-image-modal-arrow[hidden] {
                display: none;
            }
            @media (max-width: 1024px) {
                .chosen-image-modal img {
                    max-width: 98vw;
                    max-height: 70vh;
                }
                .chosen-image-modal.is-native-view img {
                    max-width: 100vw;
                    max-width: 100dvw;
                    max-height: 100vh;
                    max-height: 100dvh;
                }
                .chosen-image-modal-close {
                    top: 12px;
                    right: 18px;
                    font-size: 2em;
                }
                .chosen-image-modal-arrow {
                    display: none !important;
                }
            }
