/* =====================================================================
   Oasis Peakhurst Combined Stylesheet
   - Base + shared styles
   - Site-specific overrides
   ===================================================================== */

/* =====================================================================
   1) Base / global defaults
   ===================================================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 400;
    background-color: #f9f2ee;
}
#wrapper {
    max-width: 1920px;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

header.sticky .header-container {
    background-color: #fff;
}

header.sticky .navbar-nav .nav-link {
    font-size: 1rem;
}

header .navbar-brand {
    padding: 1rem 0;
}

header.sticky .navbar-brand img {
    height: 50px;
}

header.sticky .navbar-brand {
    padding: 0;
}
header {
    z-index: 99999;
}

.page-header {
    position: relative;
}

main.internal {
    margin-top: 145px;
}

.container-max {
    max-width: 1920px;
    margin: 0 auto;
}
.disclaimer h4 {
    font-size: 1.2rem;
}
.disclaimer p {
    font-size: 1rem;
}

.nav-item {
    margin: 0 0.5rem;
}
.nav-item a {
    font-size: 1rem;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1625px;
    }
    .nav-item a {
        font-size: 1.25rem;
    }
}

/* =====================================================================
   2) Shared layout + section utilities
   ===================================================================== */
section {
    padding: 6rem 0;
}

section.section-top,
section.image-block {
    padding: 0;
}

.section-top .item {
    height: 96vh;
    background-size: cover;
    background-position: center center;
}

.top-nav a {
    font-size: 1rem;
}

.sep {
    position: relative;
}

.icon-sep {
    height: 100px;
    width: 100px;
    position: absolute;
    left: 50%;
    margin-left: -50px;
    top: 50%;
    margin-top: -50px;
    z-index: 1;
}

.icon-sep-small {
    height: 80px;
    width: 80px;
    position: absolute;
    left: 50%;
    margin-left: -40px;
    top: 50%;
    margin-top: -40px;
    z-index: 1;
}

.icon-container {
    height: 100px;
    width: 100px;
}

img.icon {
    max-width: 70px;
    max-height: 100%;
}

#map {
    width: 100%;
    height: 450px;
}

/* =====================================================================
   3) Shared media / image-block system
   ===================================================================== */
/**! 27. Image Blocks **/

.img-background {
    background-size: cover;
    background-repeat: no-repeat;
}

.background-image-holder {
    will-change: transform, top;
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    background-size: cover !important;
    background-position: 50% 50% !important;
    z-index: 0;
    transition: 0.3s linear;
    -webkit-transition: 0.3s linear;
    -moz-transition: 0.3s linear;
    opacity: 0;
    background: #232323;
    overflow: hidden;
}

.background-image-holder:hover {
    transform: scale3d(1.1, 1.1, 1);
    transition:
        opacity 1s,
        transform 1s,
        -webkit-transform 1s;
    overflow: hidden;
}

.background-image-holder:not([class*="col-"]) {
    width: 100%;
}

.background-image-holder.background--bottom {
    background-position: 50% 100% !important;
}

.background-image-holder.background--top {
    background-position: 50% 0 !important;
}

.image--light .background-image-holder {
    background: none;
}

.background-image-holder img {
    display: none;
}

[data-overlay] {
    position: relative;
}

