/*
 * Website component fixes, loaded on every page after responsive.css.
 * The same sections (section titles, What we do, metrics, CTA banners, blog cards,
 * process timeline, FAQ...) appear on several pages, so they are fixed once here.
 */

/* ---------- Section headings ---------- */
.sec-title h2 {
    margin-bottom: 12px;
}

/* ---------- What we do: full titles, aligned buttons ---------- */
.section-what-we-do .service-block-seven .inner-box {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.section-what-we-do .service-block-seven .icon-box {
    align-self: flex-start; /* keep its original 90px width inside the flex column */
}
.section-what-we-do .service-block-seven .content-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.section-what-we-do .service-block-seven .title,
.section-what-we-do .service-block-seven .title a {
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    height: auto !important;
    max-height: none !important;
}
.section-what-we-do .service-block-seven .title {
    margin-bottom: 12px;
}
@media (min-width: 992px) {
    .section-what-we-do .service-block-seven .title {
        font-size: 21px !important;
        line-height: 1.3 !important;
    }
}
.section-what-we-do .service-block-seven .button {
    margin-top: auto;
}

/* ---------- Unlock / short-term panels ---------- */
.familiar-prompt {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    line-height: 1.3 !important;
}
.pain-point-card .pain-title {
    margin-bottom: 8px;
}
.cta-banner .cta-text {
    line-height: 1.35 !important;
}

/* ---------- Metrics ---------- */
.metric-card .metric-number {
    margin-bottom: 8px;
    line-height: 1.3;
}

/* ---------- Invest in Dubai ---------- */
.invest-section .sec-title h3 {
    margin-top: 6px;
}
.highlight-item {
    align-items: center;
    gap: 16px;
}
.highlight-item .highlight-icon {
    flex: 0 0 44px;
    width: 44px;
    margin: 0 !important;
    text-align: center;
}
.highlight-item .highlight-icon i {
    font-size: 34px;
    line-height: 1;
    width: auto;
    height: auto;
}
.highlight-item .highlight-text {
    margin: 0 !important;
}
.invest-section .card-btn {
    white-space: normal;
    height: auto;
    line-height: 1.4;
    text-align: center;
}

/* ---------- Blog cards: real 2/3-line clamps, button at the bottom ---------- */
.blog-section .blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-section .blog-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.blog-section .blog-card .card-title,
.blog-section .blog-card .card-excerpt {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto !important;
    width: 100%;
}
.blog-section .blog-card .card-title {
    -webkit-line-clamp: 2;
    line-height: 1.4 !important;
    max-height: 2.8em; /* 2 lines: Chrome otherwise leaks the line after the ellipsis */
}
.blog-section .blog-card .card-excerpt {
    -webkit-line-clamp: 3;
    line-height: 1.6 !important;
    max-height: 4.8em; /* 3 lines */
    margin-bottom: 20px !important;
}
.blog-section .blog-card .card-btn {
    margin-top: auto;
}

/* ---------- Tablet & phones ---------- */
@media (max-width: 767.98px) {
    /* responsive.css pads every h2/p by 10px, which shifts text off the card/column edge */
    .destination-card .card-price,
    .section-what-we-do .service-block-seven p,
    .invest-section .sec-title h2,
    .invest-section .sec-title h3,
    .invest-section .sec-title p {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .section-what-we-do .service-block-seven p {
        margin-bottom: 20px !important;
    }

    .invest-section .sec-title h3,
    .invest-section .sec-title h3 .small {
        font-size: 18px !important;
        line-height: 1.35 !important;
    }

    .metric-card .metric-icon,
    .metric-card .metric-icon i {
        font-size: 30px !important;
        line-height: 1.3 !important;
        height: auto !important;
        width: auto !important;
    }

    .invest-section .card-btn {
        padding: 12px 20px !important;
        display: block;
    }

    .cta-banner .cta-text {
        font-size: 18px !important;
    }

    .floating-section span {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    .management-process-section .cta-banner {
        margin-top: 100px !important;
    }
    .management-process-section .slick-arrow {
        width: 48px !important;
        height: 48px !important;
    }
}

@media (max-width: 400px) {
    .sec-title h2 {
        font-size: 23px !important;
    }
    .familiar-prompt {
        font-size: 19px !important;
    }
}

/* =========================================================
   Page banner (property-management, about, ...)
   ========================================================= */
.page-title h1.title {
    margin-bottom: 16px !important;
}

/* ---------- Support teams: equal-height cards ---------- */
.support-team-row .swiper-wrapper {
    align-items: stretch;
}
.support-team-row .swiper-slide {
    height: auto;
}

/* ---------- Our services cards ---------- */
.our-services-section .process-card .step-title {
    line-height: 1.4 !important;
    margin-bottom: 8px;
}

/* ---------- Our proven process timeline ---------- */
/* Cards must sit above the centre line (it ran over their text on phones) */
.our-proven-process-section .step-content {
    position: relative;
    z-index: 2;
}
@media (min-width: 769px) {
    /* Alternating cards can overlap vertically: halves the 2000px-tall timeline */
    /* every step except the first (the container's first child is the line) */
    .our-proven-process-section .timeline-step ~ .timeline-step {
        margin-top: -110px;
    }
}

/* ---------- FAQ ---------- */
.faq-section .acc-btn {
    line-height: 1.4 !important;
    padding-right: 36px !important;
}

/* =========================================================
   Phones
   ========================================================= */
@media (max-width: 767.98px) {
    /* Banner buttons: stacked, same size, nothing clipped */
    .page-title .btn-box {
        flex-direction: column;
        align-items: stretch;
        gap: 12px !important;
    }
    .page-title .btn-box .theme-btn {
        margin: 0 !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
        white-space: normal;
        text-align: center;
        justify-content: center;
    }
    .page-title .btn-box .theme-btn .btn-title {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    .why-choose-section .pain-point-card {
        padding: 22px !important;
    }

    .faq-section .sec-title h2,
    .faq-section .acc-content p,
    .faq-section .acc-content .content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .faq-section .sec-title .sub-title {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
    .faq-section .acc-btn {
        font-size: 16px !important;
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }
}


/* =========================================================
   Invest in Dubai
   ========================================================= */
/* Check-list items: wrapped lines stay aligned with the text, not under the icon */
.pain-ul li {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.pain-ul li > i {
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    /* List items were ~17px, larger than every paragraph around them */
    .pain-ul li,
    .monetization-strategies-list li {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
    .pain-ul li {
        margin-bottom: 6px;
    }
    .monetization-strategies-card {
        padding: 22px !important;
    }

    /* Final CTA: stacked, single-line buttons instead of two 3-line ovals */
    .start-your-section .lead {
        margin-bottom: 24px !important;
    }
    .start-your-section .btn-box {
        flex-direction: column;
        align-items: stretch;
        gap: 12px !important;
    }
    .start-your-section .btn-box .card-btn {
        width: 100%;
        justify-content: center;
        margin: 0 !important;
        padding: 12px 20px !important;
        line-height: 1.4 !important;
        text-align: center;
        white-space: normal;
    }
}

/* =========================================================
   About us
   ========================================================= */
/* Founder check-list: tick on the first line of its text */
.founder-stats .stat-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.founder-stats .stat-item .stat-icon {
    flex-shrink: 0;
}
.founder-stats .stat-item p {
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 767.98px) {
    .meet-founders-section .sec-title h2,
    .meet-founders-section .sec-title p {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .founder-stats .stat-item + .stat-item {
        margin-top: 12px;
    }
    .meet-founders-section .quote-box {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
}

/* =========================================================
   Article details
   ========================================================= */
@media (max-width: 767.98px) {
    /* Title and body lined up with the category/date row above them */
    .blog-details-body .blog-details-heading,
    .blog-details-body .blog-details-content p,
    .blog-details-body .blog-details-content h2,
    .blog-details-body .blog-details-content h3,
    .blog-details-body .blog-details-content li {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .blog-details-body .blog-details-heading {
        font-size: 22px !important;
    }
    .blog-details-body .blog-details-content p {
        margin-bottom: 16px !important;
    }
    /* Sidebar category rows: compact list instead of 60px-tall rows */
    .blog-sidebar .categories-list li {
        margin-bottom: 4px;
    }
    .blog-sidebar .categories-list li a {
        padding: 8px 12px;
    }
}

/* =========================================================
   Contact us
   ========================================================= */
/* Icons kept at 50px (the map pin shrank), so every text block starts at the same x */
.contact-info .contact-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
}
.contact-info .contact-item p {
    padding: 0 !important;
}

@media (max-width: 991.98px) {
    /* White band above the dark panel once the columns stack */
    .contact-container .contact-info {
        margin-top: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .contact-info {
        padding: 28px 22px !important;
    }
    .contact-info .contact-item a {
        font-size: 14px;
        overflow-wrap: anywhere;
    }
    .contact-form .form-header h2,
    .contact-form .form-header p {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* =========================================================
   Rent property details
   ========================================================= */
@media (max-width: 767.98px) {
    /* Booking form right under the photo/price instead of after every info block */
    .property-details-section .contact-sidebar-col.booking-first {
        order: -1;
        margin-bottom: 24px;
    }
}

/* =========================================================
   Checkout
   ========================================================= */
/* Stepper line runs between the two step centres (it overflowed the right edge on phones) */
.checkout-stepper::before {
    left: 25% !important;
    right: 25% !important;
    width: auto !important;
}
.checkout-stepper-progress {
    left: 25% !important;
    max-width: 50%;
}
.checkout-stepper .step-label {
    font-size: 12px !important;
}
.checkout-login-link {
    color: var(--theme-color1, #c6a35d) !important;
    font-weight: 600;
}

/* =========================================================
   CMS pages (terms, privacy, cookies, KYC/AML)
   ========================================================= */
@media (max-width: 767.98px) {
    /* Paragraphs lined up with the headings; lists the same size as the text */
    .cms-section p {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 12px !important;
    }
    .cms-section li {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
    .cms-section ul,
    .cms-section ol {
        padding-left: 20px;
        margin-bottom: 12px;
    }
}


/* =========================================================
   Mobile menu
   ========================================================= */
/* Floating Login/Register sat on top of the open menu */
body.mobile-menu-visible .fixed-auth-buttons {
    display: none !important;
}
.mobile-menu .mobile-menu-prefs {
    padding: 20px 25px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu .mobile-menu-account {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.mobile-menu .mobile-menu-account a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.3;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.mobile-menu .mobile-menu-account a:first-child {
    background: var(--theme-color1, #c6a35d);
    border-color: var(--theme-color1, #c6a35d);
}
.mobile-menu .mobile-menu-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.mobile-menu .mobile-menu-options a {
    min-width: 44px;
    padding: 6px 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.mobile-menu .mobile-menu-options a.active {
    color: var(--theme-color-dark, #19302a);
    background: var(--theme-color1, #c6a35d);
    border-color: var(--theme-color1, #c6a35d);
}

/* =========================================================
   Selects enhanced by nice-select (any page)
   ========================================================= */
/* nice-select copies .form-select from the <select>, adding Bootstrap's arrow on top of its own */
.nice-select.form-select {
    background-image: none !important;
}

/* =========================================================
   Guest online check-in
   ========================================================= */
.guest-checkin-section .nice-select {
    width: 100%;
    float: none;
    height: auto;
    line-height: 1.5;
    padding-top: 12px;
    padding-bottom: 12px;
}
.guest-checkin-section .nice-select .list {
    width: 100%;
}
@media (max-width: 767.98px) {
    .guest-checkin-section {
        padding: 40px 0 !important;
    }
}


/* =========================================================
   Property pages: floating share / call / WhatsApp
   ========================================================= */
@media (max-width: 768px) {
    /* The centred row covered the "Book now" button; call & WhatsApp are already in the
       booking box, so phones keep only a small share button on the left */
    body .floating-social-buttons {
        right: auto !important;
        left: 12px !important;
        bottom: 20px !important;
        transform: none !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    body .floating-social-buttons .call-btn,
    body .floating-social-buttons .whatsapp-btn {
        display: none !important;
    }
    body .floating-social-buttons .social-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 18px !important;
    }
}
/* Call / WhatsApp buttons in the booking box: icon and label on one line */
.contact-sidebar .btn,
.contact-sidebar-col .btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* =========================================================
   Property gallery (rent + investment details)
   ========================================================= */
@media (max-width: 767.98px) {
    /* The two side photos stacked at full width (~390px each): show them as a 2-up strip */
    .gallery-section .col-md-4 > .row {
        flex-wrap: nowrap;
        gap: 10px;
        margin-top: 10px !important;
    }
    .gallery-section .col-md-4 > .row > .col-12 {
        flex: 1 1 0;
        width: auto;
        max-width: 50%;
    }
    .gallery-section .col-md-4 .img-box {
        height: 140px !important;
        margin: 0 !important;
    }
    .gallery-section .col-md-4 .img-box img {
        width: 100%;
        height: 100% !important;
        object-fit: cover;
    }
}
