/**
 * Modern Theme - Custom CSS
 * Global styles for Modern Theme customizations
 * This file is loaded globally in master.blade.php
 */

/* ===================================
   CONTACT MODAL - GLOBAL STYLES
   =================================== */

/* ===================================
   LUXORA GATE HEADER
   =================================== */

:root {
    --luxora-header-bg: rgba(255, 255, 255, 0.96);
    --luxora-header-line: rgba(178, 138, 69, 0.18);
    --luxora-header-glow: rgba(230, 204, 141, 0.12);
    --luxora-header-ink: #20180f;
    --luxora-header-muted: #7a6a54;
    --luxora-header-gold: #b28a45;
    --luxora-header-gold-soft: #e8d8ad;
    --bg-light: #f6f7f9;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
}

body.modern-theme,
body.modern-theme #wrapper,
body.modern-theme main,
body.modern-theme .main-container {
    background-color: #ffffff !important;
}

body.modern-theme .bg-light,
body.modern-theme .bg-soft,
body.modern-theme .pf-section.bg-soft {
    background-color: var(--bg-light) !important;
}

.modern-header {
    background:
        radial-gradient(circle at top left, var(--luxora-header-glow), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 247, 249, 0.96)) !important;
    border-bottom: 1px solid var(--luxora-header-line) !important;
    box-shadow: 0 14px 40px rgba(31, 41, 55, 0.08) !important;
}

.modern-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(178, 138, 69, 0.48) 50%, transparent 100%);
    pointer-events: none;
}

.modern-header .header-wrapper {
    min-height: 86px !important;
    padding: 0.35rem 0 !important;
    gap: 1.15rem !important;
    align-items: center !important;
}

.modern-header .header-logo.luxora-brand-column {
    display: flex;
    align-items: center;
    padding: 6px 0;
    flex-shrink: 0;
}

.modern-header .luxora-logo-link {
    display: flex;
    align-items: center;
    min-height: 72px;
    padding: 3px 11px 3px 0;
    margin-right: 0.45rem;
    position: relative;
}

.modern-header .luxora-logo-link::after {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    right: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, rgba(178, 138, 69, 0.24) 15%, rgba(178, 138, 69, 0.5) 50%, rgba(178, 138, 69, 0.24) 85%, transparent 100%);
    display: none;
}

.modern-header .header-logo .logo-img {
    width: auto;
    height: auto !important;
    max-height: 68px !important;
    max-width: 380px !important;
    object-fit: contain;
    display: block;
}

.modern-header.is-condensed .header-wrapper {
    min-height: 76px !important;
}

.modern-header.is-condensed .header-logo .logo-img {
    max-height: 58px !important;
    max-width: 350px !important;
}

.modern-header .header-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-header .nav-menu {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.modern-header .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.8rem 1.05rem;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--luxora-header-ink) !important;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.modern-header .nav-item:hover > .nav-link,
.modern-header .nav-link:hover,
.modern-header .nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(178, 138, 69, 0.18);
    box-shadow: 0 10px 18px rgba(41, 30, 14, 0.08);
    transform: translateY(-1px);
}

.modern-header .flag-menu .nav-link {
    width: 48px;
    padding-inline: 0;
}

.modern-header .dropdown-menu,
.modern-header .user-dropdown {
    border: 1px solid rgba(178, 138, 69, 0.16);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 247, 249, 0.98));
    box-shadow: 0 24px 52px rgba(41, 30, 14, 0.16);
}

.modern-header .dropdown-menu {
    padding: 0.75rem;
    margin-top: 0.75rem;
}

.modern-header .dropdown-menu li a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
    color: var(--luxora-header-ink);
}

.modern-header .dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.78);
    color: var(--luxora-header-gold);
}

.modern-header .header-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-left: auto;
}

.modern-header .country-selector .action-btn {
    min-width: 52px;
    padding-inline: 0.55rem;
    justify-content: center;
}

.modern-header .country-selector .action-btn:disabled {
    opacity: 1;
    cursor: default;
}

