/********** Template CSS **********/
:root {
    --bs-primary: #36454f !important; /* Charcoal - sophisticated real estate color */
    --bs-primary-rgb: 54, 69, 79 !important;
    --bs-gold: #D4AF37 !important;
    --bs-bronze: #CD7F32 !important;
    --bs-light-gray: #f5f5f5 !important;
}

/* Force override Bootstrap primary color */
.btn-primary {
    background-color: #CD7F32 !important;
    border-color: #CD7F32 !important;
}

.btn-primary:hover {
    background-color: #CD7F32 !important;
    border-color: #CD7F32 !important;
}

.text-primary {
    color: #CD7F32 !important;
}

.bg-primary {
    background-color: #d89b009f !important;
}
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/* Mobile top info bar styling */
@media (max-width: 991.98px) {
    .top-info-bar {
        display: none !important;
    }
}

/* Responsive improvements */
@media (max-width: 991.98px) {
    .back-to-top {
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 575.98px) {
    .back-to-top {
        right: 10px !important;
        bottom: 20px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
        padding: 0 !important;
    }
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover,
.btn.btn-dark,
.btn.btn-outline-dark:hover {
    color: var(--bs-white);
    font-weight: 500;
}

.btn.btn-primary:hover {
    background: var(--bs-dark);
    border-color: var(--bs-dark);
}

.btn.btn-dark:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    transform: translateY(0);
    transition: transform .4s ease, background-color .4s ease, box-shadow .4s ease;
    background-color: #fff !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.navbar.nav-hidden {
    transform: translateY(-120%);
}

.navbar .navbar-brand img {
    max-height: 60px;
}

.navbar .navbar-nav .nav-link {
    margin: 0 12px;
    padding: 10px 0;
    color: #111 !important;
    font-size: 17px;
    font-weight: 600;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: color .25s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #b76b11 !important;
}

.property-thumb {
    min-height: 210px;
    position: relative;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

.property-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.35));
}

