/**
 * Etihad front-end shared styles (no inline CSS in Blade views).
 */

/* Site brand gold (replaces theme orange) — except homepage Explore block below */
:root {
    --main-color: #a9823d;
}

/* Homepage “Explore Projects & Properties” (.api-wrap) — keep original orange */
.api-wrap {
    --main-color: #EE7838;
}
.api-wrap .api-wrap-bg:before {
    background: linear-gradient(rgba(249, 219, 146, 1) 0%, rgba(238, 120, 56, 1) 71%);
}
.api-wrap .api-text-links a i {
    background: #EE7838;
}
.api-wrap .api-text-links a:hover i {
    color: #fff;
    background: #EE7838;
}

/* --- Utilities --- */
.etihad-is-hidden { display: none !important; }
.etihad-is-visible { display: block !important; }
.etihad-is-flex { display: flex !important; }
.etihad-text-center { text-align: center; }
.etihad-empty-state { padding: 48px 24px; text-align: center; }
.etihad-empty-state p { margin: 0; color: #64748b; }
.etihad-scroll-anchor { scroll-margin-top: 100px; }
.etihad-relative { position: relative; }
.etihad-mt-24 { margin-top: 24px; }
.etihad-mt-24.commentssubmit { display: inline-block; }
.etihad-mt-40 { margin-top: 40px; }
.etihad-mb-0 { margin-bottom: 0; }
.etihad-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.etihad-cta-row .commentssubmit { margin: 0; }
.etihad-cta-dark { background: #1e1e1e !important; }
.etihad-inline-flex-gap { display: inline-flex; gap: 8px; }

/* --- Decorative SVG corners (replace inline style on hero/footer) --- */
.svg-corner.hero-corner-br { bottom: 0; right: -39px; transform: rotate(90deg); }
.svg-corner.hero-corner-bl { bottom: 0; left: -39px; }
.svg-corner.hero-corner-tl { top: 0; left: -40px; transform: rotate(-90deg); }
.svg-corner.hero-corner-tr { top: 0; right: -40px; transform: rotate(-180deg); }

/* --- SEO: one H1 per page — match theme H2 hero styling --- */
.hero-section-title h1,
.hero-section_sin .hero-section-title h1 {
    font-size: 4.4em;
    text-align: left;
    font-weight: 600;
    color: #fff;
    position: relative;
    margin: 0;
}
.hero-section_sin h1,
.hero-section_sin .hero-section-title h1 {
    font-size: 3.4em;
    text-align: center;
    position: relative;
}
.hsc_flat .hero-section-title h1 {
    color: #000;
    font-size: 3em;
}
.home-hero-section .hero-section-title h1 {
    text-align: left;
    font-size: 3.1em;
    line-height: 1.22;
    font-weight: 600;
    color: #fff;
    margin: 0 0 14px;
    max-width: 640px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.hero-section_sin .hero-section-title h1::before,
.hero-section_sin .hero-section-title h1::after {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    height: 1px;
}
.hero-section_sin .hero-section-title h1::before {
    width: 120px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}
.hero-section_sin .hero-section-title h1::after {
    width: 30px;
    background: var(--main-color);
    z-index: 4;
}

/* --- Listing page dynamic UI --- */
.wish-list-items .wish-list-item::before { display: none !important; }
.wish-list-wrap .wishlist-icon.fa-solid { font-weight: 900 !important; }
.wish-list-wrap .wishlist-icon.fa-regular { font-weight: 400 !important; }
.etihad-wishlist-row {
    position: relative;
    padding: 12px 16px;
    border-bottom: 1px solid #eef2f7;
}
.etihad-wishlist-thumb {
    display: block;
    width: 54px;
    height: 46px;
    flex: 0 0 54px;
    overflow: hidden;
    border-radius: 8px;
    background: #e2e8f0;
}
.etihad-wishlist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.etihad-wishlist-body { min-width: 0; flex: 1 1 auto; }
.etihad-wishlist-title {
    display: block;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.etihad-wishlist-price {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.geodir_save-btn.wishlist-btn.etihad-wishlist-remove {
    position: static;
    top: auto;
    right: auto;
}

/* --- Listing page dynamic UI --- */
.listing-address-wrap { position: relative; }
.listing-area-wrap { position: relative; min-height: 320px; }
#listing-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    background: rgba(255, 255, 255, 0.85);
}
#listing-empty {
    padding: 2rem;
    text-align: center;
    color: #64748b;
}
.list-searh-input-wrap .hidden-listing-filter.etihad-is-hidden { display: none; width: 100%; }
.cs-intputwrap.listing-search-submit-wrap { margin-bottom: 0; }

/* --- Portal home (index3 partial) --- */
.portal-home-hero-cta { margin-top: 40px; }
.portal-home-empty-note { padding: 24px 0; }
.portal-home-empty-note p { margin: 0; color: #64748b; font-size: 14px; }
.portal-home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.portal-home-view-all { margin-top: 24px; }
.portal-home-listing-cta { margin-top: 20px; }
.portal-home-inner-pad { padding-top: 14px; }

/* --- Listing / property cards: 2-line title, no description --- */
.geodir-category-content > h3.listing-card-title,
.geodir-category-content > h3.listing-card-title > a {
    line-height: 1.4;
}
.geodir-category-content > h3.listing-card-title {
    margin: 0 0 12px;
    padding-right: 18px;
    min-height: calc(1.4em * 2);
    max-height: calc(1.4em * 2);
    overflow: hidden;
}
.geodir-category-content > h3.listing-card-title > a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* Tighter gaps: price ↔ icons ↔ footer on listing cards */
.geodir-category-listing .geodir-category-content {
    padding-bottom: 10px;
}
.geodir-category-listing .geodir-category-content_price {
    margin-bottom: 6px;
}
.geodir-category-listing .geodir-category-content-details {
    margin-top: 4px;
    margin-bottom: 0;
}
.geodir-category-listing .geodir-category-footer {
    padding-top: 10px;
    padding-bottom: 10px;
}
.fw-listing-item .geodir-category-content_price {
    padding-bottom: 8px;
}

/* Header contact icons: gold outline + hover icon */
.main-header .show-reg-form {
    border-color: #a9823d;
}
.main-header .show-reg-form:hover i {
    color: #a9823d;
}
.main-header .nav-holder nav li a:hover,
.main-header .nav-holder nav li a:hover i,
.main-header .nav-holder nav li a.act-link {
    color: #a9823d;
}

/* Wishlist / heart save — removed site-wide */
.wish_btn,
.swl_btn,
.wishlist-btn,
.wish-list-wrap,
.wishlist-wrap-overlay,
#wishlist-toast,
.project-new-hero-save,
.geodir_save-btn:has(.fa-heart),
.geodir_save-btn:has(.wishlist-icon),
.like-btn.wishlist-btn,
.project-rd-top-btn:has(.fa-heart) {
    display: none !important;
}

/* Fixed theme footer reveal: .content stacks above .main-footer inside .wrapper */
.wrapper {
    position: relative;
    z-index: 3;
}
.wrapper > .content {
    position: relative;
    z-index: 3;
    background-color: #fff;
    overflow: visible;
}
.wrapper > .height-emulator {
    position: relative;
    z-index: 1;
}
.wrapper > .main-footer {
    z-index: 2;
}

/* Back-to-top tab + curve must sit above the black footer transition */
.to_top-btn-wrap {
    z-index: 15;
}
.to_top-btn-wrap .svg-corner {
    z-index: 16;
    pointer-events: none;
}

@media only screen and (max-width: 1068px) {
    /* Theme sets overflow:hidden on .wrapper — keep the white transition tab visible */
    .wrapper {
        overflow: visible;
    }
}

/* Property listing cards — meta row + WhatsApp footer */
.etihad-property-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.etihad-property-card .geodir-category-img {
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    position: relative;
}
.etihad-property-card .geodir-category-listing_media-list {
    right: 58px;
}
.listing-card-dealer-avatar {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 6;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: visible;
    border: 2px solid #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.24);
    background: #fff;
    text-decoration: none;
    cursor: default;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.listing-card-dealer-avatar {
    cursor: pointer;
}
a.listing-card-dealer-avatar:hover,
a.listing-card-dealer-avatar:focus-visible {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.36);
    outline: none;
    z-index: 8;
}
.listing-card-dealer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    transition: opacity 0.2s ease;
}
a.listing-card-dealer-avatar:hover img,
a.listing-card-dealer-avatar:focus-visible img {
    opacity: 0.9;
}
.listing-card-dealer-tooltip {
    position: absolute;
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    padding: 6px 10px;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 20;
}
a.listing-card-dealer-avatar:hover .listing-card-dealer-tooltip,
a.listing-card-dealer-avatar:focus-visible .listing-card-dealer-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
/* Compact type pills on property listing cards (portal, related properties) */
.etihad-property-card .geodir-category-img .list-single-opt_header_cat {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 5px;
    top: 14px;
    left: 14px;
}
.etihad-property-card .geodir-category-img .list-single-opt_header_cat li {
    margin: 0;
    padding: 0;
}
.etihad-property-card .geodir-category-img .cat-opt {
    float: none;
    margin-bottom: 11px;
    padding: 4px 10px;
    font-size: 10px;
    line-height: 1.3;
    border-radius: 14px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}
.etihad-property-card-body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}
.etihad-property-card-body .listing-card-title,
.etihad-property-card-body .listing-card-title a {
    line-height: 1.4;
}
.etihad-property-card-body .listing-card-title {
    margin: 0 0 12px;
    padding-right: 18px;
    min-height: calc(1.4em * 2);
    max-height: calc(1.4em * 2);
    overflow: hidden;
    position: relative;
}
.etihad-property-card-body .listing-card-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}
.etihad-property-card-body .listing-card-title {
    font-size: 1.18rem;
    font-weight: 700;
}
.etihad-property-card-body .listing-card-title a {
    font-size: inherit;
    font-weight: 700;
}
.listing-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 16px;
}
.listing-card-meta-row .listing-card-meta-price {
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
    font-size: 1.32rem;
    font-weight: 700;
    line-height: 1.3;
}
.listing-card-meta-row .listing-card-view-details {
    margin-left: auto;
    flex-shrink: 0;
    position: static;
    bottom: auto;
    right: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}