.modern-header .country-selector .flag-icon {
    height: 20px;
    width: auto;
    border-radius: 3px;
    display: block;
}

.modern-header .action-btn,
.modern-header .mobile-menu-toggle {
    min-width: 48px;
    min-height: 48px;
    border-radius: 18px;
    border: 1px solid rgba(178, 138, 69, 0.16);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 24px rgba(41, 30, 14, 0.08);
    color: var(--luxora-header-ink);
}

.modern-header .action-btn:hover,
.modern-header .mobile-menu-toggle:hover {
    background: #ffffff;
    border-color: rgba(178, 138, 69, 0.3);
    transform: translateY(-1px);
}

.modern-header .action-item--auth {
    display: flex;
    align-items: center;
}

.modern-header .action-item--auth .action-btn,
.modern-header .language-selector .action-btn {
    min-height: 46px;
}

.modern-header .action-btn--locale {
    padding: 0.55rem 0.95rem;
    gap: 0.45rem;
}

.modern-header .action-btn--locale svg {
    width: 18px;
    height: 18px;
}

.modern-header .action-btn--locale .current-lang {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.modern-header .action-btn--auth-link {
    padding: 0.55rem 1rem;
    gap: 0.5rem;
    font-weight: 600;
}

.modern-header .action-btn--auth-link svg {
    width: 18px;
    height: 18px;
}

.modern-header .action-btn--auth-primary {
    padding: 0.55rem 1.15rem;
    border-color: transparent;
    background: linear-gradient(135deg, #c7b071 0%, #b59a56 100%);
    box-shadow: 0 14px 28px rgba(181, 154, 86, 0.2);
    color: #fff;
    font-weight: 700;
}

.modern-header .action-btn--auth-primary:hover {
    background: linear-gradient(135deg, #cfba81 0%, #bb9f5c 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 16px 30px rgba(181, 154, 86, 0.24);
}

.modern-header .action-btn--auth-primary span,
.modern-header .action-btn--auth-link span {
    line-height: 1;
}

.modern-header .user-menu .user-btn {
    width: fit-content !important;
    min-width: 0 !important;
    max-width: min(34vw, 368px);
    padding: 0.3rem 0.62rem 0.3rem 0.46rem !important;
    gap: 0.5rem !important;
    justify-content: flex-start;
}

.modern-header .user-menu .user-btn > .d-lg-inline {
    max-width: min(18vw, 210px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modern-header .user-menu .user-btn > .impersonation-pill {
    margin-left: 0.08rem;
}

.modern-header .user-btn.is-impersonating {
    border-color: rgba(178, 138, 69, 0.3);
    box-shadow: 0 14px 28px rgba(178, 138, 69, 0.16);
}

.modern-header .user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(178, 138, 69, 0.18);
    flex-shrink: 0;
}

.modern-header .user-avatar-placeholder,
.modern-header .mobile-user-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c2518 0%, #b28a45 100%);
    color: #fefcf5;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.modern-header .user-avatar-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 0.76rem;
    border: 1px solid rgba(178, 138, 69, 0.24);
    flex-shrink: 0;
}

.modern-header .mobile-user-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.modern-header .impersonation-pill {
    padding: 0.34rem 0.62rem;
    border-radius: 999px;
    background: rgba(178, 138, 69, 0.12);
    color: var(--luxora-header-gold);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.modern-header .user-dropdown {
    min-width: 320px;
    padding: 0.85rem;
    margin-top: 0.85rem;
}

.modern-header .user-dropdown-brand {
    display: grid;
    gap: 0.55rem;
    padding: 0.45rem 0.45rem 0.9rem;
    margin-bottom: 0.3rem;
    border-bottom: 1px solid rgba(178, 138, 69, 0.12);
}

.modern-header .user-dropdown-brandwordmark {
    width: min(164px, 100%) !important;
    max-height: 40px !important;
    object-fit: contain;
}

.modern-header .user-dropdown-brandcopy {
    display: grid;
    gap: 0.1rem;
}

.modern-header .user-dropdown-brandcopy span {
    color: var(--luxora-header-muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.modern-header .user-menu-divider {
    height: 1px;
    margin: 0.45rem 0;
    background: linear-gradient(90deg, transparent 0%, rgba(178, 138, 69, 0.22) 50%, transparent 100%);
}

.modern-header .user-dropdown li a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 48px;
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
    color: var(--luxora-header-ink);
}

.modern-header .user-dropdown li a:hover {
    background: rgba(255, 255, 255, 0.82);
    color: var(--luxora-header-gold);
}

.modern-header .menu-highlight a,
.modern-header .mobile-menu-highlight a {
    background: rgba(178, 138, 69, 0.12);
    color: #8b5f18;
}

.modern-header .menu-logout a,
.modern-header .mobile-menu-logout a {
    color: #7d4533;
}

.modern-header .mobile-brand-panel {
    padding: 1.15rem 1.2rem 0.8rem;
    border-bottom: 1px solid rgba(178, 138, 69, 0.08);
}

.modern-header .mobile-brandmark {
    display: block;
    width: min(172px, 100%) !important;
    max-height: 46px;
    height: auto;
}

@media (min-width: 992px) {
    body.modern-theme .hero-search-main {
        padding-right: 0.85rem !important;
    }

    body.modern-theme .hero-search-main .search-submit-btn {
        margin-right: 0.5rem !important;
    }

    body.modern-theme .t-search .luxe-search-main {
        padding-right: 0.9rem !important;
    }

    body.modern-theme .t-search .luxe-btn-search {
        margin-right: 0.45rem !important;
    }

    /* Home hero (desktop): keep Find button away from right edge */
    body.modern-theme #homepage .pf-hero-search .pf-search-v2__actions {
        padding: 8px 10px 8px 6px !important;
    }

    body.modern-theme #homepage .pf-hero-search .pf-search-v2__btn {
        margin-right: 2px !important;
    }
}

@media (min-width: 1025px) {
    .modern-header .luxora-logo-link {
        min-height: 60px;
    }

    .modern-header .header-logo .logo-img {
        max-height: 52px !important;
        max-width: 300px !important;
    }

    .modern-header.is-condensed .header-logo .logo-img {
        max-height: 46px !important;
        max-width: 270px !important;
    }

    .modern-footer .footer-logo {
        margin-bottom: 1.25rem;
    }

    .modern-footer .footer-logo .logo-desktop {
        display: block !important;
        width: auto;
        height: auto !important;
        max-height: 52px !important;
        max-width: 260px !important;
        object-fit: contain;
    }

    .modern-footer .footer-logo .logo-mobile {
        display: none !important;
    }

    .modern-footer .footer-description {
        margin-top: 0.15rem;
    }
}

@media (max-width: 1024px) {
    .modern-header .header-wrapper {
        min-height: 72px !important;
        padding: 0.45rem 0 !important;
        align-items: center;
        gap: 0.7rem;
    }

    .modern-header .header-logo.luxora-brand-column {
        padding: 4px 0;
    }

    .modern-header .luxora-logo-link {
        min-height: 58px;
        padding: 6px 12px 6px 0;
        margin-right: 0;
    }

    .modern-header .luxora-logo-link::after {
        display: none;
    }

    .modern-header .header-logo .logo-desktop {
        display: none !important;
    }

    .modern-header .header-logo .logo-mobile {
        display: block !important;
        height: auto !important;
        max-height: 46px !important;
        max-width: 242px !important;
    }

    .modern-header .action-btn,
    .modern-header .mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
        border-radius: 16px;
    }

    .modern-header .action-btn--locale,
    .modern-header .action-btn--auth-link,
    .modern-header .action-btn--auth-primary {
        padding-inline: 0.9rem;
    }

    .modern-header .mobile-dropdown-menu {
        top: 78px !important;
        width: min(88vw, 380px);
        max-height: calc(100vh - 90px);
        border-radius: 28px 0 0 28px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 247, 249, 0.98));
        border-left: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: -24px 24px 48px rgba(15, 23, 42, 0.16);
    }

    .modern-header .mobile-dropdown-header {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 247, 249, 0.98));
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }

    .modern-header .mobile-dropdown-menu > li > a {
        min-height: 54px;
        padding: 0.95rem 1.2rem;
    }
}

