/*
Theme Name: Boutique Adriatic Homes
Theme URI: https://github.com/Angela0023/boutique-adriatic-homes
Description: Luxury property portfolio for Nicolas - Boutique Adriatic Homes. A minimalistic black and white landing page featuring 8 curated properties in the Trogir region with interactive map, image rotation, and integrated booking system.
Version: 1.0
Author: Angela Petkovska
Author URI: https://dopaminedigital.io
Text Domain: boutique-adriatic
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: MIT
*/

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #FFFFFF;
    --grey-light: #F5F5F5;
    --grey-mid: #A0A0A0;
    --grey-dark: #333333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: 2rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.mono {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: all 0.3s;
}

.login-btn {
    background: var(--black);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.login-btn:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 80px;
}

.hero-left {
    background: var(--grey-light);
    padding: 8% 6%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.brand-mark {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.hero-content {
    max-width: 500px;
    margin: auto 0 auto auto;
}

.hero-content h1 {
    margin-bottom: 2rem;
}

.hero-tagline {
    font-size: 1.125rem;
    color: var(--grey-dark);
    margin-bottom: 3rem;
}

.btn-primary {
    display: inline-block;
    background: var(--black);
    color: var(--white);
    padding: 1.25rem 3rem;
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s;
    border: 2px solid var(--black);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--black);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--black);
    padding: 1.25rem 3rem;
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 2px solid var(--black);
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--black);
    color: var(--white);
}

.hero-location {
    align-self: flex-end;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--grey-mid);
}

.hero-right {
    background: var(--grey-dark);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-right::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: translateX(100%);
    transition: transform 0.6s ease-in-out;
    z-index: 1;
}

.hero-right[data-next-bg]::after {
    background-image: var(--next-hero-image);
}

.hero-right.sliding::after {
    transform: translateX(0);
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
}

/* Properties Section */
.section {
    padding: 8% 4%;
}

.section-header {
    max-width: 1400px;
    margin: 0 auto 4rem;
}

.section-label {
    display: block;
    margin-bottom: 1rem;
    color: var(--grey-mid);
}

.filter-buttons {
    max-width: 1400px;
    margin: 0 auto 4rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey-mid);
    cursor: pointer;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--black);
    border-bottom-color: var(--black);
}

.properties-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.property-card {
    cursor: pointer;
    transition: transform 0.3s;
}

.property-card:hover {
    transform: translateY(-8px);
}

.property-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--grey-light);
    background-size: cover;
    background-position: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.property-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-image: attr(data-next-bg url);
    transform: translateX(100%);
    transition: transform 0.6s ease-in-out;
    z-index: 2;
}

.property-image[data-next-bg]::after {
    background-image: var(--next-image);
}

.property-image.sliding::after {
    transform: translateX(0);
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.property-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.property-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--white);
    background: rgba(0,0,0,0.5);
    padding: 0.5rem 1rem;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.property-info h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.property-location {
    font-size: 0.875rem;
    color: var(--grey-mid);
    letter-spacing: 0.05em;
}

/* Service Section */
.service-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.service-item h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.service-item p {
    color: var(--grey-dark);
    line-height: 1.8;
}

.service-quote {
    max-width: 800px;
    margin: 4rem auto 0;
    text-align: center;
    font-style: italic;
    color: var(--grey-mid);
    font-size: 1rem;
}


/* Location Section */
.location-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.location-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.location-item p {
    color: var(--grey-dark);
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    padding: 2rem 1.5rem;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.contact-item:hover {
    border-color: var(--black);
    transform: translateY(-2px);
}

.contact-item h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--black);
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s;
    max-width: 100%;
}

.contact-link span {
    white-space: nowrap;
}

.contact-link:hover {
    opacity: 0.7;
}

.contact-icon {
    font-size: 1.5rem;
}

/* Map Container */
.map-container {
    width: 100%;
    height: 500px;
    margin-top: 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .map-container {
        height: 400px;
    }
}

/* Booking Modal */
.booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.booking-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--black);
    transform: rotate(90deg);
}

.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--white);
}

.modal-close::before {
    transform: rotate(45deg);
}

.modal-close::after {
    transform: rotate(-45deg);
}

.modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Final CTA */
.cta-section {
    background: var(--black);
    color: var(--white);
    padding: 12% 4%;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 2rem;
}

.cta-section .brand-mark {
    display: block;
    margin: 3rem 0 2rem;
    opacity: 0.5;
}

/* Mobile Menu */
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--black);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-right {
        min-height: 50vh;
    }

    .hero-content {
        margin: auto;
    }

    nav {
        padding: 1.5rem 4%;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s;
        z-index: 999;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        gap: 0;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-menu a {
        padding: 1rem 0;
        border-bottom: 1px solid var(--grey-light);
        font-size: 1.125rem;
    }

    .section {
        padding: 12% 6%;
    }

    .properties-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 640px) {
    .btn-primary,
    .btn-outline {
        padding: 1rem 2rem;
        font-size: 0.75rem;
    }

    .filter-buttons {
        gap: 1rem;
    }

    .filter-btn {
        font-size: 0.75rem;
    }
}
