/* ATP Home Page Custom Styles
 */

/* ========== GENERAL SETTINGS & VARIABLES ========== */
:root {
    --primary-color: #a51c36;
    --primary-color-light: #d13a5e;
    --primary-color-dark: #7c1427;
    --secondary-color: #546e7a;
    --secondary-color-light: #8c9ea8;
    --text-color: #333333;
    --light-text: #ffffff;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --border-radius: 10px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}




/* ========== BODY & BACKGROUND SETTINGS ========== */
body.home {
    background: url('../images/header-bg.png') center top/cover no-repeat fixed !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    background-position: center top !important;
    min-height: 100vh !important;
    position: relative !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

body.home::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url('../images/header-bg.png') center/cover no-repeat;
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
    image-rendering: -webkit-optimize-contrast;
}

/* Ensure HTML element doesn't override */
html body.home {
    background: url('../images/header-bg.png') center top/cover no-repeat fixed !important;
    background-size: cover !important;
    background-position: center top !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

/* Additional fallback for html element */
html.home,
html body.home,
body.home {
    background-image: url('../images/header-bg.png') !important;
    background-position: center top !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* ========== TRANSPARENT HEADER SETTINGS ========== */
/* Make header completely transparent on index page */
body.home .header-bg {
    background: transparent !important;
    backdrop-filter: none !important;
}

/* Override home.css main-content background with highest specificity */
body.home.home .main-content,
html body.home .main-content,
.main-content {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
}

/* Additional override for imported CSS */
body.home .main-content,
body.home main.main-content,
.home .main-content,
.home main.main-content {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    min-height: auto !important;
}

/* Make hero section completely transparent with highest specificity */
body.home.home .hero-section,
html body.home .hero-section,
.home .hero-section {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
}

/* Remove hero section overlay */
body.home .hero-section::before {
    display: none !important;
    background: transparent !important;
}

/* Ensure container elements don't block background */
body.home .hero-content,
body.home .container-fluid,
body.home .container {
    background: transparent !important;
    background-image: none !important;
}

/* ========== TEXT VISIBILITY ENHANCEMENTS ========== */
body.home .header-bg .text-white {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

body.home .header-bg .main-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

body.home .main-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    color: #ffffff !important;
}

body.home .subtitle {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
    color: #ffffff !important;
}

/* ========== SEARCH SECTION ========== */
/* Transparent search section */
body.home .search-container {
    background: transparent !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    padding: 15px !important;
    box-shadow: none !important;
    border: none !important;
}

/* Creative floating property tabs */
body.home .property-tabs {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-bottom: 15px !important;
}

/* ========== TRANSPARENT BOXES ========== */
/* Direct fix for white transparent boxes */
.white-transparent-box,
.search-container.white-transparent-box,
.cause-banner.white-transparent-box {
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-radius: 10px !important;
    padding: 20px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    z-index: 100 !important;
}

/* ========== STATS CARDS ========== */
/* Enhance stats card visibility */
body.home .stats-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* ========== BANNERS AND SECTIONS ========== */
/* Enhance cause banner visibility */
body.home .cause-banner {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    margin: 1rem 0 !important;
}

/* Add transparency to registration banner */
body.home .atp-registration-banner {
    background: #ffffff !important;
    backdrop-filter: none !important;
    border-top: 1px solid rgba(233, 236, 239, 1) !important;
    border-bottom: 1px solid rgba(233, 236, 239, 1) !important;
}

/* Add white background to announcement banner */
body.home .announcement-banner {
    background: rgba(255, 255, 255, 1) !important;
    backdrop-filter: none !important;
}

/* Ensure all sections below hero have white backgrounds */
body.home section:not(.hero-section),
body.home .main-content section {
    background: rgba(255, 255, 255, 1) !important;
    backdrop-filter: none !important;
}

/* Enhanced text readability on transparent backgrounds */
body.home .cause-text {
    color: #333 !important;
    text-shadow: none !important;
}

body.home .registration-title {
    color: #0d6efd !important;
    text-shadow: none !important;
}

/* ========== NAVIGATION CARDS STYLES ========== */
/* Navigation Cards */
.navigation-cards {
    background: white;
    position: relative;
    padding: 20px 0;
}

.nav-card {
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-out;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    height: 95px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-card:active {
    transform: translateY(2px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 8px 8px 0 0;
}

.primary-card {
    background: linear-gradient(135deg, #d13a5e 0%, #a51c36 100%);
    color: white;
    position: relative;
    z-index: 1;
}

.primary-card:hover {
    background: linear-gradient(135deg, #e24b6d 0%, #b62747 100%);
    box-shadow: 0 4px 15px rgba(194, 24, 91, 0.5), 0 5px 10px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.secondary-card {
    background: linear-gradient(135deg, #8c9ea8 0%, #546e7a 100%);
    color: white;
    position: relative;
    z-index: 1;
}

.secondary-card:hover {
    background: linear-gradient(135deg, #9bafb9 0%, #657e8a 100%);
    box-shadow: 0 4px 15px rgba(120, 144, 156, 0.5), 0 5px 10px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card-icon {
    font-size: 1.4rem;
    margin-bottom: 7px;
    display: block;
    position: relative;
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-content h6 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.card-content small {
    font-size: 0.75rem;
    opacity: 0.9;
    display: block;
    margin-top: 3px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ========== BANNER TITLE (FROM HOME.CSS) ========== */
/* Banner Title */
.banner-title {
    color: #a51c36;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    position: relative;
    z-index: 2;
}

/* ========== BUSINESS SECTION (TRADES AND LOCAL BUSINESS) ========== */
.business-section {
    background: #a51c36;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    max-width: 400px;
    width: 100%;
    margin: 10px auto;
}

/* Floating shapes styles */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    color: rgba(255, 255, 255, 0.15);
    opacity: 0.7;
}

.shape-large {
    font-size: 28px;
    top: 15%;
    left: 10%;
    animation: float-large 8s ease-in-out infinite alternate;
}

.shape-medium {
    font-size: 24px;
    top: 25%;
    right: 15%;
    animation: float-medium 9s ease-in-out infinite alternate;
}

.shape-xlarge {
    font-size: 32px;
    bottom: 15%;
    right: 25%;
    animation: float-xlarge 10s ease-in-out infinite alternate;
}

/* Business Section Content */
.business-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.business-section h3 img,
.business-section h3 i {
    margin-right: 10px;
    font-size: 22px;
}

.business-section p {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.business-content {
    position: relative;
    z-index: 2;
}

/* Button Styles */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.business-btn {
    background: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.business-btn:hover {
    background: #f8f8f8;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #000;
    text-decoration: none;
}

.business-btn i {
    margin-right: 5px;
}

/* Directory button specific styles */
.directory-btn {
    margin-bottom: 10px;
}

/* Additional styling for business section top icons */
.trades-icon-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.trades-icon {
    color: white;
    font-size: 18px;
    opacity: 0.9;
}

.trades-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px 0;
}

.trades-title i {
    color: white;
    font-size: 20px;
}

/* Animations */
@keyframes float-large {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(10px, -10px) rotate(10deg);
    }
}

@keyframes float-medium {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-10px, -5px) rotate(-8deg);
    }
}

@keyframes float-xlarge {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(8px, 8px) rotate(5deg);
    }
}

/* Media queries for business section */
@media (max-width: 768px) {
    .business-section {
        padding: 15px;
        max-width: 350px;
    }

    .business-section h3 {
        font-size: 18px;
    }

    .business-section p {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .business-btn {
        font-size: 13px;
        padding: 8px;
    }

    .shape-large {
        font-size: 24px;
    }

    .shape-medium {
        font-size: 20px;
    }

    .shape-xlarge {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .business-section {
        padding: 15px;
        max-width: 300px;
    }

    .business-section h3 {
        font-size: 16px;
    }

    .business-section p {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .business-btn {
        font-size: 12px;
        padding: 8px;
    }
}

/* ========== MODERN HERO SECTION STYLES ========== */
/* Modern Hero Section Styles */
.atp-modern-hero {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.01)),
        url('../images/world-map-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 0px 0;
    color: white;
    font-family: 'Roboto', Arial, sans-serif;
    min-height: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.atp-search-wrapper {
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.atp-search-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    margin-bottom: 8px;
    text-align: center;
}

.atp-search-header {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    text-align: center;
    margin-bottom: 0;
    white-space: nowrap;
}

.atp-client-message {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 0;
    line-height: 1.3;
    max-width: 800px;
    white-space: normal;
}

.atp-search-form-container {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    padding: 15px;
    margin: 0 auto 8px auto;
    width: 95%;
    max-width: 1400px;
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.atp-search-input-wrapper {
    display: flex;
    margin-bottom: 10px;
    position: relative;
    border-radius: 30px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    background: white;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.7);
    width: 100%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.atp-search-input-wrapper:focus-within {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.atp-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
}

.atp-search-input {
    flex: 1;
    padding: 10px 10px 10px 35px;
    border: none;
    min-width: 200px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: transparent;
}

.atp-search-input:focus {
    box-shadow: none;
    outline: none;
}

.atp-search-btn {
    background-color: #b01e42;
    color: white;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.atp-search-btn:hover {
    background-color: #b01e42;
}

/* Property Type Buttons */
.atp-property-types {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}


/* dropdown container */
.atp-more-wrapper {
    position: relative;
}

/* dropdown */
.atp-more-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 6px 0;
    min-width: 180px;
    display: none;
    z-index: 100;
}

.atp-dropdown-item.active {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.atp-dropdown-item.active:hover {
    background: var(--primary-color-dark);
}

.atp-dropdown-item {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: #333;
    font-size: 0.85rem;
}

.atp-dropdown-item:hover {
    background: #f5f5f5;
    color: #a51c36;
}

.atp-property-types {
    display: flex;
    align-items: center;
}

.atp-more-wrapper {
    position: relative;
}

.atp-more-wrapper .atp-type-btn {
    display: block;
}

.atp-type-btn {
    vertical-align: middle;
}

/* show dropdown */
.atp-more-wrapper:hover .atp-more-dropdown {
    display: block;
}


.atp-type-btn {
    padding: 10px 18px;
    text-align: center;
    text-decoration: none;
    font-size: 0.88rem;
    border-radius: 12px;
    flex: 1 0 auto;
    display: inline-block;
    min-width: 95px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    letter-spacing: 0.4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background-color: rgba(255, 255, 255, 0.7);
    color: #333;
}

.atp-property-types .atp-type-btn {
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #eee !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: background 0.2s, color 0.2s;
}

.atp-property-types .atp-type-btn.active,
.atp-property-types .atp-type-btn:active,
.atp-property-types .atp-type-btn:focus {
    background: linear-gradient(135deg, #b01e42 0%, #b01e42 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(196, 48, 43, 0.18);
}

.atp-property-types .atp-type-btn:hover:not(.active) {
    background: #f8f9fa !important;
    color: #b01e42 !important;
    border: 1px solid #b01e42 !important;
}

.atp-type-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
    z-index: -1;
}

.atp-type-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    opacity: 0;
    transition: all 0.4s ease;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.atp-sale-btn {
    background: linear-gradient(135deg, #b01e42 0%, #b01e42 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(196, 48, 43, 0.3);
    border: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.atp-sale-btn:hover {
    background: linear-gradient(135deg, #b01e42 0%, #b01e42 100%);
    color: white;
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 5px 12px rgba(196, 48, 43, 0.4), 0 0 10px rgba(255, 255, 255, 0.15) inset;
}

.atp-sale-btn::before {
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.atp-sale-btn:hover::before {
    transform: translateX(100%);
}

.atp-sale-btn:hover::after {
    opacity: 1;
}

.atp-let-btn,
.atp-build-btn,
.atp-auctions-btn,
.atp-commercial-btn,
.atp-investments-btn,
.atp-more-btn {
    background: rgba(255, 255, 255, 0.75);
    color: #333;
    border: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.atp-let-btn:hover,
.atp-build-btn:hover,
.atp-auctions-btn:hover,
.atp-commercial-btn:hover,
.atp-investments-btn:hover,
.atp-more-btn:hover {
    background-color: #ffffff;
    color: #333;
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.atp-let-btn:hover::before,
.atp-build-btn:hover::before,
.atp-auctions-btn:hover::before,
.atp-commercial-btn:hover::before,
.atp-investments-btn:hover::before,
.atp-more-btn:hover::before {
    transform: translateX(100%);
}

.atp-let-btn:hover::after,
.atp-build-btn:hover::after,
.atp-auctions-btn:hover::after,
.atp-commercial-btn:hover::after,
.atp-investments-btn:hover::after,
.atp-more-btn:hover::after {
    opacity: 1;
}

.atp-type-btn.active {
    background: linear-gradient(135deg, #b01e42 0%, #b01e42 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(196, 48, 43, 0.4);
    transform: translateY(-1px);
    border: none;
    position: relative;
}

.atp-type-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    opacity: 1;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.atp-preferred-btn {
    background: #fff;
    color: var(--primary-color);
    padding: 11px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    text-align: center;
    width: 90%;
    margin: 0 auto;
    display: block;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.atp-preferred-btn:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.atp-preferred-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
    z-index: -1;
}

.atp-preferred-btn:hover::before {
    transform: translateX(100%);
}

/* Cause Statement Styles */
.atp-cause-statement {
    font-size: 0.8rem;
    margin: 8px auto 0;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    max-width: 800px;
    width: 85%;
}

.atp-details-link {
    color: white;
    text-decoration: underline;
    margin-left: 5px;
    transition: all 0.2s ease;
}

.atp-details-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Preferred Search Modal */
#preferredSearchModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}



#preferredSearchModal .modal-title {
    font-weight: 500;
    font-size: 0.95rem;
    color: white;
    letter-spacing: 0.2px;
}

#preferredSearchModal .btn-close {
    font-size: 0.85rem;
    opacity: 1;
    color: white;
    background: #fff;
    border-radius: 50%;
    padding: 0.25rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-right: -5px;
}

#preferredSearchModal .modal-body {
    padding: 0.6rem 1rem 0.5rem;
}

#preferredSearchModal .form-control {
    height: 36px;
    font-size: 0.85rem;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
}

#preferredSearchModal .form-control:focus {
    border-color: #b01e42;
    box-shadow: 0 0 0 3px rgba(176, 30, 66, 0.15);
}

#preferredSearchModal .btn-danger {
    background: linear-gradient(135deg, #b01e42 0%, #a51c36 100%);
    border: none;
    height: 36px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

#preferredSearchModal .btn-danger:hover {
    background: linear-gradient(135deg, #a51c36 0%, #b01e42 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(176, 30, 66, 0.25);
}

#preferredSearchModal small {
    font-size: 0.75rem;
    color: #6c757d;
}

#preferredSearchModal .btn-close:focus {
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.5);
    opacity: 1;
}

/* Responsive adjustments for search form */
@media (max-width: 1100px) {
    .atp-stats-container {
        padding-right: 20px;
        padding-left: 10px;
        align-items: center;
        margin-left: 0;
        margin-bottom: 2rem;


    }

    .atp-stats-table {
        max-width: 350px;
        min-width: 300px;
        width: 100%;
        font-size: 0.7rem;
    }

    .atp-search-form-container {
        max-width: 95%;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .atp-property-types {
        margin-left: auto;
        margin-right: auto;
    }

    .atp-preferred-btn {
        margin-left: auto;
        margin-right: auto;
    }

    .atp-cause-statement {
        margin-left: auto;
        margin-right: auto;
    }

    .atp-search-input-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .atp-search-header-row {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        text-align: center;
    }

    .atp-search-header {
        text-align: center;
    }

    .atp-client-message {
        text-align: center;
    }

    .atp-cause-statement {
        text-align: center;
    }

    .atp-stats-container {
        margin-top: 15px;
        padding: 10px 10px;
        /* Equal padding on all sides */
        align-items: center;
        width: 100%;
    }

    .atp-stats-table {
        text-align: center;
        margin: 0 auto;
        max-width: 90%;
        min-width: 280px;
        width: 100%;
        padding: 10px 15px;
        width: 100%;
    }

    .atp-stats-row {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .atp-stats-header {
        font-size: 0.85rem;
    }

    .atp-comparison {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .atp-stats-table {
        font-size: 0.75rem;
        padding: 12px;
        max-width: 99vw;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .atp-stats-container {
        padding: 5px;
        width: 100%;
        margin: 10px auto 0;
    }

    .atp-stats-table {
        max-width: 95%;
        min-width: 250px;
        font-size: 0.68rem;
        padding: 10px;
    }

    .atp-stats-badge {
        min-width: 34px;
        min-height: 34px;
        padding: 0 16px;
        font-size: 1.9rem;
    }

    .atp-cause-statement {
        font-size: 0.7rem;
    }

    .atp-stats-container {
        margin-top: 10px;
        padding: 5px 20px 5px 5px;
        /* Increased right padding */
        align-items: center;
    }

    .atp-stats-number {
        margin-left: 10px;
        min-width: 70px;
    }
}

@media (max-width: 480px) {
    .atp-stats-table {
        padding: 0.7rem;
        /* smaller padding on very small screens */
    }

    .atp-stats-number {
        font-size: 0.7rem;
    }
}

.category-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 110px;
    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    backdrop-filter: blur(10px);
    flex: 0 1 auto;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* ========== REGISTRATION BANNER STYLES ========== */
/* Unique registration banner styles with atp- prefix */
.atp-registration-banner {
    background: #ffffff !important;
    border-top: 1px solid rgba(233, 236, 239, 1) !important;
    border-bottom: 1px solid rgba(233, 236, 239, 1) !important;
    backdrop-filter: none !important;
}

.atp-registration-title {
    color: #a51c36 !important;
    font-size: 1.4rem !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    text-shadow: none !important;
    margin-bottom: 1rem !important;
}

.atp-register-btn {
    background: linear-gradient(135deg, #a51c36 0%, #7c1427 100%) !important;
    color: #ffffff !important;
    border: 2px solid #a51c36 !important;
    padding: 10px 25px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 5px !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    font-size: 1rem !important;
}

.atp-register-btn:hover {
    background: linear-gradient(135deg, #7c1427 0%, #a51c36 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(165, 28, 54, 0.3) !important;
    border-color: #7c1427 !important;
}

/* Additional breakpoint for very small devices */
@media (max-width: 380px) {
    .atp-property-types {
        gap: 4px;
    }

    .atp-type-btn {
        padding: 6px 8px;
        font-size: 0.7rem;
        flex: 0 0 calc(50% - 3px);
        border-radius: 25px;
    }

    .atp-preferred-btn {
        width: 100%;
        font-size: 0.75rem;
        padding: 8px 10px;
    }
}

/* ========== STATS TABLE STYLES ========== */
.atp-stats-container {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding-right: 80px;
    /* Increased padding from 50px to 80px */
}

.atp-stats-header {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
    color: #ffffff;
}

.atp-comparison {
    font-size: 0.8rem;
    margin-bottom: 10px;
    text-align: center;
    color: #ffffff;
}

.atp-stats-table {
    font-size: 0.72rem;
    text-align: left;
    background: rgba(88, 88, 88, 1);
    border-radius: 14px;
    padding: 10px 20px 10px 20px;
    max-width: 380px;
    min-width: 320px;
    width: 100%;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 0;
    margin-top: 6px;
    color: #fff;
    min-height: 0;
    position: relative;
}

.atp-stats-badge {
    display: inline-block;
    min-width: 38px;
    min-height: 38px;
    padding: 0 18px;
    background: rgba(0, 180, 255, 0.18);
    border: 2px solid #00b4ff;
    border-radius: 10px;
    color: #ffe600;
    font-size: 2.1rem;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 180, 255, 0.12);
    margin: 10px auto 0 auto;
    position: static;
    line-height: 1.1;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-clip: padding-box;
    transition: box-shadow 0.2s;
}

.atp-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 4px;
}

.atp-stats-row:last-of-type {
    border-bottom: none;
}

.atp-stats-number {
    font-weight: 700;
    color: rgba(87, 87, 87, 0.9);
    font-size: 0.9em;
    letter-spacing: -0.5px;
    min-width: 90px;
    text-align: right;
}

.atp-stats-total {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

.atp-stats-total .atp-stats-number {
    font-weight: 800;
    font-size: 1em;
    color: #ffe600;
    text-shadow: 0 0 5px rgba(255, 230, 0, 0.3);
}

.atp-view-stats-btn {
    display: block;
    text-align: center;
    padding: 7px 12px;
    margin-top: 10px;
    background: linear-gradient(135deg, #b01e42 0%, #b01e42 100%);
    color: white;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(196, 48, 43, 0.3);
}

.atp-view-stats-btn:hover {
    background: linear-gradient(135deg, #b01e42 0%, #b01e42 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(196, 48, 43, 0.4);
    color: white;
    text-decoration: none;
}

/* alternate/duplicated simplified styles (kept for theme consistency) */
.atp-stats-header {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 2px;
    text-align: center;
    color: #fff;
}

.atp-comparison {
    font-size: 0.6rem;
    margin-bottom: 2px;
    text-align: center;
    color: #eee;
}

.atp-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    color: #fff;
    font-size: 0.68rem;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.atp-stats-number {
    font-weight: 700;
    margin-left: 4px;
    min-width: 32px;
    color: #fff;
    font-size: 0.75rem;
}

.atp-stats-total {
    color: #fff;
    font-weight: 800;
    margin-top: 2px;
    padding-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 1rem;
}

.atp-stats-total .atp-stats-number {
    font-size: 1rem;
    color: #fff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: #fff;
}

.atp-stats-badge-wrapper {
    width: 100%;
    text-align: center;
    margin-top: 0.3rem;
    margin-bottom: 0.75rem;
}

/* ========== MISCELLANEOUS STYLES ========== */
.preferred-modal-text {
    margin-bottom: 18px;
    font-size: 1.08rem;
    color: #222;
    text-align: left;
    line-height: 1.5;
}

.preferred-modal-extra {
    font-size: 0.98rem;
    color: #222;
    text-align: left;
}

.preferred-modal-extra a.register-link {
    color: #b01e42;
    text-decoration: underline;
}

.free-text-colour {
    color: var(--primary-color);
}

.hidden {
    display: none;
}

/* ========== MOBILE RESPONSIVE STYLES ========== */

/* Reduced hero section height */
body.home .hero-section {
    min-height: auto !important;
    padding: 0.8rem 0 !important;
}

body.home .hero-content {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Enhanced mobile background image handling */
@media (max-width: 1200px) {
    body.home {
        background-position: center center !important;
        background-size: cover !important;
        background-attachment: fixed !important;
    }

    .nav-card {
        height: 95px;
        padding: 10px 6px;
    }

    .card-icon {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }

    .card-content h6 {
        font-size: 0.8rem;
    }

    .card-content small {
        font-size: 0.7rem;
    }
}

/* Large tablets and small desktops (1024px and down) */
@media (max-width: 1124px) {
    body.home {
        background-position: center center !important;
        background-size: cover !important;
        background-attachment: scroll !important;
        min-height: 100vh !important;
    }

    body.home .hero-section {
        min-height: 40vh !important;
        padding: 1rem 0 !important;
    }

    body.home .hero-content {
        padding-top: 1rem !important;
    }

    body.home .main-title {
        font-size: 2.2rem !important;
        margin-bottom: 1.2rem !important;
    }

    body.home .subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.8rem !important;
    }

    body.home .search-container {
        padding: 18px !important;
        margin: 0 10px !important;
    }

    body.home .stats-card {
        margin-top: 1.5rem !important;
    }

    .carousel-category-selector {
        padding: 0.8rem 0;
        border-radius: 0 0 18px 18px;
    }

    .category-buttons {
        gap: 6px !important;
        padding: 6px;
        border-radius: 13px;
        margin: 0 8px;
    }

    .category-btn {
        min-width: 100px;
        padding: 10px 16px;
        border-radius: 8px;
        font-size: 0.85rem;
        flex: 1 1 auto;
        white-space: nowrap;
    }

    .category-btn span {
        font-size: 0.85rem;
        letter-spacing: 0.2px;
    }
}

/* Fix for mobile devices where background-attachment: fixed doesn't work */
@media (max-width: 768px) {
    /* body.home {
        background: url('../images/earth.jpg') center center/cover no-repeat !important;
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
        min-height: 100vh !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    } */

    body.home::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background: url('../images/header-bg.png') center/cover no-repeat;
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
        image-rendering: -webkit-optimize-contrast;
    }

    .atp-search-form-container {
        padding: 15px;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .atp-property-types {
        justify-content: center;
        gap: 10px;
        max-width: 100%;
    }

    .atp-type-btn {
        padding: 9px 12px;
        font-size: 0.8rem;
        min-width: 90px;
        flex: 0 0 calc(33% - 10px);
        margin-bottom: 0;
    }

    .atp-preferred-btn {
        width: 95%;
    }

    .atp-search-input {
        padding: 10px 10px 10px 32px;
    }

    .atp-search-btn {
        padding: 0 20px;
    }

    html body.home {
        background: url('../images/earth.jpg') center center/cover no-repeat !important;
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    body.home .hero-section {
        min-height: 35vh !important;
        padding: 0.8rem 0 !important;
    }

    body.home .hero-content {
        padding-top: 0.8rem !important;
        width: 98% !important;
    }

    body.home .main-title {
        font-size: 1.8rem !important;
        margin-bottom: 1rem !important;
        padding: 0 15px !important;
        line-height: 1.3 !important;
    }

    body.home .subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
        padding: 0 20px !important;
        line-height: 1.4 !important;
    }

    body.home .search-container {
        padding: 15px !important;
        margin: 0 15px !important;
        border-radius: 12px !important;
    }

    body.home .property-tabs {
        padding: 6px !important;
        border-radius: 8px !important;
        margin-bottom: 1rem !important;
    }

    body.home .property-tabs .nav-item {
        margin-bottom: 0.3rem !important;
    }

    body.home .property-tabs .nav-link {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
    }

    body.home .search-input-group {
        flex-direction: column !important;
        gap: 10px !important;
    }

    body.home .search-input {
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    body.home .search-btn {
        width: 100% !important;
        margin: 0 !important;
        padding: 12px !important;
        font-size: 1rem !important;
    }

    body.home .location-btn {
        width: 100% !important;
        padding: 10px !important;
        font-size: 0.9rem !important;
    }

    body.home .cause-banner {
        flex-direction: column !important;
        text-align: center !important;
        padding: 15px !important;
        margin: 1rem 10px !important;
    }

    body.home .cause-text {
        margin-bottom: 1rem !important;
        margin-right: 0 !important;
        font-size: 0.9rem !important;
    }

    body.home .details-btn {
        font-size: 0.85rem !important;
        padding: 8px 16px !important;
    }

    body.home .stats-card {
        margin-top: 1rem !important;
        padding: 1rem !important;
    }

    .nav-card {
        height: 90px;
        padding: 8px 5px;
    }

    .card-icon {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }

    .card-content h6 {
        font-size: 0.75rem;
        line-height: 1.1;
    }

    .card-content small {
        font-size: 0.65rem;
    }

    .carousel-category-selector {
        padding: 0.6rem 0;
        border-radius: 0 0 15px 15px;
    }

    .category-buttons {
        gap: 5px !important;
        padding: 5px;
        border-radius: 12px;
        margin: 0 10px;
        flex-wrap: wrap;
        justify-content: center !important;
    }

    .category-btn {
        min-width: 85px;
        padding: 9px 14px;
        border-radius: 8px;
        flex: 1 1 calc(50% - 2.5px);
        max-width: calc(50% - 2.5px);
        min-height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .category-btn span {
        font-size: 0.8rem;
        letter-spacing: 0.1px;
        line-height: 1.2;
        text-align: center;
    }

    .atp-registration-title {
        font-size: 1.2rem !important;
        line-height: 1.4 !important;
        padding: 0 10px !important;
    }

    .atp-registration-banner {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    .atp-register-btn {
        font-size: 0.95rem !important;
        padding: 8px 20px !important;
    }
}

/* Large mobile devices (576px and down) */
@media (max-width: 576px) {
    body.home {
        background: url('../images/earth.jpg') center center/cover no-repeat !important;
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
        min-height: 100vh !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .atp-property-types {
        gap: 8px;
        margin-bottom: 12px;
        max-width: 100%;
    }

    .atp-type-btn {
        padding: 8px 10px;
        font-size: 0.75rem;
        flex: 0 0 calc(50% - 4px);
        min-width: 0;
        border-radius: 30px;
    }

    .atp-search-input {
        padding: 8px 8px 8px 30px;
        font-size: 0.85rem;
    }

    .atp-search-icon {
        left: 10px;
        font-size: 12px;
    }

    .atp-search-btn {
        padding: 0 15px;
        font-size: 0.9rem;
    }

    .atp-preferred-btn {
        font-size: 0.8rem;
        padding: 8px 10px;
    }

    .atp-cause-statement {
        font-size: 0.7rem;
    }

    html body.home {
        background: url('../images/earth.jpg') center center/cover no-repeat !important;
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
    }

    body.home .hero-section {
        min-height: 30vh !important;
        padding: 0.5rem 0 !important;
    }

    body.home .hero-content {
        padding-top: 0.5rem !important;
        width: 100% !important;
    }

    body.home .main-title {
        font-size: 1.5rem !important;
        text-align: center !important;
        margin-bottom: 0.8rem !important;
        padding: 0 10px !important;
        line-height: 1.2 !important;
    }

    body.home .subtitle {
        font-size: 0.9rem !important;
        text-align: center !important;
        margin-bottom: 1.2rem !important;
        padding: 0 15px !important;
        line-height: 1.3 !important;
    }

    body.home .search-container {
        padding: 10px !important;
        margin: 0 8px !important;
        border-radius: 0 !important;
    }

    body.home .property-tabs {
        padding: 0 !important;
        border-radius: 0 !important;
        margin-bottom: 0.8rem !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    body.home .property-tabs .nav-item {
        flex: 0 1 auto !important;
        margin-bottom: 6px !important;
    }

    body.home .property-tabs .nav-link {
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
        text-align: center !important;
        background: rgba(255, 255, 255, 0.85) !important;
        border-radius: 20px !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15) !important;
        transition: all 0.3s ease !important;
        transform: translateY(0) !important;
        backdrop-filter: blur(5px) !important;
    }

    body.home .property-tabs .nav-link:hover {
        background: rgba(255, 255, 255, 0.95) !important;
        transform: translateY(-3px) !important;
        box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25) !important;
    }

    body.home .property-tabs .nav-link.active {
        background: linear-gradient(135deg, #ff4d58, #d1394e) !important;
        color: white !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
    }

    body.home .property-tabs .nav-link i {
        display: block !important;
        margin-bottom: 4px !important;
        margin-right: 0 !important;
        font-size: 1rem !important;
    }

    body.home .search-input {
        font-size: 0.9rem !important;
        padding: 10px 15px !important;
        border-radius: 20px !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        background: rgba(255, 255, 255, 0.9) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    body.home .search-btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        border-radius: 20px !important;
        background: linear-gradient(135deg, #ff4d58, #d1394e) !important;
        border: none !important;
        box-shadow: 0 4px 10px rgba(209, 57, 78, 0.3) !important;
        transition: all 0.3s ease !important;
        transform: translateY(0) !important;
    }

    body.home .search-btn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 12px rgba(209, 57, 78, 0.4) !important;
        background: linear-gradient(135deg, #ff5d68, #e1495e) !important;
    }

    body.home .location-btn {
        padding: 8px 15px !important;
        font-size: 0.8rem !important;
        margin-top: 0.8rem !important;
        border-radius: 20px !important;
        background: rgba(0, 0, 0, 0.6) !important;
        color: white !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        backdrop-filter: blur(5px) !important;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2) !important;
        transition: all 0.3s ease !important;
    }

    body.home .location-btn:hover {
        background: rgba(0, 0, 0, 0.7) !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
    }

    body.home .cause-banner {
        padding: 12px !important;
        margin: 0.8rem 8px !important;
        border-radius: 8px !important;
    }

    body.home .cause-text {
        font-size: 0.8rem !important;
        margin-bottom: 0.8rem !important;
        line-height: 1.3 !important;
    }

    body.home .details-btn {
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
    }

    body.home .stats-card {
        margin-top: 0.8rem !important;
        padding: 0.8rem !important;
        font-size: 0.9rem !important;
    }

    body.home .stats-title {
        font-size: 0.85rem !important;
    }

    body.home .stats-number {
        font-size: 1.5rem !important;
    }

    .navigation-cards {
        padding: 15px 0;
    }

    .nav-card {
        height: 85px;
        padding: 6px 4px;
        margin-bottom: 6px;
    }

    .card-icon {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }

    .card-content h6 {
        font-size: 0.7rem;
        line-height: 1.0;
    }

    .card-content small {
        font-size: 0.6rem;
    }

    .banner-title {
        font-size: 1.4rem;
        padding: 0 15px;
    }

    .carousel-category-selector {
        padding: 0.5rem 0;
        margin-bottom: 1rem !important;
    }

    .category-buttons {
        gap: 4px !important;
        padding: 4px;
        flex-wrap: wrap;
        justify-content: center !important;
        margin: 0 8px;
    }

    .category-btn {
        min-width: 75px;
        padding: 8px 12px;
        flex: 1 1 calc(33.333% - 3px);
        max-width: calc(33.333% - 3px);
        margin-bottom: 4px;
        min-height: 36px;
        border-radius: 7px;
    }

    .category-btn span {
        font-size: 0.75rem;
        line-height: 1.1;
        letter-spacing: 0.05px;
        font-weight: 600;
    }

    .atp-registration-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
        padding: 0 15px !important;
    }

    .atp-register-btn {
        font-size: 0.9rem !important;
        padding: 8px 18px !important;
    }
}

/* Small mobile devices (480px and down) */
@media (max-width: 480px) {
    body.home {
        background: url('../images/earth.jpg') center center/cover no-repeat !important;
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
        min-height: 100vh !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    html body.home {
        background: url('../images/earth.jpg') center center/cover no-repeat !important;
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
    }

    body.home .hero-section {
        min-height: 25vh !important;
        padding: 0.3rem 0 !important;
    }

    body.home .main-title {
        font-size: 1.3rem !important;
        margin-bottom: 0.6rem !important;
        padding: 0 8px !important;
    }

    body.home .subtitle {
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
        padding: 0 12px !important;
    }

    body.home .search-container {
        padding: 10px !important;
        margin: 0 8px !important;
    }

    body.home .property-tabs .nav-item {
        flex: 1 1 calc(33.333% - 3px) !important;
    }

    body.home .property-tabs .nav-link {
        padding: 5px 6px !important;
        font-size: 0.7rem !important;
    }

    body.home .cause-banner {
        padding: 10px !important;
        margin: 0.6rem 6px !important;
    }

    body.home .cause-text {
        font-size: 0.75rem !important;
    }

    body.home .stats-card {
        padding: 0.6rem !important;
        font-size: 0.85rem !important;
    }

    .carousel-category-selector {
        padding: 0.4rem 0;
    }

    .category-buttons {
        gap: 3px !important;
        padding: 3px;
        margin: 0 6px;
    }

    .category-btn {
        min-width: 70px;
        padding: 7px 10px;
        flex: 1 1 calc(50% - 1.5px);
        max-width: calc(50% - 1.5px);
        border-radius: 6px;
        min-height: 34px;
    }

    .category-btn span {
        font-size: 0.7rem;
        font-weight: 600;
        line-height: 1;
    }

    .atp-registration-title {
        font-size: 1rem !important;
        padding: 0 10px !important;
    }

    .atp-register-btn {
        font-size: 0.85rem !important;
        padding: 7px 16px !important;
    }
}

/* Extra small mobile devices (360px and down) */
@media (max-width: 360px) {
    body.home {
        background: url('../images/earth.jpg') center center/cover no-repeat !important;
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
        min-height: 100vh !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    html body.home {
        background: url('../images/earth.jpg') center center/cover no-repeat !important;
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
    }

    body.home .hero-section {
        min-height: 22vh !important;
    }

    body.home .main-title {
        font-size: 1.2rem !important;
        padding: 0 6px !important;
    }

    body.home .subtitle {
        font-size: 0.8rem !important;
        padding: 0 10px !important;
    }

    body.home .search-container {
        padding: 8px !important;
        margin: 0 6px !important;
    }

    body.home .property-tabs .nav-link {
        padding: 5px 10px !important;
        font-size: 0.65rem !important;
        border-radius: 15px !important;
    }

    body.home .property-tabs .nav-link i {
        font-size: 0.85rem !important;
        margin-bottom: 2px !important;
    }

    body.home .cause-banner {
        padding: 8px !important;
        margin: 0.5rem 5px !important;
    }

    body.home .cause-text {
        font-size: 0.7rem !important;
    }

    .carousel-category-selector {
        padding: 0.3rem 0;
    }

    .category-buttons {
        gap: 2px !important;
        padding: 2px;
        margin: 0 5px;
    }

    .category-btn {
        min-width: 60px;
        padding: 6px 8px;
        font-size: 0.65rem;
        flex: 1 1 calc(50% - 1px);
        max-width: calc(50% - 1px);
        min-height: 32px;
        border-radius: 5px;
    }

    .category-btn span {
        font-size: 0.65rem;
        font-weight: 600;
        letter-spacing: 0;
        line-height: 0.9;
    }
}

/* Touch-friendly enhancements */
@media (max-width: 768px) {
    body.home .property-tabs .nav-link:active {
        transform: scale(0.95) !important;
        transition: transform 0.1s ease !important;
    }

    body.home .search-btn:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease !important;
    }

    body.home .location-btn:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease !important;
    }

    body.home .details-btn:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease !important;
    }

    .category-btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        cursor: pointer;
    }

    .category-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }

    .category-btn.active:active {
        transform: scale(0.95);
    }
}

/* Landscape orientation adjustments - Enhanced mobile background responsiveness */
@media (max-width: 768px) and (orientation: landscape) {
    body.home {
        background: url('../images/earth.jpg') center center/cover no-repeat !important;
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
        min-height: 100vh !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    html body.home {
        background: url('../images/earth.jpg') center center/cover no-repeat !important;
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
    }

    body.home .hero-section {
        min-height: 50vh !important;
        padding: 1rem 0 !important;
    }

    body.home .main-title {
        font-size: 1.6rem !important;
    }

    body.home .subtitle {
        font-size: 0.9rem !important;
    }

    body.home .search-container {
        padding: 12px !important;
    }

    body.home .property-tabs .nav-item {
        flex: 0 0 auto !important;
    }

    body.home .property-tabs .nav-link {
        padding: 6px 12px !important;
        font-size: 0.7rem !important;
    }

    body.home .search-input-group {
        flex-direction: row !important;
        gap: 10px !important;
        align-items: center !important;
    }

    body.home .search-btn {
        width: auto !important;
        min-width: 100px !important;
    }

    body.home .location-btn {
        margin-top: 0 !important;
        margin-left: 8px !important;
    }

    .category-btn {
        padding: 6px 12px;
        flex: 1 1 calc(16.666% - 3px);
        max-width: calc(16.666% - 3px);
        min-width: 65px;
        font-size: 0.75rem;
    }

    .category-btn span {
        font-size: 0.75rem;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
    body.home .property-tabs .nav-link:focus {
        outline: 2px solid #007bff !important;
        outline-offset: 2px !important;
    }

    body.home .search-btn:focus,
    body.home .location-btn:focus,
    body.home .details-btn:focus {
        outline: 2px solid #007bff !important;
        outline-offset: 2px !important;
    }

    .category-btn:focus {
        outline: 2px solid #007bff;
        outline-offset: 2px;
        box-shadow:
            0 0 0 3px rgba(0, 123, 255, 0.25),
            0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .category-btn:focus:not(.active) {
        border-color: rgba(0, 123, 255, 0.5);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .category-btn {
        border: 2px solid #000;
        background: #fff;
    }

    .category-btn.active {
        background: #000;
        color: #fff;
    }
}

/* =======================
   Responsive fixes: stat card
   ======================= */
@media (max-width: 480px) {
    .atp-stats-container {
        padding: 6px 10px !important;
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .atp-stats-table {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 6px auto !important;
        padding: 10px !important;
    }

    .atp-stats-badge-wrapper {
        width: 100% !important;
        text-align: center !important;
        margin: 6px 0 !important;
    }

    .atp-stats-badge {
        margin: 0 auto !important;
        display: inline-block !important;
        min-width: 44px !important;
        padding: 4px 10px !important;
    }

    .atp-stats-row {
        display: flex !important;
        justify-content: space-between !important;
        gap: 8px !important;
        padding: 6px 0 !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }

    .atp-stats-number {
        min-width: 48px !important;
        text-align: right !important;
        font-size: 0.9rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .atp-stats-label {
        flex: 1 1 auto !important;
        padding-right: 8px !important;
        font-size: 0.92rem !important;
        text-align: left !important;
        word-break: break-word !important;
    }

    .atp-stats-header,
    .atp-comparison {
        text-align: center !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 360px) {
    .atp-stats-table {
        padding: 8px !important;
        width: calc(100% - 16px) !important;
    }

    .atp-stats-number {
        min-width: 42px !important;
        font-size: 0.78rem !important;
    }

    .atp-stats-label {
        font-size: 0.82rem !important;
    }
}

/* Multi-property carousel view styles */

.property-display-grid {
    width: 100%;
    margin: 0 auto;
}

.property-slide {
    margin: 0 5px;
    transition: all 0.3s ease;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.property-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 280px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-image-container:hover .property-image {
    transform: scale(1.05);
}

.property-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4) 60%, transparent);
    padding: 20px 15px;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.property-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-location {
    font-size: 0.85rem;
    margin-bottom: 8px;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.beds-baths {
    font-size: 0.8rem;
    opacity: 0.9;
}

.btn-view {
    background: linear-gradient(135deg, #a51c36 0%, #7c1427 100%);
    color: #fff;
    border: none;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-view:hover {
    background: linear-gradient(135deg, #7c1427 0%, #a51c36 100%);
    transform: translateY(-2px);
    color: #fff;
}

/* Category Buttons */
.category-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.category-btn {
    padding: 8px 15px;
    margin: 0 5px 10px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.category-btn.active {
    background: linear-gradient(135deg, #a51c36 0%, #7c1427 100%);
    color: #fff;
}

/* Slick Carousel Customization */
.slick-prev,
.slick-next {
    z-index: 10;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.slick-prev:before,
.slick-next:before {
    display: none;
    /* Hide default Slick arrows */
}

.slick-prev i,
.slick-next i {
    color: #fff;
    /* White Font Awesome icons */
    font-size: 20px;
}

.slick-prev:hover,
.slick-prev:focus,
.slick-next:hover,
.slick-next:focus {
    outline: none;
    background: var(--primary-color-dark) !important;
}

.home-property-slider {
    padding: 0 60px;
    /* creates space for arrows */
}


.home-property-slider .slick-prev {
    left: 10px;
}

.home-property-slider .slick-next {
    right: 10px;
}



.slick-prev {
    left: 0px;
}

.slick-next {
    right: 0px;
}

.slick-slide {
    padding: 10px;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Slide Indicators */
.slide-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: #a51c36;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .property-title {
        font-size: 1rem;
    }

    .price {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .property-image-container {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .property-image-container {
        height: 220px;
    }

    .property-title {
        font-size: 0.95rem;
    }

    .property-details {
        flex-direction: column;
        align-items: flex-start;
    }

    .price {
        margin-bottom: 5px;
    }

    .slick-prev {
        left: -15px;
    }

    .slick-next {
        right: -15px;
    }
}

@media (max-width: 576px) {
    .property-image-container {
        height: 200px;
    }

    .slick-prev,
    .slick-next {
        width: 30px;
        height: 30px;
    }
}

/**
 * ATP Theme - Header Styles
 * This file contains all header-related styles for the ATP WordPress theme.
 */

/* --------------------------------------------------------
 * 1. Main Header Layout
 * -------------------------------------------------------- */
.atp-header-bg,
.header-bg {
    background: url('../images/earth.jpg') center top/cover no-repeat;
    min-height: 120px;
    width: 100%;
    position: relative;
    padding: 0;
    margin-bottom: 0;
}

/* --------------------------------------------------------
 * 2. Header Components
 * -------------------------------------------------------- */
.atp-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 36px 12px 36px;
}

.atp-header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.atp-logo-img {
    height: 80px;
    margin-bottom: 2px;
}

.atp-logo-audit {
    font-size: 1.1rem;
    font-style: italic;
    color: #e0e0e0;
    margin-top: 2px;
    margin-bottom: 6px;
}

.atp-header-title {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: #fff;
    margin-top: 6px;
}

.atp-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 420px;
}

.atp-header-toprow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

/* --------------------------------------------------------
 * 3. Navigation Styles
 * -------------------------------------------------------- */
.atp-btn {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 6px;
    padding: 6px 22px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-left: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.atp-btn:hover {
    background: #fff;
    color: #1e3c5a;
}

.atp-menu {
    font-size: 1.3rem;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.atp-menu-icon {
    font-size: 1.5rem;
    margin-left: 4px;
}

/* --------------------------------------------------------
 * 5. Flag Icons & Country Selector
 * -------------------------------------------------------- */
.atp-country-select {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.atp-country-label {
    font-size: 1.1rem;
    color: #fff;
    margin-right: 6px;
}

.atp-flags {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.atp-flags img {
    width: 36px;
    height: 24px;
    margin-right: 3px;
    border-radius: 2px;
    border: 1px solid #ccc;
    background: #fff;
}

/* --------------------------------------------------------
 * 7. Responsive Adaptations
 * -------------------------------------------------------- */
@media (max-width: 768px) {
    .atp-flags {
        flex-wrap: wrap;
        gap: 4px;
        padding: 3px;
    }

    .atp-flags img {
        width: 28px;
        height: 18px;
    }
}

@media (max-width: 576px) {
    .atp-flags img {
        width: 24px;
        height: 16px;
    }
}

.atp-header-register-link {
    font-size: 1.1rem;
    color: #fff;
    margin-top: 2px;
}

.atp-header-register-link a {
    color: #ffd700;
    text-decoration: underline;
    font-weight: 600;
}

/* Enhanced header background with overlay gradient */
.header-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/earth.jpg') center top/cover no-repeat;
    padding-top: 10px;
}

/* Text shadow for better readability on background images */
.text-shadow {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Logo sizing */
.logo-container img {
    height: 5rem;
}

/* Reduce spacing around logo */
.navbar-brand {
    margin-right: 0.25rem !important;
    padding-right: 0 !important;
}

.logo-container {
    margin-right: 0.25rem !important;
}

.logo-container img {
    margin-right: 0.25rem !important;
}

.flag-icon {
    width: 28px;
    height: auto;
    margin-right: 5px;
    transition: all 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    filter: saturate(1.1);
}

.flag-icon:hover {
    transform: scale(1.15) translateY(-2px);
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    filter: saturate(1.3) brightness(1.05);
}

/* Active/selected state for flags */
.flag-icon:active {
    transform: scale(0.65);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease;
}

.main-title {
    font-size: 1.25rem;
    letter-spacing: 1px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 1rem;
    }

    .flag-icon {
        width: 22px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    }

    .logo-container img {
        height: 36px;
        margin-bottom: 0 !important;
    }

    /* Reduce logo spacing on mobile */
    .navbar-brand {
        margin-right: 0.125rem !important;
        padding-right: 0 !important;
        margin-bottom: 0 !important;
    }

    .logo-container {
        margin-right: 0.125rem !important;
        margin-bottom: 0 !important;
    }

    .logo-container img {
        margin-right: 0.125rem !important;
        margin-bottom: 0 !important;
    }
}

/* Responsive styles for medium devices (tablets) */
@media (max-width: 991px) {
    .header-bg {
        min-height: 110px;
    }

    .main-title {
        margin-bottom: 0.5rem !important;
    }
}

@media (max-width: 768px) {
    .header-bg {
        min-height: 100px;
        background-position: center top;
        background-size: cover;
        padding-top: 5px !important;
        padding-bottom: 0 !important;
    }

    .navbar {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }

    .main-title {
        font-size: 1rem !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 576px) {
    .header-bg {
        min-height: 80px;
        padding-bottom: 0;
    }

    .row.py-3 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .main-title {
        font-size: 0.9rem !important;
        letter-spacing: 0.5px;
    }
}

/* --------------------------------------------------------
 * 6. Utility Components
 * -------------------------------------------------------- */
/* White box with transparency for overlaying content */
.white-transparent-box,
.atp-white-box {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    position: relative;
    z-index: 100;
}

/* Flag container */
.atp-flags {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px;
    border-radius: 8px;
}

/* Flag icon styling */
.flag-icon {
    height: 16px;
    width: auto;
    display: block;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    filter: saturate(1.2);
    transition: all 0.3s ease;
}

/* SVG-specific flag adjustments */
.flag-icon[src$=".svg"] {
    background-color: transparent;
}

/* --------------------------------------------------------
 * 4. User Authentication Buttons
 * -------------------------------------------------------- */
/* Header button base styles */
header.header-bg .btn {
    font-weight: 600;
    border-radius: .25rem;
}

/* Light outline button styles */
header.header-bg .btn.btn-outline-light {
    background: #494e53;
    color: #fff;
    border-color: rgba(255, 255, 255, .7);
}

/* Light outline button hover/focus states */
header.header-bg .btn.btn-outline-light:hover,
header.header-bg .btn.btn-outline-light:focus {
    background: #494e53 rgba();
    color: #fff;
    border-color: rgba(255, 255, 255, .9);
    box-shadow: none;
}

/*
 * All The Properties Footer Styles
 * Organized using component-based architecture for better maintainability
 */

/* ============================
   1. BASE FOOTER STYLES
   ============================ */
body footer.footer-modern {
    background-color: #222 !important;
    color: #fff !important;
    padding-top: 2rem !important;
    padding-bottom: 0 !important;
    position: relative !important;
    z-index: 100 !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

footer.footer-modern .container-fluid {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

footer.footer-modern .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
    margin-bottom: 2rem !important;
}

footer.footer-modern .footer-column {
    position: relative !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex: 0 0 auto !important;
    margin-bottom: 0.75rem !important;
}

footer.footer-modern .footer-column .fw-bold {
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    margin-bottom: 0.75rem !important;
    color: #fff !important;
    display: block !important;
}

/* ============================
   2. FOOTER LOGO & BRANDING
   ============================ */
footer.footer-modern .footer-logo-link {
    display: block !important;
    margin-bottom: 1.5rem !important;
    text-decoration: none !important;
}

footer.footer-modern .footer-logo {
    max-width: 200px !important;
    height: auto !important;
}

/* ============================
   3. CONTACT & SOCIAL MEDIA
   ============================ */
/* Email contact section */
footer.footer-modern .email-section-compact {
    margin-bottom: 1.5rem !important;
}

footer.footer-modern .email-heading {
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.75rem !important;
    color: #fff !important;
    padding-bottom: 5px !important;
    position: relative !important;
}

footer.footer-modern .email-heading:after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 30px !important;
    height: 2px !important;
    background-color: #B91C43 !important;
}

footer.footer-modern .email-links-inline a {
    display: block !important;
    color: #f8f9fa !important;
    margin-bottom: 0.5rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-size: 0.875rem !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    position: relative !important;
    overflow: hidden !important;
}

footer.footer-modern .email-links-inline a:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    padding-left: 15px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

footer.footer-modern .email-links-inline a:before {
    content: "";
    position: absolute !important;
    left: -100% !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent) !important;
    transition: left 0.7s !important;
}

footer.footer-modern .email-links-inline a:hover:before {
    left: 100% !important;
}

footer.footer-modern .email-links-inline a i {
    margin-right: 6px !important;
    transition: all 0.3s ease !important;
}

footer.footer-modern .email-links-inline a:hover i {
    color: #B91C43 !important;
    transform: scale(1.2) !important;
}

/* Social media links */
footer.footer-modern .social-section {
    margin-top: 1.5rem !important;
}

footer.footer-modern .social-heading {
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.75rem !important;
    color: #fff !important;
}

footer.footer-modern .social-links {
    display: flex !important;
    gap: 0.75rem !important;
}

footer.footer-modern .social-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    color: #fff !important;
    transition: all 0.3s ease !important;
}

/* ============================
   4. FOOTER NAVIGATION LINKS
   ============================ */
footer.footer-modern .footer-link {
    display: inline-block !important;
    width: 100% !important;
    padding: 0.25rem 0.5rem !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 4px !important;
    color: #f8f9fa !important;
    text-decoration: none !important;
    margin-bottom: 0.25rem !important;
    transition: all 0.3s ease !important;
    font-size: 0.875rem !important;
    text-align: left !important;
    position: relative !important;
    padding-left: 0.75rem !important;
}

footer.footer-modern .footer-link::before {
    content: "\203A" !important;
    /* › right-pointing single angle quote */
    position: absolute !important;
    left: 0.4rem !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
}

footer.footer-modern .footer-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border: none !important;
    text-decoration: none !important;
    transform: translateX(5px) !important;
    padding-left: 1.2rem !important;
}

footer.footer-modern .footer-link:hover::before {
    opacity: 1 !important;
    left: 0.6rem !important;
}

/* ============================
   5. NEWSLETTER FORM
   ============================ */
footer.footer-modern .newsletter-form {
    margin-top: 1.5rem !important;
}

footer.footer-modern .input-group {
    display: flex !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}

footer.footer-modern .input-group .form-control {
    flex: 1 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    padding: 0.5rem 0.75rem !important;
    height: auto !important;
}

footer.footer-modern .input-group .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

footer.footer-modern .input-group .btn-accent {
    background-color: var(--primary-color, #B91C43) !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    margin: 0 !important;
}

.newsletter-container {
    max-width: 100%;
    width: 100%;
}

.newsletter-input-group {
    display: flex;
    flex-wrap: nowrap;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
}

.newsletter-input {
    border-radius: 50px 0 0 50px;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.95);
    flex-grow: 1;
    min-width: 0;
    /* Prevents flex item from overflowing */
    width: calc(100% - 50px);
    /* Accounts for button width */
}

.newsletter-btn {
    background-color: #B91C43;
    color: white;
    border: none;
    border-radius: 0 50px 50px 0;
    min-width: 50px;
    width: 50px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.newsletter-btn:hover {
    background-color: #a01939;
    transform: translateX(2px);
}

.newsletter-btn i {
    font-size: 16px;
}

/* ============================
   6. COPYRIGHT SECTION
   ============================ */
footer.footer-modern .copyright {
    background-color: rgba(0, 0, 0, 0.2) !important;
    padding: 0 !important;
    margin-top: 1rem !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    min-height: 40px !important;
    max-height: 60px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    -webkit-box-sizing: border-box !important;
    -moz-box-sizing: border-box !important;
}

footer.footer-modern .copyright .row {
    height: 100% !important;
    margin-bottom: 0 !important;
}

footer.footer-modern .copyright * {
    box-sizing: border-box !important;
}

footer.footer-modern .copyright p {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.75rem !important;
    margin: 0 !important;
    line-height: 1 !important;
}

footer.footer-modern .footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    margin-left: 0.75rem !important;
    font-size: 0.875rem !important;
    line-height: 1 !important;
    transition: color 0.2s ease !important;
}

footer.footer-modern .footer-bottom-links a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* ============================
   7. LOCATION PREFERENCE MODAL
   ============================ */
/* Modal structure */
.location-modal-dialog {
    max-width: 700px;
    width: 98vw;
    margin: 1.2rem auto !important;
}

.location-modal-content {
    min-height: auto;
    background-color: #fff !important;
    border-radius: 1.2rem !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13) !important;
    padding: 0 !important;
}

.location-modal-body {
    padding-bottom: 0.5rem !important;
}

/* Modal elements */
.location-modal-text {
    font-size: 1.05rem;
    color: #333 !important;
    margin-bottom: 0.5rem !important;
}

.custom-close-icon-style {
    font-size: 1.5rem;
    color: #B91C43;
    cursor: pointer;
    z-index: 1052 !important;
    transition: color 0.2s !important;
}

.custom-close-icon-style:hover {
    color: #7a122c !important;
}

body #preferredLocationModal .modal-title {
    font-size: 1.35rem !important;
    color: #B91C43 !important;
    letter-spacing: 0.2px !important;
}

body #preferredLocationModal input.form-control {
    padding: 0.7rem 0.9rem !important;
    font-size: 1.08rem !important;
    border-radius: 0.7rem !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

body #preferredLocationModal .btn-danger {
    background-color: #B91C43 !important;
    border: none !important;
    font-size: 0.98rem !important;
    border-radius: 0.7rem !important;
    font-weight: 600 !important;
    padding: 0.5rem 0 !important;
    box-shadow: 0 1px 4px rgba(185, 28, 67, 0.07) !important;
}

/* ============================
   8. PROPERTY FILTER MODAL
   ============================ */
.property-filter-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6 !important;
    padding: 1.5rem 2rem 1rem !important;
    position: relative !important;
}

body #propertyFilterModal .modal-content {
    border-radius: 1.2rem !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13) !important;
    border: none !important;
    overflow: hidden !important;


}

body #propertyFilterModal .modal-title {
    font-size: 1.25rem !important;
    color: #B91C43 !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

/* ============================
   9. RESPONSIVE STYLES
   ============================ */
/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    /* No specific styles needed yet */
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    footer.footer-modern .footer-column {
        margin-bottom: 2rem !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .newsletter-container {
        width: 100%;
    }

    .newsletter-input-group {
        width: 100%;
    }

    #newsletter-form {
        width: 100%;
    }
}

/* Small devices (mobile, less than 768px) */
@media (max-width: 767.98px) {
    footer.footer-modern .footer-column {
        margin-bottom: 1.5rem !important;
    }

    footer.footer-modern .copyright {
        height: 60px !important;
    }

    footer.footer-modern .copyright .text-md-start {
        text-align: center !important;
    }

    footer.footer-modern .copyright .text-md-end {
        text-align: center !important;
        margin-top: 0.5rem !important;
    }

    footer.footer-modern .footer-bottom-links a {
        margin: 0 0.5rem !important;
        display: inline-block !important;
        line-height: 1.5 !important;
    }

    .newsletter-input-group {
        width: 100%;
    }

    .newsletter-input {
        font-size: 16px;
        height: 42px;
        padding: 8px 12px;
    }

    .newsletter-btn {
        width: 45px;
        height: 42px;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 576px) {
    body #preferredLocationModal .modal-dialog {
        max-width: 98vw !important;
        margin: 0.5rem !important;
    }

    body #preferredLocationModal .modal-content {
        border-radius: 0.8rem !important;
        padding: 0.3rem !important;
    }

    body #preferredLocationModal .modal-title {
        font-size: 1.05rem !important;
    }

    body #preferredLocationModal input.form-control {
        font-size: 0.98rem !important;
        padding: 0.5rem 0.6rem !important;
    }

    /* Small mobile copyright adjustments */
    footer.footer-modern .copyright {
        height: 60px !important;
        padding: 0.25rem 0 !important;
    }

    /* Adjust spacing on very small screens */
    footer.footer-modern .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}


.atp-container-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.atp-main-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .about-page .atp-main-container {
        grid-template-columns: 1fr;
    }
}

.atp-left-content {
    flex: 2;
    padding: 20px 15px 30px;
    border: none;
    box-shadow: none;
    background: var(--ab-bg) !important;
}

.atp-right-sidebar {
    width: 360px;
    max-width: 100%;
    padding: 20px 15px;
    border-left: 1px solid var(--ab-border) !important;
    background: var(--ab-bg) !important;
}

.full-width-container {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--ab-bg) !important;
}

.atp-technical-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 15px;
    background: var(--ab-surface) !important;
    color: var(--ab-text) !important;
    border: none;
}

.free-property-selling-widget {
    background: var(--ab-surface);
    border: 1px solid var(--ab-border);
    border-radius: 10px;
}

.atp-graph-reference {
    background: var(--ab-surface) !important;
    color: var(--ab-text) !important;
    border: 1px solid var(--ab-border) !important;
    border-radius: 10px;
    box-shadow: var(--ab-shadow);
}

.atp-mobile-popup-download {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    background: #f8f9fa;
    padding: 15px 20px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: block;
    transition: transform 0.3s ease;
}

.atp-mobile-popup-download.hidden {
    transform: translateY(-100%);
}

.popup-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    gap: 15px;
}

.popup-content p {
    margin: 0;
    font-size: 14px;
    flex: 1;
}

.popup-content img {
    width: 50px;
    height: 50px;
}

.popup-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    color: #333;
    width: 30px;
    height: 30px;
    display: flex;
    padding-bottom: 5px;
    align-items: center;
    justify-content: center;
}

/* Add padding to body to prevent content from being hidden under popup */
body.popup-active {
    padding-top: 70px;
}


.atp-download-btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 12px;
}


.text-brand {
    color: var(--primary-color) !important;
}