/* Modal Container - Hidden by default */
.luxe-contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.luxe-contact-modal.active {
    display: flex !important;
    opacity: 1;
}

/* Modal Overlay */
.luxe-contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

/* Modal Content Box */
.luxe-contact-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    max-height: fit-content;
    overflow: visible;
    padding: 28px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Close Button */
.luxe-contact-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10001;
}

.luxe-contact-modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.luxe-contact-modal-close i {
    font-size: 24px;
    color: #333;
}

/* Modal Header */
.luxe-contact-modal-header {
    text-align: center;
    margin-bottom: 16px;
}

.luxe-contact-modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px 0;
}

.luxe-contact-modal-header p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Modal Body/Form */
.luxe-contact-modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Form Groups */
.luxe-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.luxe-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.luxe-form-group input,
.luxe-form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.luxe-form-group input:focus,
.luxe-form-group textarea:focus {
    outline: none;
    border-color: #4A90E2;
}

.luxe-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Input with Icon */
.luxe-input-group {
    position: relative;
    width: 100%;
}

.luxe-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    z-index: 1;
}

.luxe-input-with-icon {
    padding-left: 48px !important;
    width: 100%;
}

/* Phone Input (intlTelInput compatibility) */
.luxe-phone-input {
    width: 100% !important;
}

