/* ============================================================================
   CANARIASAPART - SITE CSS
   Colores: Teal (#00A68C) y Gold (#C9A227)
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --teal: #00A68C;
    --teal-dark: #008572;
    --teal-light: #33B8A3;
    --gold: #C9A227;
    --gold-light: #E8C547;
    --gold-dark: #A68619;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background: linear-gradient(135deg, #FDFCFB 0%, #F5F3EF 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================================================
   HEADER
   ============================================================================ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.nav-desktop {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-desktop a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s;
}

.nav-desktop a:hover {
    color: var(--teal);
}

.nav-desktop a.highlight {
    color: var(--teal);
    font-weight: 600;
}

.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    color: white;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-radius: 4px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.3);
    color: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--teal);
}

/* ============================================================================
   HERO SPLIT SECTION
   ============================================================================ */
.hero-split {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 104px);
}

/* Slideshow */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 350px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    padding: 30px 25px 25px;
    color: white;
}

.slide-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slide-location {
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slide-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.slide-price span {
    font-size: 11px;
    font-weight: 400;
}

/* Slideshow Indicators */
.slideshow-indicators {
    position: absolute;
    bottom: 15px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.indicator.active {
    background: var(--gold);
    border-color: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255,255,255,0.7);
}

/* Slideshow Arrows */
.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: var(--teal);
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.slideshow-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.slideshow-arrow.prev { left: 15px; }
.slideshow-arrow.next { right: 15px; }

/* Hero Content Side */
.hero-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #FDFCFB 0%, #F5F3EF 100%);
}

.hero-tag {
    color: var(--teal);
    font-size: 11px;
    letter-spacing: 3px;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 32px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ============================================================================
   SEARCH BOX
   ============================================================================ */
.search-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.search-field {
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-size: 10px;
    color: #999;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 5px;
}

.search-field input,
.search-field select {
    border: none;
    border-bottom: 2px solid rgba(0, 166, 140, 0.2);
    padding: 10px 0;
    font-size: 14px;
    outline: none;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
}

.search-field input:focus,
.search-field select:focus {
    border-bottom-color: var(--teal);
}

.btn-search {
    padding: 15px;
    background: var(--teal);
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    border-radius: 8px;
    transition: background 0.3s;
}

.btn-search:hover {
    background: var(--teal-dark);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-icon { font-size: 16px; }

.badge-text {
    font-size: 11px;
    color: #888;
    font-family: 'Montserrat', sans-serif;
}

/* ============================================================================
   MOBILE MENU
   ============================================================================ */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 200;
    flex-direction: column;
    padding: 30px;
}

.mobile-menu.active { display: flex; }

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-menu nav a {
    font-size: 24px;
    color: #333;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

.mobile-menu nav a.highlight { color: var(--teal); }
.mobile-menu .logo-img { height: 70px; }

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
    background: linear-gradient(180deg, var(--teal) 0%, var(--teal-dark) 100%);
    padding: 60px 30px 30px;
    color: white;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.footer-brand { max-width: 300px; }

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-description {
    font-size: 14px;
    line-height: 1.7;
    font-family: 'Montserrat', sans-serif;
    opacity: 0.9;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-column-title {
    width: 40px;
    height: 3px;
    background: var(--gold);
    margin-bottom: 10px;
}

.footer-column a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-column a:hover { color: var(--gold); }
.footer-column a i { font-size: 12px; color: var(--gold); }

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.footer-copyright {
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    opacity: 0.8;
}

.footer-bottom-links { display: flex; gap: 20px; }

.footer-bottom-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s;
}

.footer-bottom-links a:hover { color: white; }

/* Scroll to Top */
.btn-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--teal);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,166,140,0.4);
    transition: all 0.3s;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.btn-scroll-top.visible { display: flex; }

.btn-scroll-top:hover {
    background: var(--teal-dark);
    transform: translateY(-3px);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (min-width: 768px) {
    .header { padding: 10px 50px; }
    .logo-img { height: 80px; }
    .hero-split { flex-direction: row; min-height: calc(100vh - 100px); }
    .slideshow-container { width: 50%; height: auto; min-height: calc(100vh - 100px); }
    .hero-content { width: 50%; padding: 40px; }
    .hero-content h1 { font-size: 38px; }
    .slide-overlay { padding: 40px 30px 30px; }
    .slide-title { font-size: 28px; }
    .slide-location { font-size: 14px; }
    .slide-price { top: 25px; right: 25px; padding: 12px 20px; font-size: 22px; }
    .footer { padding: 60px 50px 30px; }
    .footer-content { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1024px) {
    .header { padding: 8px 60px; }
    .hero-content { padding: 50px; }
    .hero-content h1 { font-size: 44px; }
    .hero-content p { font-size: 16px; max-width: 400px; }
    .slide-overlay { padding: 50px 40px 40px; }
    .slide-title { font-size: 32px; }
    .slide-price { padding: 14px 22px; font-size: 24px; }
    .footer { padding: 70px 60px 30px; }
}

@media (min-width: 1200px) {
    .hero-content { padding: 60px; }
    .hero-content h1 { font-size: 48px; }
}

@media (max-width: 767px) {
    .nav-desktop { display: none; }
    .menu-toggle { display: block; }
    .slideshow-arrow { width: 36px; height: 36px; font-size: 14px; }
    .slideshow-arrow.prev { left: 10px; }
    .slideshow-arrow.next { right: 10px; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
    .footer-content { grid-template-columns: 1fr; }
}