[data-overlay]:before {
    position: absolute;
    content: "";
    background: #232323;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

[data-overlay] :not(.container):not(.background-image-holder) {
    z-index: 2;
}

.imageblock {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.imageblock > .container,
.imageblock > div[class*="col-"]:not(.imageblock__content) {
    padding-top: 6.5em;
    padding-bottom: 8.125em;
    float: none;
    overflow: hidden;
}

.imageblock.imageblock--lg > .container,
.imageblock.imageblock--lg > div[class*="col-"]:not(.imageblock__content) {
    padding-top: 10.15625em;
    padding-bottom: 10.15625em;
    float: none;
    overflow: hidden;
}

.imageblock .imageblock__content {
    position: absolute;
    height: 100%;
    top: 0;
    z-index: 2;
    padding: 0;
    overflow: hidden;
}

.imageblock .imageblock__content .slider {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
}

.imageblock .imageblock__content .slider .slides > li {
    padding: 0;
    min-height: 100%;
    position: absolute !important;
}

.imageblock.allow-overflow .imageblock__content {
    overflow: visible;
}

@media all and (max-width: 767px) {
    .imageblock[class*="space-"] {
        padding-bottom: 0;
        padding-top: 0;
    }

    .imageblock .imageblock__content {
        position: relative;
        min-height: 16.25em;
    }

    .imageblock > .container,
    .imageblock > div[class*="col-"]:not(.imageblock__content) {
        padding-top: 4.875em;
        padding-bottom: 4.875em;
        float: none;
        overflow: hidden;
    }

    .imageblock.imageblock--lg > .container,
    .imageblock.imageblock--lg > div[class*="col-"]:not(.imageblock__content) {
        padding-top: 4.875em;
        padding-bottom: 4.875em;
        float: none;
        overflow: hidden;
    }
}

.pos-right {
    right: 0;
}

.pos-left {
    left: 0;
}

/* =====================================================================
   4) Shared navigation interactions
   ===================================================================== */
/* -- menu toggle --*/
#menu-toggle {
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.menu-section.on #menu-toggle:before {
    opacity: 0.3;
}

#menu-toggle.on .one {
    -moz-transform: rotate(45deg) translate(6px, 7px);
    -ms-transform: rotate(45deg) translate(6px, 7px);
    -webkit-transform: rotate(45deg) translate(6px, 7px);
    transform: rotate(45deg) translate(6px, 7px);
    background: #000;
}

#menu-toggle.on .two {
    opacity: 0;
}

#menu-toggle.on .three {
    -moz-transform: rotate(-45deg) translate(8px, -10px);
    -ms-transform: rotate(-45deg) translate(8px, -10px);
    -webkit-transform: rotate(-45deg) translate(8px, -10px);
    transform: rotate(-45deg) translate(8px, -10px);
    background: #000;
}

.one,
.two,
.three {
    width: 100%;
    height: 3px;
    background: #000;
    margin: 8px auto;
    backface-visibility: hidden;
    -moz-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
}

/* =====================================================================
   5) Shared typography + content components
   ===================================================================== */
/* Headings and titles */
h2,
h1.section-heading {
    font-size: 3.125rem;
    font-weight: 300;
}

.page-header h1 {
    position: absolute;
    bottom: 0;
    padding: 1rem;
    width: 100%;
    margin: 0;
    text-align: center;
    background-color: rgba(225, 225, 225, 0.5);
}

h4.accordion-heading {
    background-color: rgba(233, 203, 187, 0.6);
    color: #004d53;
}

h4.accordion-heading a {
    color: #004d53;
}

.accordion .card-body a {
    text-decoration: none;
    border-bottom: solid 1px;
}

.accordion-heading [data-toggle="collapse"] .fas:before {
    font-family: "Font Awesome 5 Pro";
    content: "\f068";
    font-weight: 100;
}

.accordion-heading [data-toggle="collapse"].collapsed .fas:before {
    font-family: "Font Awesome 5 Pro";
    content: "\f067";
    font-weight: 100;
}

h3.accordion-heading span {
    padding-right: 40px;
    display: inline-block;
}

.accordion-heading {
    position: relative;
}
.accordion-heading .fas {
    position: absolute;
    top: 15px;
    right: 15px;
}

.owl-thumb-item img.img-fluid:hover {
    opacity: 0.65;
    transition: 0.3s ease-in-out;
}

.card-header {
    overflow: hidden;
}

.parallax {
    /* Create the parallax scrolling effect */
    background-attachment: fixed;
}

