html, body {
    margin: 0;
    padding: 0;
    font-family: 'Georgia', serif;
    counter-reset: para-counter;
    background-color: white;
    box-sizing: border-box;
}

main {
    margin: 20px 10%;
    touch-action: auto;
}

p, li, a, div {
    font-family: "system-ui", "BlinkMacSystemFont", "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    text-decoration: none;
}

span {
    display: inline-block;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1 {
    line-height: 1.2;
    font-size: 1.5em;
}

h2 {
    line-height: 1.2;
    font-size: 1.25em;
    color: #333;
}

h3, h4 {
    font-size: 1.25rem;
    line-height: 1;
}

.bread {
    font-size: 1.8em;
    margin: auto;
    padding: 15px 2%;
    text-rendering: optimizeLegibility;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

header {
    margin: 0;
    top: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border-bottom: 1px solid rgb(228, 225, 225);
}

.logo {
    position: absolute;
    background-image: url('assets/img/altre.png');
    top: auto;
    left: 20px;
    width: 180px;
    height: 1.8em;
    opacity: 1;
    z-index: 1000;
    font: italic bold 2em "adobe-garamond-pro", serif;
    text-align: center;
    line-height: 1.8em;
}

.header-right {
    display: flex;
    align-items: center;
}

.spacer {
    flex: 1;
}

/* Hamburger Menu */
.hamburger-menu {
    margin: 0.1rem 0.2em;
    cursor: pointer;
}

.bar {
    width: 40px;
    height: 0.25em;
    background-color: #007185;
    margin: 0.75em 0.75em;
}

/* Drawer Navigation */
.drawer {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 20%;
    background: rgb(248, 249, 249);
    padding: 0px;
    transition: right 0.1s ease-in-out;
    overflow-y: auto;
    z-index: 1000;
    text-align: right;
}

.drawer.active {
    right: 0;
}

.writeup ul {
    column-count: 2;
    column-gap: 15px;
    padding: 0;
    margin-left: 25px;
}

.writeup li {
    padding: 3px 5px;
    margin-bottom: 2px;
    list-style-type: square;
    font-size: 1rem;
    text-transform: capitalize;
}


nav ul {
    list-style-type: none;
    padding: 10%;
    width: 80%;
    height: auto;
    text-wrap: nowrap;
}

nav ul li {
    display: block;
    text-transform: capitalize;
    color: #007185;
    position: relative;
    font-size: 1.75em;
}

nav ul li a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: rgb(20, 36, 50);
    padding-top: 8px;
    font-weight: 500;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #007185;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

nav ul li a:hover::after {
    transform: scaleX(1);
}

nav ul li span {
    display: inline-block;
    width: 30px;
    text-align: left;
    font-size: 0.75em;
    font-weight: 600;
}

nav ul li:nth-child(-n+5) {
    margin-left: 10px;
}

#drawer p {
    font-size: 14px;
    color: #555;
    margin: 10px 20px;
}

#drawer p:first-of-type {
    font-weight: bold;
}

#drawer p a {
    color: #007bff;
    text-decoration: none;
}

#drawer p a:hover {
    text-decoration: underline;
}

.close-button {
    position: absolute;
    top: 2%;
    right: 2%;
    font-size: 0.8em;
    color: #00673f;
    padding: 5px 15px;
    transition: color 0.1s ease-in-out;
    font-weight: 500;
    cursor: pointer;
    height: 40px;
    width: 40px;
}

/* ==========================================================================
   Main Content Layout & Containers
   ========================================================================== */

.main-flex-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.container {
    display: flex;
    justify-content: space-around;
    height: auto;
    flex-direction: row;
}