/* Terms Checkbox - Max 2 lines */
.luxe-form-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
}

.luxe-form-terms input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

.luxe-form-terms label {
    font-size: 13px;
    line-height: 1.4;
    color: #666;
    margin: 0;
}

/* ===================================
   ACCOUNT FILTER BAR
   =================================== */

.luxe-filter-bar {
    margin: 0 0 1.5rem 0;
    padding: 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15, 18, 30, 0.95), rgba(24, 30, 46, 0.95));
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 12px 32px rgba(10, 15, 25, 0.3);
}

.luxe-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 200px;
    gap: 0.75rem;
    align-items: center;
    margin: 0;
}

.luxe-filter-input {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f5f5f5;
    font-weight: 500;
}

.luxe-filter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.luxe-filter-input:focus {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.2);
}

.luxe-filter-actions {
    display: grid;
    gap: 0.5rem;
}

.luxe-filter-apply {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border: none;
    color: #161616;
    font-weight: 700;
    padding: 0.65rem 1rem;
}

.luxe-filter-apply:hover {
    color: #0f1118;
    transform: translateY(-1px);
}

.luxe-filter-clear {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #f5f5f5;
    padding: 0.6rem 1rem;
}

.luxe-filter-clear:hover {
    border-color: rgba(var(--primary-rgb), 0.6);
    color: var(--primary-light);
}