@media (max-width: 767.98px) {
    .navbar-brand img {
        width: 220px;
    }

    .top-nav a {
        font-size: 0.85rem;
        text-align: center;
    }

    h4.accordion-heading {
        font-size: 1rem;
    }
}

.news-image {
    min-height: 200px;
}

figure img {
    max-width: 100%;
}
/* =====================================================================
   6) Site-specific theme overrides (Oasis Peakhurst)
   ===================================================================== */


.header {
    background-color: rgba(3, 17, 18, 0.6);
    z-index: 99999;
}

header.fixed-top.sticky .header {
    background-color: rgba(0, 76, 83, 0.75);
}

header .navbar-brand {
    padding: 0;
}

.nav-item:last-child {
    background-color: #f4e4db;
}
.nav-item:last-child a {
    color: #333 !important;
}

main {
    background-image: url(/images/bg-leaf-large.svg);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right center;
}
main.internal {
    margin-top: 125px;
}

a {
    color: #004d53;
}
a:hover {
    color: #00727a;
    text-decoration: underline;
}

.navbar-toggler {
    background-color: #e9cbbb;
}

.imp-ui-layers-menu-wrap {
    margin-top: -80px;
    width: 140px;
    left: 50%;
    right: 50%;
    margin-left: -70px;
}

.imp-ui-element {
    background-color: #f4e4db;
    border: #f4e4db;
}

.bg-peach {
    background-color: rgba(233, 203, 187, 0.13);
}

/* Theme typography */
h3.accordion-heading {
    background-color: rgba(233, 203, 187, 0.25);
    color: #004d53;
}

h3.accordion-heading a {
    color: #004d53;
}

h1 {
    color: #004d53;
}

h2 {
    font-size: 3.125rem;
    color: #004d53;
    font-weight: 300;
}

h3 {
    font-size: 1.5rem;
    color: #004d53;
}

h4,
h5 {
    font-size: 1.3125rem;
    color: #004d53;
}

h5 {
    font-weight: 400;
}

p {
    font-size: 1.3125rem;
}

/* Theme buttons */
.btn.btn-primary {
    background-color: rgba(0, 76, 83, 1);
    border: #004d53;
    border-radius: 0;
}

.btn.btn-primary:hover {
    background-color: rgba(0, 76, 83, 0.55);
}

.btn.btn-secondary {
    background-color: rgba(0, 76, 83, 0.55);
    border: #004d53;
    border-radius: 2px;
    padding: 5px 15px;
}

.btn.btn-secondary:hover {
    background-color: rgba(0, 76, 83, 1);
}