.container2 {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.c-bottom {
    display: flex;
    flex-direction: column;
    flex: 0 0 60%;
    max-width: 60%;
}

.desc, .amenities, .block4 {
    margin-bottom: 10px;
    /*display: flex;*/
    flex-direction: column;
    padding: 10px;
    word-wrap: break-word;
    overflow: auto;
    font-size: 1rem;
}

/* Section Headings */
.desc h2, .amenities h2, .block4 h2 {
    margin-bottom: 1%;
    text-align: left;
    color: #000;
    /*padding: 0em 1em;*/
    /*border-left: 4px solid #007185;*/
    /*font-size: 1.5rem;*/
}

/* ==========================================================================
   Sliders
   ========================================================================== */

/* Main Slider */
.slider-container {
    position: relative;
    width: calc(60% - 20px);
    max-width: calc(70% - 20px);
    max-height: 380px;
    min-height: 380px;
    overflow: hidden;
    margin-right: 20px;
}

.slider {
    display: flex;
    width: auto;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.slide {
    flex: 0 0 auto;
    width: auto;
    height: 380px;
    margin-right: 20px;
}

.slide:last-child {
    margin-right: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prev, .next {
    position: absolute;
    top: 50%;
    width: 45px;
    height: 60px;
    font-size: 20px;
    cursor: pointer;
    user-select: none;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.prev { left: 0; }
.next { right: 0; }

/* Distinct Slider */
.distinct-slider {
    position: relative;
    width: 80%;
    max-width: 600px;
    overflow: hidden;
    border: 2px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
}

.distinct-slides {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.distinct-slide {
    display: none;
    width: 75%;
    height: 100%;
    object-fit: contain;
}

.distinct-slide.active {
    display: block;
}

.distinct-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0);
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 0%;
    color: #000000;
    touch-action: manipulation;
}

.distinct-button.prev { left: 10px; }
.distinct-button.next { right: 10px; }
.distinct-button:hover { background-color: rgba(0, 0, 0, 0.158); }

/* ==========================================================================
   Forms & Search
   ========================================================================== */

form {
    /*padding: 20px;*/
}

fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

legend {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

label {
    display: block;
}

.in {
    width: 100%;
    margin: 10px auto;
    padding: 8px;
    border: 1px solid #007185;
    border-width: thin;
    box-sizing: border-box;
    font-size: 0.95em;
    line-height: 1;
    text-transform: capitalize;
    outline-color: #007185;
}

.in:focus {
    border: 1px solid #2d8cf0;
}

.inquire {
    background-color: #007185;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    letter-spacing: 2px;
}

/* Search Bar */
.search-bar {
    position: relative;
    display: inline-block;
    width: 300px;
    align-items: center;
    background: rgb(255, 255, 255);
    z-index: 1000;
    transition: all 0.3s ease;
}

.search-bar input {
    width: 100%;
    height: 2.4em;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid #007185;
    border-radius: 1px;
    background-color: transparent;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56.966 56.966' fill='%23717790c7'%3e%3cpath d='M55.146 51.887L41.588 37.786A22.926 22.926 0 0046.984 23c0-12.682-10.318-23-23-23s-23 10.318-23 23 10.318 23 23 23c4.761 0 9.298-1.436 13.177-4.162l13.661 14.208c.571.593 1.339.92 2.162.92.779 0 1.518-.297 2.079-.837a3.004 3.004 0 00.083-4.242zM23.984 6c9.374 0 17 7.626 17 17s-7.626 17-17 17-17-7.626-17-17 7.626-17 17-17z'/%3e%3c/svg%3e");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: 16px 50%;
    box-sizing: border-box;
    color: #333;
    outline: none;
    padding: 0.75em 2.55em;
}

#search-bar input::placeholder {
    color: #999;
}

.search-icon {
    display: none;
    cursor: pointer;
    text-align: center;
    font-weight: 200;
    color: #007185;
    width: 40px;
    align-items: center;
}

.search-icon img {
    width: 30px;
    height: 30px;
    display: block;
    margin: auto;
}

/* ==========================================================================
   Component Styles
   ========================================================================== */

/* Building & Contact Sections */
.building-section {
    flex: 0 0 30%;
    max-width: 350px;
    height: fit-content;
    position: relative;
    margin-bottom: 3%;
    top: 0;
    padding: 20px;
    border-radius: 8px;
    color: #323232;
}

.building-details {
    margin-top: 15px;
    border-top: 1px solid #ccc;
}

.building-details ul {
    padding: 0;
    list-style: none;
}

.building-details li {
    margin-bottom: 8px;
}

.building-details .highlight {
    font-weight: normal;
    color: #007185;
    text-transform: capitalize;
}

.contact-aside {
    flex: 0 0 30%;
    max-width: 350px;
    padding: 20px;
    border-radius: 8px;
    position: sticky;
    top: 0;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    border: 2px dotted #ddd;
    background: rgb(248, 249, 249);
    align-self: flex-start;
}

/* Amenities & Other Lists */
.amenities ul, .block4 ul {
    column-count: 2;
    column-gap: 15px;
    padding: 0;
    margin-left: 25px;
}

.amenities li, .block4 li {
    padding: 3px 5px;
    margin-bottom: 2px;
    list-style-type: square;
    font-size: 1rem;
    text-transform: capitalize;
}

.block4 ul {
    column-count: 1;
}

/* Action Links & Buttons */
#action-links {
    margin-top: 10px;
    border-top: 1px solid #ccc;
    padding: 2% 2%;
}

#action-links a {
    display: inline-block;
    margin: 0.25rem;
    text-decoration: none;
    background-color: #007185;
    font-weight: bold;
    color: white;
    position: relative;
    font-size: 0.9em;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0.35rem 1.25rem;
    border-radius: 2px;
}

.contact-button {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    font-size: 1rem;
    line-height: 1;
    text-transform: capitalize;
    border: none;
    border-radius: 2px;
    box-shadow: 0 20px 50px 10px rgba(20, 61, 80, .15);
    letter-spacing: .05em;
    appearance: none;
    text-decoration: none;
    background-image: linear-gradient(90deg, #287a9f 33%, #156380 66%);
    background-size: 150% 100%;
    background-position: 50% 0;
    color: #fff;
    padding: 12px 18px;
    white-space: nowrap;
    overflow: hidden;
    transition: transform 250ms ease-in-out, background-position 250ms ease-in-out;
}

.contact-button:hover {
    background-color: #007186;
}

.learn-more-button {
    padding: 10px 20px;
    margin-top: 15px;
    float: right;
    background-color: #007185;
    color: #ffffff;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    margin-right: 10px;
    display: block;
    font-size: larger;
    -webkit-font-smoothing: antialiased;
}

/* Owner Details */
.owner-details-container {
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    display: flex;
    align-items: center;
}

.owner-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ddd;
    margin-right: 15px;
}

.owner-details {
    flex: 1;
}

.owner-details h2 {
    font-size: 1.2em;
    margin: 0 0 5px;
    color: #333;
}

.owner-details p {
    margin: 0;
    color: #555;
}

.call-button {
    padding: 10px 20px;
    background-color: #28a745;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s;
    margin-left: 15px;
}

.call-button:hover {
    background-color: #218838;
}


/* Suggestions Aside Box */
.suggest-aside {
    flex: 0 0 96%;
    max-width: 350px;
    padding: 20px;
    border-radius: 8px;
    position: sticky;
    top: 0;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.suggestion-container {
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out;
    box-sizing: border-box;
    padding: 10px;
    cursor: pointer;
}

.suggestion-container:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.suggestion-container-image {
    width: 100px;
    height: 100px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 8px;
    margin-right: 15px;
}

.suggestion-container-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}

.suggestion-container-details {
    padding: 10px 0;
    flex-grow: 1;
}

.suggestion-container-details h3 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    color: #333;
    line-height: 1.4;
    transition: color 0.3s ease-in-out;
}