@media (max-width: 991px) {
    .luxe-filter-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   SEARCH + PROFILE CARD OVERRIDES
   =================================== */

/* ===================================
   GLOBAL BUTTON COLOR OVERRIDES
   =================================== */

.btn-primary,
.btn-success {
    background-color: var(--primary-color, #b7a56a) !important;
    border-color: var(--primary-color, #b7a56a) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-success:hover,
.btn-primary:focus,
.btn-success:focus {
    background-color: var(--primary-dark, #9d8c54) !important;
    border-color: var(--primary-dark, #9d8c54) !important;
    color: #ffffff !important;
}

.btn-outline-primary,
.btn-outline-success,
.btn-outline {
    color: var(--primary-color, #b7a56a) !important;
    border-color: var(--primary-color, #b7a56a) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline:hover,
.btn-outline-primary:focus,
.btn-outline-success:focus,
.btn-outline:focus {
    color: #ffffff !important;
    background-color: var(--primary-dark, #9d8c54) !important;
    border-color: var(--primary-dark, #9d8c54) !important;
}

.t-search .card-image-container,
.user-profile-page-modern .card-image-container {
    position: relative;
    z-index: 0;
    isolation: isolate;
}

.t-search .card-image-container .card-image-link,
.user-profile-page-modern .card-image-container .card-image-link {
    position: relative;
    z-index: 1;
}

.t-search .card-image-overlay,
.user-profile-page-modern .card-image-overlay {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.t-search .card-image-overlay .card-category,
.t-search .card-image-overlay .card-price,
.t-search .card-image-overlay .card-title,
.t-search .card-image-overlay .card-location,
.user-profile-page-modern .card-image-overlay .card-category,
.user-profile-page-modern .card-image-overlay .card-price,
.user-profile-page-modern .card-image-overlay .card-title,
.user-profile-page-modern .card-image-overlay .card-location {
    color: #fff;
}

.user-profile-page-modern .card-image-overlay .card-category {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    max-width: max-content;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.t-search .card-image-link::after,
.user-profile-page-modern .card-image-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.65) 100%);
    z-index: 2;
    pointer-events: none;
}

.t-search .card-image-link > *,
.user-profile-page-modern .card-image-link > * {
    position: relative;
    z-index: 3;
}

.t-search .card-favorite,
.user-profile-page-modern .card-favorite {
    position: absolute;
    z-index: 5;
    pointer-events: auto;
}

.t-search .card-image-link,
.user-profile-page-modern .card-image-link {
    position: relative;
    z-index: 1;
}

.t-search .card-actions .btn-call,
.t-search .card-actions .btn-email,
.t-search .card-actions .btn-whatsapp,
.user-profile-page-modern .card-actions .btn-call,
.user-profile-page-modern .card-actions .btn-email,
.user-profile-page-modern .card-actions .btn-whatsapp {
    border-radius: 10px;
    border: 1px solid var(--luxe-border, #e5e7eb);
    font-weight: 600;
    background: #fff;
    color: var(--luxe-text, #111827);
}

.card-actions .btn-call:hover,
.card-actions .btn-email:hover {
    background: var(--luxe-gold);
    color: var(--luxe-dark);
    border-color: var(--luxe-gold);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

.card-actions .btn-whatsapp {
    background: var(--brand-whatsapp);
    border-color: var(--brand-whatsapp);
    color: var(--bg-white);
}

.card-actions .btn-whatsapp:hover {
    background: color-mix(in srgb, var(--brand-whatsapp) 85%, var(--secondary-color) 15%);
    border-color: color-mix(in srgb, var(--brand-whatsapp) 85%, var(--secondary-color) 15%);
}

/* Image count to the right */
.image-count {
    right: 12px !important;
    left: auto !important;
}

/* Profile cards seguem o padrão do /search */

/* Ensure specs grid shows 2 columns */
.user-profile-page-modern .card-specs {
    display: block;
}

.luxe-contact-modal .luxe-form-terms a {
    color: #4A90E2;
    text-decoration: none;
}

.luxe-contact-modal .luxe-form-terms a:hover {
    text-decoration: underline;
}

/* Action Buttons Container */
.luxe-contact-actions-modal {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

/* Two Column Layout for Call + Send */
.luxe-actions-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Button Base Styles */
.luxe-contact-actions-modal button {
    padding: 10px 14px;
    min-height: 40px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.luxe-contact-actions-modal button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.luxe-contact-actions-modal button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Button Specific Colors */
.luxe-contact-actions-modal button.call {
    background: #1A1A2E;
    color: #FFFFFF;
    border-color: #1A1A2E;
}

.luxe-contact-actions-modal button.send {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.luxe-contact-actions-modal button.whatsapp {
    background: var(--brand-whatsapp);
    color: var(--bg-white);
    width: 100%;
}

.luxe-contact-actions-modal button i {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 576px) {
    .luxe-contact-modal-content {
        padding: 20px 16px;
        max-width: 95%;
    }
    
    .luxe-actions-row-split {
        grid-template-columns: 1fr;
    }
    
    .luxe-contact-modal-header h3 {
        font-size: 20px;
    }
}

/* Scrollbar Styling for Modal Content */
.luxe-contact-modal-content::-webkit-scrollbar {
    width: 8px;
}

.luxe-contact-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.luxe-contact-modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.luxe-contact-modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===================================
   LUXURY CONTACT MODAL - AGENT PROFILE
   ================================== */

/* Agent Profile Section */
.luxe-contact-modal .luxe-agent-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.luxe-contact-modal .luxe-agent-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.luxe-contact-modal .luxe-agent-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #D4AF37, #C5963A, #E8D48B, #D4AF37);
    background-origin: border-box;
    background-clip: content-box, border-box;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
}

.luxe-contact-modal .luxe-agent-verified-icon {
    position: absolute;
    bottom: 0;
    right: -2px;
    background: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.luxe-contact-modal .luxe-agent-verified-icon i {
    font-size: 18px;
    color: #D4AF37;
}

.luxe-contact-modal .luxe-agent-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.luxe-contact-modal .luxe-agent-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.luxe-contact-modal .luxe-agent-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #8B6914;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(232, 212, 139, 0.18));
    border: 1px solid rgba(212, 175, 55, 0.25);
    letter-spacing: 0.3px;
    width: fit-content;
}

.luxe-contact-modal .luxe-agent-badge i {
    font-size: 11px;
    color: #D4AF37;
}

/* Updated Modal Content for luxury feel */
.luxe-contact-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    max-width: 480px;
    width: 90%;
    max-height: fit-content;
    overflow: visible;
    padding: 32px 28px 28px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 10000;
    animation: luxeModalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes luxeModalSlideIn {
    from {
        transform: translateY(-30px) scale(0.92);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Updated header - just subtitle now */
.luxe-contact-modal .luxe-contact-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 4px 0;
    font-style: italic;
    text-align: center;
    line-height: 1.4;
}

/* Updated overlay */
.luxe-contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.75);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

/* Updated close button with gold accent */
.luxe-contact-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10001;
}

.luxe-contact-modal-close:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.35);
    transform: rotate(90deg);
}

.luxe-contact-modal-close i {
    font-size: 22px;
    color: #8B6914;
}

/* Enhanced form inputs */
.luxe-form-group input:focus,
.luxe-form-group textarea:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Enhanced action buttons */
.luxe-contact-actions-modal button.call {
    background: linear-gradient(135deg, #1A1A2E, #16213E);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.luxe-contact-actions-modal button.send {
    background: linear-gradient(135deg, #D4AF37, #C5963A);
    color: #1A1A2E;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.luxe-contact-actions-modal button.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    width: 100%;
}

.luxe-contact-actions-modal button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Terms link gold accent */
.luxe-form-terms a {
    color: #B7924A;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.luxe-form-terms a:hover {
    color: #D4AF37;
    text-decoration: underline;
}

/* Checkbox gold accent */
.luxe-contact-modal .luxe-form-terms input[type="checkbox"]:checked {
    accent-color: #D4AF37;
}

/* Input border radius enhancement */
.luxe-contact-modal .luxe-form-group input,
.luxe-contact-modal .luxe-form-group textarea {
    border-radius: 10px;
    border: 1.5px solid #e5e5e5;
    transition: all 0.25s ease;
}

.luxe-contact-modal .luxe-form-group input:hover,
.luxe-contact-modal .luxe-form-group textarea:hover {
    border-color: #ccc;
}

/* Responsive */
@media (max-width: 576px) {
    .luxe-contact-modal .luxe-agent-avatar {
        width: 56px;
        height: 56px;
    }
    
    .luxe-contact-modal .luxe-agent-name {
        font-size: 16px;
    }
    
    .luxe-contact-modal .luxe-agent-badge {
        font-size: 11px;
        padding: 2px 10px;
    }
    
    .luxe-contact-modal-content {
        padding: 24px 18px 20px;
    }
}
