/* =========================================
   TABLE OF CONTENTS
   1. Reset & Variables
   2. Typography & General
   3. Navigation
   4. Hero Section & Animations
   5. Typography & Section Headers
   6. Apartments Grid & Cards
   7. Card Tags & Button
   8. Contact & Footer
   9. Media Queries (Responsive)
========================================= */

/* 1. RESET & VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #fafafa;
    --card-bg: #ffffff;
    --text-main: #222222;
    --text-light: #666666;
    --accent-color: #c9a982;
    --airbnb-color: #FF5A5F;
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --radius: 16px;
}

/* 2. TYPOGRAPHY & GENERAL */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
}

/* 3. NAVIGATION */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* 4. HERO SECTION & ANIMATIONS */
.hero {
    position: relative;
    height: 85vh;
    /* Animated Gradient Background - Luxury Colors */
    background: linear-gradient(-45deg, #c9a982, #e6d5b8, #b5956f, #fdf5e6);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

/* Keyframes για την κίνηση του background */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Κράτησα ένα ελαφρύ overlay για να διαβάζεται τέλεια το λευκό κείμενο πάνω στο χρυσό gradient */
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: var(--card-bg); /* Άλλαξα το κουμπί σε λευκό για να κάνει αντίθεση με το gradient */
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--text-main);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* 5. TYPOGRAPHY & SECTION HEADERS */
.apartments {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.0rem;
    color: var(--text-main);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* 6. APARTMENTS GRID & CARDS */
.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.card-info {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* 7. CARD TAGS & BUTTON */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f4f4f4;
    color: var(--text-main);
}

.tag-vibe {
    background: #fdf5e6;
    color: #b58d51;
}

.tag-capacity {
    background: #eef2fa;
    color: #4a6fa5;
}

.btn-airbnb {
    display: block;
    text-align: center;
    padding: 12px 0;
    background-color: var(--airbnb-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.btn-airbnb:hover {
    background-color: #e0484d;
}

/* 8. CONTACT & FOOTER */
.contact {
    background: var(--card-bg);
    padding: 80px 5%;
    text-align: center;
    border-top: 1px solid #eee;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-details p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.footer-bottom {
    margin-top: 50px;
    font-size: 0.85rem;
    color: #aaa;
}

/* 9. MEDIA QUERIES (RESPONSIVE) */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .navbar {
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .navbar {
        padding: 20px 10%;
    }
}