/* Theme decorative/background elements */
.leaf-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    content: "";
    background-image: url(/images/bg-leaf-white.svg);
    background-position: right bottom;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.bg-drapes {
    background-image: url(/images/bg-drapes.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.leaf {
    height: 100px;
    width: 100px;
    position: absolute;
    left: 50%;
    margin-left: -50px;
    top: 50%;
    margin-top: -50px;
    z-index: 1;
    transform: rotate(90deg);
}

.nav-item a {
    color: #fff;
    font-size: 1.25rem;
}
.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.nav-item.active {
    border-bottom: solid 2px #f4e4db;
}

footer,
.top-nav {
    background-color: #004d53;
}

footer a,
.top-nav a {
    color: #fff;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}
footer .disclaimer h4 {
    color: #fff;
}
.block-image {
    min-height: 50vh;
}

/* Section Backgrounds */
.bg-marble {
    background-image: url(/images/bg-marble.jpg);
    background-size: cover;
}

section.enquire {
    background-image: url(/images/bg-apartment-enquire.png);
    background-size: cover;
}

.decal {
    background-color: rgba(0, 77, 83, 0.53);
    border-radius: 3px;
    padding: 10px 25px 5px;
    margin-top: 25px;
    color: #fff;
    font-size: 1.625rem;
}

.decal-btn {
    background-color: rgba(0, 77, 83, 0.53);
    border-radius: 3px;
    padding: 5px 25px;
    margin-top: 25px;
    color: #fff;
    font-size: 1.625rem;
}

/* Theme-specific responsive adjustments */
@media all and (max-width: 767px) {
    main:not(.internal) {
        padding-top: 158px;
    }

    /* remove padding for smaller devices */
    main.internal {
        padding-top: 0;
        margin-top: 130px;
    }
}

/* Homepage hero/word animation */
.welcome {
    padding-top: 4.875rem;
}

.welcome h3 {
    margin-bottom: 2.2608695652174rem;
}

@media all and (max-width: 767px) {
    .welcome {
        padding-top: 0;
    }
}

.word-wrapper {
    position: relative;
}

.word {
    font-size: 13rem;
    font-weight: 100;
    float: left;
    opacity: 0;
    color: #fff;
    position: absolute;
    margin-top: 6rem;
    text-shadow: 10px 10px 30px #000;
}

h1.display {
    font-size: 2rem;
    color: #fff;
    text-shadow: 10px 10px 30px #000;
    font-weight: 500;
    margin-top: 23rem;
}

.w1 {
    animation: w1anim 30s infinite;
}

.w2 {
    animation: w2anim 30s infinite;
}

.w3 {
    animation: w3anim 30s infinite;
}
.w4 {
    animation: w4anim 30s infinite;
}

@keyframes w1anim {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    40% {
        opacity: 0;
    }
}

@keyframes w2anim {
    20% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    60% {
        opacity: 0;
    }
}

@keyframes w3anim {
    40% {
        opacity: 0;
    }

    60% {
        opacity: 1;
    }

    80% {
        opacity: 0;
    }
}
@keyframes w4anim {
    60% {
        opacity: 0;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    .navbar-brand img {
        width: 100px;
    }

    .word {
        font-size: 8rem;
        margin-top: 10rem;
    }

    h1.display {
        font-size: 1.5rem;
    }
    .owl-thumbs {
        margin-top: 4px !important;
    }
    main {
        padding-top: 160px;
    }
    .imp-ui-layers-menu-wrap {
        top: -60px !important;
        right: 15px;
    }
    #main-slider h2 {
        font-size: 1.5rem;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767px) {
    .breadcrumb {
        font-size: 0.9rem;
    }
    #apartment h1 {
        font-size: 2rem;
    }
    #apartment h2 {
        font-size: 1rem;
    }
    #apartment img.bed-icon {
        width: 25px;
    }
    #apartment img.bath-icon {
        width: 25px;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (min-width: 991px) {
    .word {
        font-size: 12rem;
        margin-top: 8rem;
    }
    #apartment h2 {
        font-size: 1.5rem;
    }
}

/* Large devices (desktops, less than 1200px) */
@media (min-width: 1199px) {
    .inner {
        padding: 5rem;
    }

    footer .info {
        border-left: solid 1px #fff;
        border-right: solid 1px #fff;
    }
}

/* =====================================================================
   7) Theme animations + effects
   ===================================================================== */
/* Falling leaves animation */
.fallingLeaves {
    text-align: center;
    height: 1px;
    overflow: visible;
    position: relative;
    z-index: 100;
}

.fallingLeaves span {
    display: inline-block;
    width: 100px;
    height: 100px;
    margin: -280px 90px 54px -34px;
    background: url(/images/the-oasis-leaf.png);
    animation: fallingLeaves 10s infinite linear;
    -webkit-animation: fallingLeaves 10s infinite linear;
    -moz-animation: fallingLeaves 10s infinite linear;
}

.fallingLeaves span:nth-child(5n + 5) {
    animation-delay: 1.3s;
    -webkit-animation-delay: 1.3s;
    -moz-animation-delay: 1.3s;
}

.fallingLeaves span:nth-child(3n + 2) {
    animation-delay: 1.5s;
    -webkit-animation-delay: 1.5s;
    -moz-animation-delay: 1.5s;
}

.fallingLeaves span:nth-child(2n + 5) {
    animation-delay: 1.7s;
    -webkit-animation-delay: 1.7s;
    -moz-animation-delay: 1.7s;
}

.fallingLeaves span:nth-child(3n + 10) {
    animation-delay: 2.7s;
    -webkit-animation-delay: 2.7s;
    -moz-animation-delay: 2.7s;
}

.fallingLeaves span:nth-child(7n + 2) {
    animation-delay: 3.5s;
    -webkit-animation-delay: 3.5s;
    -moz-animation-delay: 3.5s;
}

.fallingLeaves span:nth-child(4n + 5) {
    animation-delay: 5.5s;
    -webkit-animation-delay: 5.5s;
    -moz-animation-delay: 5.5s;
}

.fallingLeaves span:nth-child(3n + 7) {
    animation-delay: 8s;
    -webkit-animation-delay: 8s;
    -moz-animation-delay: 8s;
}

@-webkit-keyframes fallingLeaves {
    0% {
        opacity: 1;
        -webkit-transform: translate(0, 0px) rotateZ(0deg);
    }

    75% {
        opacity: 1;
        -webkit-transform: translate(100px, 600px) rotateZ(270deg);
    }

    100% {
        opacity: 0;
        -webkit-transform: translate(150px, 800px) rotateZ(360deg);
    }
}

@-moz-keyframes fallingLeaves {
    0% {
        opacity: 1;
        -webkit-transform: translate(0, 0px) rotateZ(0deg);
    }

    75% {
        opacity: 1;
        -webkit-transform: translate(100px, 600px) rotateZ(270deg);
    }

    100% {
        opacity: 0;
        -webkit-transform: translate(150px, 800px) rotateZ(360deg);
    }
}

@keyframes fallingLeaves {
    0% {
        opacity: 1;
        transform: translate(0, 0px) rotateZ(0deg);
    }

    75% {
        opacity: 1;
        transform: translate(100px, 600px) rotateZ(270deg);
    }

    100% {
        opacity: 0;
        transform: translate(150px, 800px) rotateZ(360deg);
    }
}

/* -- menu toggle color --*/

#menu-toggle.on .one {
    background: #f4e4db;
}