.suggestion-container-details a {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    transition: color 0.3s ease-in-out;
}

.suggestion-container-details a:hover {
    color: #1d72b8;
}

/* Price Table */
.price-table {
    width: 100%;
    border-collapse: collapse;
    background-color: transparent;
}

.price-table thead {
    background-color: black;
    color: black;
    text-transform: capitalize;
    font-size: 14px;
    font-weight: 500;
}

.price-table th, .price-table td {
    padding: 10px 15px;
    text-align: left;
    border: none;
}

.price-table tr:nth-child(even) {
    background-color: #eef7f9;
}

.price-table tr:nth-child(odd) {
    background-color: #ffffff;
}

.price-table tr:hover {
    background-color: #d9f1f5;
    transition: background-color 0.3s ease;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    max-width: 100%;
    background-color: transparent;
    margin: 0 auto;
    color: #9b9b9b;
    padding: 10px 0;
    position: relative;
}

.footer-container {
    position: relative;
    width: 100%;
    bottom: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0;
    box-shadow: 0px -1px 1px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #f2f2f2;
    color: #171717;
    font-size: .875rem;
    font-weight: 500;
}

.footer-link {
    margin-right: 15px;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    color: #9b9b9b;
    line-height: 1;
    font-size: .75rem;
    font-weight: 500;
    -webkit-font-smoothing: antialiased !important;
}

.footer-link:hover {
    color: #007185;
}