.property-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    background: rgba(255,255,255,0.95);
    color: #212529;
    padding: 0.55rem 1rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.navbar .navbar-nav .dropdown-menu {
    border-radius: 0.9rem;
    box-shadow: 0 20px 60px rgba(30, 40, 93, 0.12);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar .navbar-nav .dropdown-item:hover,
.navbar .navbar-nav .dropdown-item.active {
    background: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar {
        background: linear-gradient(180deg, #D4AF37 0%, #D4AF37 45%, #7a0c0c 55%, #7a0c0c 100%) !important;
        background-size: 100% 100%;
        border-bottom: none;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        padding: 0.75rem 1rem !important;
    }

    .navbar .container-fluid {
        padding: 0 !important;
    }

    .navbar .navbar-brand img {
        max-height: 70px;
        filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
    }

    .navbar .navbar-nav {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .navbar .navbar-nav .nav-link {
        margin: 8px 0;
        padding: 12px 15px;
        font-size: 16px;
        color: #fff !important;
        font-weight: 600;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
    }

    .navbar .navbar-nav .nav-link:hover {
        background: rgba(255,255,255,0.1);
        border-radius: 0.4rem;
        padding-left: 18px;
    }

    .navbar-brand-center {
        display: none !important;
    }

    .top-info-bar {
        font-size: 0.85rem;
    }

    .top-info-bar .container-fluid {
        padding: 0.5rem 1rem;
    }

    .navbar .nav-item .dropdown-menu {
        padding-left: 30px;
    }
    
    .navbar-toggler {
        background-color: #7a0c0c !important;
        border-color: #7a0c0c !important;
        border-radius: 0.5rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        transition: all 0.3s ease;
    }

    .navbar-toggler:hover {
        background-color: #5a0a09 !important;
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .offcanvas.offcanvas-end {
        background: linear-gradient(180deg, #D4AF37 0%, #D4AF37 45%, #7a0c0c 55%, #7a0c0c 100%) !important;
        background-size: 100% 100%;
        color: #fff;
        box-shadow: -4px 0 16px rgba(0,0,0,0.2);
    }

    .offcanvas-header {
        background: transparent;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        padding: 1.25rem;
    }

    .offcanvas-header .btn-close {
        background: rgba(255,255,255,0.8);
        opacity: 1;
    }

    .offcanvas-header .btn-close:hover {
        background: #fff;
    }

    .offcanvas-body {
        background: transparent;
        padding: 1rem 0 !important;
    }

    .offcanvas-footer {
        background: transparent;
        border-top: 1px solid rgba(255,255,255,0.15);
        padding: 1.25rem;
    }

    .offcanvas .nav-link,
    .offcanvas .submenu-link,
    .offcanvas .submenu-btn {
        color: #fff !important;
        background: transparent;
        border-bottom-color: rgba(255,255,255,0.1);
        padding: 14px 1.5rem !important;
        font-weight: 500;
        letter-spacing: 0.3px;
        transition: all 0.25s ease;
    }

    .offcanvas .nav-link:hover,
    .offcanvas .submenu-link:hover,
    .offcanvas .submenu-btn:hover {
        color: #fff !important;
        background: rgba(255,255,255,0.15);
        padding-left: 1.75rem !important;
    }

    .submenu-icon {
        background: rgba(255,255,255,0.25);
        color: #fff;
        border-radius: 0.3rem;
    }

    .submenu-icon:hover {
        background: rgba(255,255,255,0.35);
    }
}

@media (max-width: 575.98px) {
    .navbar {
        background-color: white !important;
    }
    
    .navbar .navbar-brand img {
        max-height: 70px;
    }

    .navbar .navbar-nav .nav-link {
        font-size: 15px;
        padding: 10px 12px;
        color: #333 !important;
    }

    .top-info-bar {
        font-size: 0.65rem;
        padding: 0.25rem 0.8rem;
    }

    .top-info-bar .container-fluid {
        padding: 0.25rem 0.8rem;
    }

    .top-info-bar .row {
        flex-direction: row;
        justify-content: flex-end;
        gap: 0.5rem;
    }
    
    .top-info-bar .col-auto:first-child {
        display: none;
    }
    
    .top-info-bar a {
        font-size: 0.6rem;
    }
    
    .navbar-toggler {
        background-color: white !important;
        border-color: #d1d1d1 !important;
        box-shadow: none !important;
        border-radius: 0.55rem;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .hero-header {
        min-height: 500px !important;
    }

    .hero-header .container {
        padding: 1rem;
    }

    .hero-header h1 {
        font-size: 1.8rem !important;
    }

    .hero-header p {
        font-size: 1rem !important;
    }

    .hero-header .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .property-thumb {
        min-height: 180px;
    }

    .property-badge {
        top: 12px;
        right: 12px;
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .card-body {
        padding: 1rem !important;
    }

    .card-body h4,
    .card-body h5 {
        font-size: 1.1rem;
    }

    .card-body p {
        font-size: 0.9rem;
    }

    .display-6 {
        font-size: 1.5rem !important;
    }

    .footer .col-lg-3,
    .footer .col-md-6 {
        margin-bottom: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .container-fluid {
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .btn-group .btn {
        width: auto;
        margin-bottom: 0;
    }

    .d-flex .btn {
        width: auto;
    }

    .table-responsive {
        font-size: 0.85rem;
    }

    .form-control,
    .form-select {
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        right: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.navbar .btn-light {
    font-weight: 500;
    color: var(--bs-secondery);
}

.navbar .btn-light:hover {
    color: var(--bs-white);
    background: var(--bs-primary);
}


/*** Hero ***/
.hero-header {
    background: url(../img/hero.jpg) top right no-repeat;
    background-size: cover;
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--bs-primary);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--bs-primary);
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--bs-primary);
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--bs-white);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: var(--bs-white);
    background: #000000;
    opacity: 1;
}

.page-header {
    background: url(../img/hero.jpg) center right no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-weight: 500;
}

.page-header .breadcrumb-item a,
.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-secondery)
}

.page-header .breadcrumb-item a:hover,
.page-header .breadcrumb-item.active {
    color: var(--bs-primary);
}


/*** Appointment ***/
@media (min-width: 992px) {
    .container.appointment {
        max-width: 100% !important;
    }

    .container.appointment .appointment-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }

    .container.appointment .appointment-form {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .container.appointment .appointment-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }

    .container.appointment .appointment-form  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .container.appointment .appointment-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }

    .container.appointment .appointment-form  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}

.container.appointment .appointment-text {
    background: linear-gradient(rgba(54, 69, 79, .95), rgba(54, 69, 79, .95)), url(../img/service-4.jpg) center center no-repeat;
    background-size: cover;
}

.container.appointment .appointment-form {
    background: linear-gradient(rgba(205, 127, 50, .95), rgba(205, 127, 50, .95)), url(../img/service-1.jpg) center center no-repeat;
    background-size: cover;
}

.container.appointment .appointment-text .h-100,
.container.appointment .appointment-form .h-100 {
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}



/*** Service ***/
.service-item {
    position: relative;
    overflow: hidden;
}

.service-item .service-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item .service-icon img {
    max-width: 60px;
    max-height: 60px;
}

.service-item .service-text {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.service-item .service-img {
    transition: .5s;
}

.service-item:hover .service-img {
    transform: scale(1.2) rotate(7deg);
}



/*** Team ***/
.team {
    position: relative;
}

.team::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 110px;
    left: 0;
    bottom: 3rem;
    background: var(--bs-light);
    z-index: -1;
}

.team .team-item {
    position: relative;
    overflow: hidden;
}

.team .team-item img {
    position: relative;
    transform: scale(1.1);
    transition: .5s;
}

.team .team-item:hover img {
    margin-top: -30px;
    padding-bottom: 30px;
}

.team .team-text {
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team .team-text-overflow {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: -50px;
    opacity: 0;
    transition: .5s;
}

.team .team-item:hover .team-text-overflow {
    bottom: 0;
    opacity: 1;
}



/*** Testimonial ***/
.testimonial-left,
.testimonial-right {
    position: relative;
}

.testimonial-left img,
.testimonial-right img {
    position: absolute;
    animation: pulse-img 5s ease-out infinite;
}

@keyframes pulse-img {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 0;
    }

    50% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 0;
    }
}

.testimonial-left img:nth-child(1),
.testimonial-right img:nth-child(3) {
    width: 70px;
    height: 70px;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-left img:nth-child(2),
.testimonial-right img:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.testimonial-left img:nth-child(3),
.testimonial-right img:nth-child(1) {
    width: 50px;
    height: 50px;
    bottom: 10%;
    right: 10%;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-white);
    background: var(--bs-primary);
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--bs-dark);
}


/*** Footer ***/
.footer {
    color: rgba(256, 256, 256, .6);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(256, 256, 256, .6);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(256, 256, 256, .6);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--bs-light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-square {
    color: rgba(256, 256, 256, .6);
    border: 1px solid rgba(256, 256, 256, .6);
}

.footer .btn.btn-square:hover {
    color: var(--bs-white);
    border-color: var(--bs-primary);
    background: var(--bs-primary);
}

.footer .form-control {
    color: var(--bs-light);
    border-color: rgba(256, 256, 256, .6);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--secondary);
}

.footer .copyright a:hover {
    color: #FFFFFF;
}

/* Offcanvas Menu Styling */
/* ==========================================================
   MOBILE OFFCANVAS MENU
   ========================================================== */

.offcanvas.offcanvas-end{
    width:320px;
    max-width:90%;
    border:none;
    background:#fff;
    z-index: 1060 !important;
}

.offcanvas-backdrop {
    z-index: 1055 !important;
}

/* Header */

.offcanvas-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px;
    border-bottom:1px solid #e9e9e9;
}