#menu-toggle.on .three {
    background: #f4e4db;
}

.one,
.two,
.three {
    background: #f4e4db;
}

.facility-icon:hover {
    background-color: rgba(0, 76, 83, 0.15);
    transition:
        opacity 1s,
        transform 1s,
        -webkit-transform 1s;
}

.facility-icon:hover img,
.card-header:hover img {
    animation-delay: delay-2s;
    transition:
        transform 0.2s,
        opacity 0.2s;
    transform: scale(1.2);
}

/* =====================================================================
   8) Page-specific tweaks
   ===================================================================== */
/* Modify homepage slider */

.section-top .item {
    height: 80vh !important;
}
.item .overlay-text a {
    color: #fff !important;
}

.alert-warning {
    background-color: #a98370 !important;
    border: solid 1px #a98370 !important;
    color: #fff !important;
    border-radius: 0 !important;
}

.alert-warning a {
    color: #ffffff !important;
    text-decoration: none;
    border-bottom: solid 1px #fff;
}
.alert-warning h2 {
    color: #ffffff !important;
}

/* =====================================================================
   9) Responsive navigation polish
   ===================================================================== */
/* Apply the same transparent green nav background on internal pages
   (even before the sticky state is added on scroll). */
@supports selector(#wrapper:has(main.internal)) {
    #wrapper:has(main.internal) > header.fixed-top .header {
        background-color: rgba(0, 76, 83, 0.75);
    }
}

/* Mobile/tablet solid background for collapsed nav */
@media (max-width: 1199.98px) {
    .mobile-nav-solid {
        background: #fff;
        padding: 1rem;
        margin-top: 0.75rem;
        border-radius: 0.25rem;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }

    .mobile-nav-solid .nav-link {
        color: #212529;
    }
}