.portal-project-card-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: auto;
    padding: 12px 16px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #166534;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}
.portal-project-card-wa i {
    font-size: 1.2rem;
}
.portal-project-card-wa:hover {
    background: #d1fae5;
    color: #14532d;
}

/* Brand gold #a9823d — scroll progress, floating call, footer accents */
.progress-bar,
.progress-bar.color-bg {
    background: #a9823d !important;
}
.floating-contact-action.is-call {
    background: #a9823d !important;
}
.main-footer .footer-social-wrap a {
    background: #a9823d;
    color: #fff;
    transition: background-color 0.28s ease, color 0.28s ease, transform 0.28s ease;
}
.main-footer .footer-social-wrap a:hover {
    background: #fff;
    color: #a9823d;
    transform: translateY(-2px);
}
.main-footer .subscribe-button {
    background: #a9823d;
}
.main-footer .footer-widget-title:before {
    background: #a9823d;
}
.main-footer .footer-list li:before {
    color: #a9823d;
}
.main-footer .footer-widget-content-link i {
    color: #a9823d;
}
.main-footer .footer-bottom:after {
    background: #a9823d;
}
.main-footer .footer-home_link {
    color: #fff;
    transition: color 0.28s ease, transform 0.28s ease;
}
.main-footer .footer-home_link:hover {
    color: #a9823d;
    transform: translateY(-2px);
}