.offcanvas-logo{
    height:55px;
    width:auto;
}

.offcanvas .btn-close{
    opacity:1;
    font-size:18px;
}

/* Body */

.offcanvas-body{
    padding:0;
    overflow-y:auto;
    display: block !important;
    visibility: visible !important;
    position: relative;
    min-height: 100%;
}

/* Navigation */

.offcanvas .navbar-nav{
    list-style:none;
    margin:0;
    padding:0;
    display: block !important;
    visibility: visible !important;
}

.offcanvas .nav-item{
    border-bottom:1px solid #ededed;
}

.offcanvas .nav-link{
    display:block !important;
    width:100%;
    padding:18px 25px;
    text-decoration:none;
    color:#222 !important;
    font-size:15px;
    font-weight:500;
    background:#fff;
    transition:.25s;
    position: relative;
    z-index: 1;
}

.offcanvas .nav-link:hover{
    color:#2f9800 !important;
    background:#fafafa;
}

/* Collapse Button */

.submenu-btn{
    display:flex !important;
    justify-content:space-between;
    align-items:center;
    width:100%;
    border:none;
    background:#fff;
    cursor:pointer;
}

/* Green icon */

.submenu-icon{
    width:34px;
    height:34px;
    background:#2f9800;
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:3px;
    transition:.3s;
    flex-shrink:0;
}

.submenu-btn:not(.collapsed) .submenu-icon{
    transform:rotate(180deg);
}

/* Submenu */

.offcanvas .collapse{
    background:#fff;
}

.submenu-link{
    display:block;
    padding:14px 45px !important;
    color:#555 !important;
    font-size:14px;
    border-top:1px solid #f3f3f3;
    background:#fff;
}

.submenu-link:hover{
    color:#2f9800 !important;
    background:#fafafa;
}

/* Social Icons */

.social-icons{
    display:flex;
    justify-content:center;
    gap:15px;
    padding:30px 0;
}

.social-icons a{
    width:42px;
    height:42px;
    border:1px solid #ddd;
    border-radius:4px;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#333;
    text-decoration:none;
    transition:.3s;
}

.social-icons a:hover{
    background:#2f9800;
    color:#fff;
    border-color:#2f9800;
}

/* Footer */

.offcanvas-footer{
    border-top:1px solid #ededed;
    padding:18px;
}

.offcanvas-footer .btn{
    padding:12px;
    font-weight:600;
}

/* Scrollbar */

.offcanvas-body::-webkit-scrollbar{
    width:5px;
}

.offcanvas-body::-webkit-scrollbar-thumb{
    background:#bdbdbd;
    border-radius:10px;
}

/* Mobile */

@media (max-width:576px){

    .offcanvas.offcanvas-end{
        width:320px;
        max-width:88%;
    }

}
/* Ensure Bootstrap modal backdrop covers the full screen */
.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    background-color: rgba(0, 0, 0, 0.55) !important;
    z-index: 1050 !important;
}

.modal-backdrop.fade {
    opacity: 0 !important;
}

.modal-backdrop.show {
    opacity: 0.55 !important;
}