.footer-link::before {
    content: '';
    position: relative;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background-color: #007185;
    width: 100%;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.footer-link:hover::before {
    transform: scaleX(1);
}

.footer-bottom {
    text-align: center;
    bottom: 0px;
    top: 10px;
    position: relative;
    font-size: .75rem;
}

/* ==========================================================================
   Miscellaneous
   ========================================================================== */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    padding: 10px 20px;
    background-color: #007185;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 999;
}

.back-to-top:hover {
    background-color: #016577;
}

/* Animated Text */
.animated-color-fill-text {
    font-weight: 800;
    background: linear-gradient(90deg, #000000, #0f58a5, #000000, #1059a7);
    background-size: 400% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: color-fill 5s ease infinite;
    display: inline-block;
}

/* Icons */
.material-symbols-outlined {
    margin-left: 5px;
    font-size: 1.1rem;
}

.call-icon {
    padding: 0px;
    text-decoration: none;
    color: #333;
}

.call-icon img {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    display: none;
    cursor: pointer;
}

/* Feedback Messages */
.success-message, .error-message, .feedback-message {
    position: fixed;
    top: 90%;
    right: 10%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    z-index: 999;
}

.success-message {
    display: block;
    animation: slideIn 2s ease-in-out, fadeOut 2s ease-in-out forwards;
}

.feedback-message {
    background-color: #007185;
    top: 50%;
    left: 50%;
    padding: 20px;
}

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */

@keyframes vibrate {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-2px); }
}

@keyframes color-fill {
    0% { background-position: 0% 33%; }
    33% { background-position: 33% 66%; }
    66% { background-position: 66% 100%; }
    100% { background-position: 66% 33%; }
}

@keyframes slideIn {
    from { transform: translate(-50%, -150%); }
    to { transform: translate(-50%, -50%); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
    main {
        margin: 0;
    }

    .container {
        flex-direction: column;
    }

    .c-bottom {
        flex: 0 0 96%;
        max-width: 100%;
    }

    .slider-container {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        margin: 0;
        float: none;
    }

    .slide {
        width: 100%;
        height: 350px;
    }

    .building-section {
        max-width: 90%;
        width: 90%;
        padding: 5% !important;
        margin: 0px;
        border: none;
    }

    .contact-aside {
        display: flex;
        flex: 0 0 100%;
        border: 0px dotted #ddd;
    }

    .desc, .amenities {
        width: 96%;
        max-width: 96%;
        margin: 2% auto;
        padding: 0;
        height: auto;
    }

    .amenities ul {
        column-count: 1;
    }

    nav ul li {
        font-size: 1.5em;
        text-align: left;
        line-height: 2;
    }

    .drawer {
        min-width: 30%;
    }

    .footer-link {
        margin-bottom: 10px;
    }

    .footer {
        width: 100%;
        padding: 0px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .p-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.25rem;
        border-top: 2px solid #007185;
    }

    .logo {
        position: absolute;
        left: 0;
    }

    .drawer {
        width: 100%;
    }

    .search-bar, .icon-plus {
        display: none;
    }

    .call-icon, .search-icon {
        display: block;
    }

    .call-icon img {
        display: inline-block;
    }

    .header-right {
        justify-content: flex-end;
    }

    .menu-drawer {
        display: flex;
        flex-direction: column-reverse;
        justify-content: space-evenly;
        height: auto;
        margin-bottom: 20px;
        gap: 20px;
        align-items: center;
        letter-spacing: 4px;
    }

    .menu-item {
        font-size: 20px;
        line-height: 1.5;
        font-weight: 600;
    }

    p, span {
        font-size: 1rem;
    }

    .distinct-slide {
        width: 100%;
        height: 300px;
    }

    .gallery-section h2, .gallery-section p {
        text-align: center;
        margin-left: 0;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-item {
        height: 80px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-section, .services-info-section {
        flex-basis: 100%;
        margin-bottom: 20px;
    }

    .info-image {
        flex: 0;
    }

    .p-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #search-bar {
        display: none;
    }

    .search-icon {
        display: block;
        padding: 1%;
        margin: auto;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .grid-item {
        height: 80px;
    }

    .grid-item span {
        font-size: 14px;
        padding-left: 10px;
    }

    .p-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    #search-bar {
        display: inline-block;
    }

    .search-icon {
        display: none;
    }

    .bar {
        width: 30px;
        height: 0.20em;
        background-color: #007185;
        margin: 0.75em 0.75em;
        touch-action: manipulation;
    }
}
