/* ============= GURUGRAM LUXURY - CUSTOM STYLES ============= */

/* Project tag (NEW badge) - mimics original */
.project-item {
    position: relative;
}
.project-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--tj-color-theme-primary, #bd8c62);
    color: #fff;
    padding: 4px 16px;
    border-radius: 4px;
    z-index: 2;
}
.project-tag h6 {
    margin: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Form message styling */
.glp-form-message {
    display: none;
    margin-top: 15px;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 14px;
}
.glp-form-message.success {
    background: rgba(40, 167, 69, 0.15);
    color: #5cd378;
    border: 1px solid rgba(40, 167, 69, 0.4);
}
.glp-form-message.error {
    background: rgba(220, 53, 69, 0.15);
    color: #ff8095;
    border: 1px solid rgba(220, 53, 69, 0.4);
}

/* Visit form fields */
.glp-visit-form .form-input {
    margin-bottom: 18px;
}
.glp-visit-form .form-input input,
.glp-visit-form .form-input textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--tj-color-theme-bg-dark-deep, #1a1b1d);
    border: 1px solid var(--tj-color-theme-bg-dark-light, #2b2c30);
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}
.glp-visit-form .form-input input:focus,
.glp-visit-form .form-input textarea:focus {
    outline: none;
    border-color: var(--tj-color-theme-primary, #bd8c62);
}
.glp-visit-form .form-input input::placeholder,
.glp-visit-form .form-input textarea::placeholder {
    color: #999;
}

/* Pagination */
.page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background: var(--tj-color-theme-bg-dark-light, #2b2c30);
    color: #fff;
    border-radius: 4px;
    transition: all 0.3s;
}
.page-numbers:hover,
.page-numbers.current {
    background: var(--tj-color-theme-primary, #bd8c62);
    color: #fff;
}

/* Floating contact button group */
.contact-btn-container { gap: 10px; }

/* Modal close cursor */
.modal-close { cursor: pointer; }

/* WordPress block editor compatibility */
.wp-caption,
.gallery-caption,
.bypostauthor { display: block; }

/* Subscribe form layout fix */
.subscribe-form .form-control { margin-bottom: 10px; }

/* Footer menu inline */
.footer-menu-inline { display: inline; padding: 0; margin: 0; list-style: none; }
.footer-menu-inline li { display: inline-block; margin-left: 15px; }

/* Map wrapper full width */
.map-wrapper iframe { display: block; width: 100%; }

/* Property gallery in archive */
.archive-property .project-item {
    background: var(--tj-color-theme-bg-dark-deep, #1a1b1d);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}
.archive-property .project-item:hover { transform: translateY(-5px); }

/* Page header text padding fix */
.page-header { padding: 100px 0; }
.page-header h2 { font-size: 48px; line-height: 1.2; margin-bottom: 12px; color: #fff; }
.page-header h1 { color: #fff; }

/* Hero badge cursor */
.hero-box a { cursor: pointer; }

/* Padding utility classes if not in Beauly */
.padding { padding: 80px 0; }
.padding-bottom { padding-bottom: 60px; }
.mt-50 { margin-top: 50px; }
.mb-30 { margin-bottom: 30px; }
.mb-60 { margin-bottom: 60px; }

/* Make sure section transitions are smooth */
section { transition: background 0.3s; }

/* Ensure all anchor buttons have cursor */
a.tj-primary-btn { cursor: pointer; }
.header-btn.tj-primary-btn { cursor: pointer !important; }

/* Fix for popup-image (inline lightbox style) */
.popup-image img { display: block; transition: opacity 0.3s; }
.popup-image:hover img { opacity: 0.85; }

/* ============= MODAL FIX (HIDDEN BY DEFAULT) ============= */
#modal.modal-container {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 40px 20px;
}
#modal.modal-container.active,
#modal.modal-container[style*="display: flex"] {
    display: flex !important;
}
#modal .modal-content {
    background: var(--tj-color-theme-bg-dark, #222326);
    border: 1px solid var(--tj-color-theme-primary, #bd8c62);
    border-radius: 8px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: auto;
}
#modal .modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    color: var(--tj-color-theme-primary, #bd8c62);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
    background: transparent;
    border: 0;
    padding: 0;
}
#modal .modal-close:hover {
    color: #fff;
}
#modal .section-title {
    color: #fff;
    text-align: center;
    margin-bottom: 25px;
}

/* ============= SINGLE PROPERTY PAGE FIXES ============= */

/* Key highlight icons (the megaphone) - tiny inline icon */
.page-header .keyhighlight-img,
.page-header img.keyhighlight-img,
.page-header li img {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block !important;
    object-fit: contain;
}

/* Page header list of highlights */
.page-header ul.list-unstyled {
    margin: 20px 0;
    padding: 0;
    list-style: none;
    color: #fff;
}
.page-header ul.list-unstyled li {
    color: #fff;
    margin-bottom: 8px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Page header text colors */
.page-header h2,
.page-header h1 {
    color: #fff !important;
    margin: 0 0 12px;
}
.page-header .typology-heading,
.page-header .starting-price-heading,
.page-header p {
    color: #fff !important;
}
.page-header .starting-price-heading {
    color: var(--tj-color-theme-primary, #bd8c62) !important;
    font-size: 24px;
    margin: 15px 0;
}
.page-header p span {
    color: var(--tj-color-theme-primary, #bd8c62);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Page header overlay for readability */
.page-header {
    position: relative;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 0;
}
.page-header > .container {
    position: relative;
    z-index: 1;
}
.page-header .btn-gruop-box {
    margin-top: 20px;
}

/* ============= SINGLE PROPERTY PAGE FIX ============= */
/* Page header key highlights - icons must be small */
.page-header .keyhighlight-img {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
    object-fit: contain;
}

/* Page header list of highlights styling */
.page-header ul.list-unstyled {
    margin: 20px 0;
    padding: 0;
    color: #fff;
    list-style: none;
}
.page-header ul.list-unstyled li {
    color: #fff;
    margin: 8px 0;
    font-size: 16px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Page header text colors */
.page-header h2 {
    color: #fff;
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 12px;
}
.page-header h1 {
    color: #fff;
    font-size: 56px;
    line-height: 1.2;
}
.page-header .typology-heading {
    color: #fff;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 400;
}
.page-header .starting-price-heading {
    color: var(--tj-color-theme-primary, #bd8c62);
    font-size: 24px;
    font-weight: 600;
    margin-top: 10px;
}
.page-header span {
    color: var(--tj-color-theme-primary, #bd8c62);
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Page header dark overlay so text is readable */
.page-header {
    position: relative;
    padding: 100px 0 80px;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 0;
}
.page-header > .container {
    position: relative;
    z-index: 1;
}

/* Schedule Visit button on page header */
.page-header .btn-gruop-box {
    margin-top: 20px;
}

/* ============= SINGLE PROPERTY PAGE FIXES ============= */

/* Fix giant megaphone icons in page header highlights */
.page-header .keyhighlight-img {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
    object-fit: contain;
}

/* Page header list of highlights */
.page-header ul.list-unstyled {
    margin: 18px 0;
    padding: 0;
    color: #fff;
    list-style: none;
}
.page-header ul.list-unstyled li {
    color: #fff;
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Page header text colors */
.page-header h1,
.page-header h2 {
    color: #fff;
}
.page-header .typology-heading {
    color: #fff;
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 400;
}
.page-header .starting-price-heading {
    color: var(--tj-color-theme-primary, #bd8c62);
    font-size: 24px;
    font-weight: 600;
    margin: 16px 0 12px;
}
.page-header p span {
    color: var(--tj-color-theme-primary, #bd8c62);
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Page header overlay */
.page-header {
    position: relative;
    background-color: #1a1b1d;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 0;
}
.page-header .container {
    position: relative;
    z-index: 1;
}

/* Schedule Visit button on page header */
.btn-gruop-box {
    margin-top: 20px;
}

/* ============= ABOUT PAGE - Why Choose Us promo cards ============= */
.promo-content-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.promo-content {
    background: var(--tj-color-theme-bg-dark, #222326);
    border: 1px solid var(--tj-color-theme-bg-dark-light, #2b2c30);
    padding: 24px 22px;
    border-radius: 8px;
    transition: border-color 0.3s, transform 0.3s;
}
.promo-content:hover {
    border-color: var(--tj-color-theme-primary, #bd8c62);
    transform: translateY(-3px);
}
.promo-content h4 {
    color: var(--tj-color-theme-primary, #bd8c62);
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.3;
}
.promo-content p {
    color: #cfcfcf;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}
@media (max-width: 767px) {
    .promo-content-wrap { grid-template-columns: 1fr; }
}

/* Highlight a card (for accent variation) */
.promo-content.accent {
    background: linear-gradient(135deg, rgba(189, 140, 98, 0.12), rgba(189, 140, 98, 0.04));
    border-color: rgba(189, 140, 98, 0.3);
}

/* Contact info icons */
.contact-section .contact-icon i {
    font-size: 32px;
    color: var(--tj-color-theme-primary, #bd8c62);
    margin-bottom: 12px;
}
.contact-section .contact-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
}
.contact-section .contact-list a,
.contact-section .contact-item p {
    color: #cfcfcf;
    text-decoration: none;
}
.contact-section .contact-list a:hover {
    color: var(--tj-color-theme-primary, #bd8c62);
}
.contact-section .contact-item {
    min-width: 200px;
    padding: 20px;
}

/* ============= HEADER MENU & DROPDOWN ============= */
.header-menu-wrap .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}
.header-menu-wrap .sub-menu > li {
    position: relative;
    padding: 20px 0;
}
.header-menu-wrap .sub-menu > li > a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s;
    display: inline-block;
}
.header-menu-wrap .sub-menu > li > a:hover,
.header-menu-wrap .sub-menu > li.active > a,
.header-menu-wrap .sub-menu > li.has-dropdown:hover > a {
    color: var(--tj-color-theme-primary, #bd8c62);
}

/* Has dropdown indicator */
.header-menu-wrap .sub-menu > li.has-dropdown > a::after {
    content: "▾";
    font-size: 10px;
    margin-left: 6px;
    vertical-align: middle;
    opacity: 0.7;
}

/* Dropdown */
.header-menu-wrap .sub-menu-dropdown,
.header-menu-wrap .has-dropdown ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--tj-color-theme-bg-dark, #222326);
    min-width: 220px;
    list-style: none;
    padding: 12px 0;
    margin: 0;
    border: 1px solid rgba(189, 140, 98, 0.2);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    z-index: 999;
}
.header-menu-wrap .has-dropdown:hover .sub-menu-dropdown,
.header-menu-wrap .has-dropdown:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.header-menu-wrap .sub-menu-dropdown li,
.header-menu-wrap .has-dropdown ul li {
    padding: 0;
    list-style: none;
}
.header-menu-wrap .sub-menu-dropdown li a,
.header-menu-wrap .has-dropdown ul li a {
    display: block;
    padding: 10px 20px;
    color: #cfcfcf;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border-left: 2px solid transparent;
}
.header-menu-wrap .sub-menu-dropdown li a:hover,
.header-menu-wrap .has-dropdown ul li a:hover {
    color: var(--tj-color-theme-primary, #bd8c62);
    background: rgba(189, 140, 98, 0.05);
    border-left-color: var(--tj-color-theme-primary, #bd8c62);
    padding-left: 24px;
}

/* Mobile menu - hide dropdown by default, show on screen below 991 */
@media (max-width: 991px) {
    .header-menu-wrap { display: none; }
}
