/*
Theme Name: Imperial Las Perlas Blog
Description: Blog theme matching imperialperlas.com design
Version: 1.0
Author: SOLTIA
*/

:root {
    --primary: #0077be;
    --primary-dark: #005a8e;
    --accent: #e67e22;
    --accent-light: #f39c12;
    --gold: #c9a96e;
    --dark: #1a1a2e;
    --text: #444;
    --text-light: #777;
    --bg: #f8f9fa;
    --white: #ffffff;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; color: var(--dark); }

a { color: var(--primary); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === HEADER === */
.blog-header {
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.blog-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}
.header-logo img { height: 45px; transform: scaleX(1.3); }
.header-logo span {
    display: block;
    font-size: 11px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
}
.header-nav { display: flex; align-items: center; gap: 25px; }
.header-nav a {
    color: var(--dark);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.header-nav a:hover { color: var(--primary); }
.btn-reserve {
    background: linear-gradient(135deg, var(--accent), var(--accent-light)) !important;
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(230,126,34,0.4);
    animation: pulse-reserve 2s infinite;
}
@keyframes pulse-reserve {
    0%,100% { box-shadow: 0 4px 15px rgba(230,126,34,0.4); }
    50% { box-shadow: 0 4px 25px rgba(230,126,34,0.7); }
}

/* === HERO BLOG === */
.blog-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.blog-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('/images/hotel/149112388.jpg') center/cover;
    opacity: 0.15;
}
.blog-hero .container { position: relative; z-index: 1; }
.blog-hero h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 15px;
}
.blog-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* === BOOKING BAR === */
.booking-bar {
    background: white;
    margin: -30px auto 40px;
    max-width: 900px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
}
.booking-bar label { font-weight: 600; font-size: 13px; color: var(--dark); display: block; margin-bottom: 5px; }
.booking-bar input, .booking-bar select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}
.booking-bar input:focus, .booking-bar select:focus { border-color: var(--primary); outline: none; }
.booking-bar .btn-book {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
}
.booking-bar .btn-book:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(230,126,34,0.5); }

/* === CONTENT LAYOUT === */
.blog-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding: 40px 0 80px;
}

/* === POSTS === */
.post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
    margin-bottom: 30px;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.post-card .post-thumb {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.post-card .post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.post-card .post-body { padding: 25px 30px; }
.post-card .post-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
}
.post-card h2 { font-size: 1.5rem; margin-bottom: 12px; line-height: 1.3; }
.post-card h2 a { color: var(--dark); }
.post-card h2 a:hover { color: var(--primary); }
.post-card .post-excerpt { color: var(--text-light); line-height: 1.8; margin-bottom: 20px; }
.post-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}
.post-card .read-more:hover { color: var(--accent); gap: 12px; }

/* === SIDEBAR === */
.sidebar .widget {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}
.sidebar .widget h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}
.sidebar .widget ul { list-style: none; }
.sidebar .widget ul li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.sidebar .widget ul li:last-child { border: none; }
.sidebar .widget ul li a { color: var(--text); font-size: 14px; }

/* CTA Widget */
.widget-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    text-align: center;
    color: white;
}
.widget-cta h3 { color: white !important; border-color: rgba(255,255,255,0.3) !important; }
.widget-cta p { color: rgba(255,255,255,0.9); margin-bottom: 20px; font-size: 15px; }
.widget-cta .btn-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}
.widget-cta .btn-cta:hover { transform: scale(1.05); color: white; }

.widget-cta-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    text-align: center;
}

/* === SINGLE POST === */
.single-post-content {
    background: white;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}
.single-post-content h1 { font-size: 2.2rem; margin-bottom: 15px; line-height: 1.3; }
.single-post-content .entry-content { font-size: 17px; line-height: 1.9; }
.single-post-content .entry-content h2 { font-size: 1.6rem; margin: 35px 0 15px; color: var(--primary); }
.single-post-content .entry-content h3 { font-size: 1.3rem; margin: 25px 0 12px; }
.single-post-content .entry-content p { margin-bottom: 20px; }
.single-post-content .entry-content img { border-radius: 10px; margin: 20px 0; }
.single-post-content .entry-content ul, .single-post-content .entry-content ol { margin: 15px 0 20px 25px; }

/* Post CTA Banner */
.post-cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
}
.post-cta-banner h3 { color: white; font-size: 1.6rem; margin-bottom: 10px; }
.post-cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: 20px; }
.post-cta-banner a {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === FOOTER === */
.blog-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 50px 0 25px;
}
.blog-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}
.blog-footer h4 { color: white; margin-bottom: 15px; font-size: 1.1rem; }
.blog-footer a { color: rgba(255,255,255,0.7); }
.blog-footer a:hover { color: var(--accent); }
.blog-footer ul { list-style: none; }
.blog-footer ul li { padding: 5px 0; }
.blog-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 13px;
}

/* === FLOATING BUTTONS === */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    transition: all 0.3s;
}
.floating-whatsapp:hover { transform: scale(1.1); color: white; }

.floating-reserve {
    position: fixed;
    bottom: 95px;
    right: 25px;
    z-index: 9999;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    padding: 14px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(230,126,34,0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse-reserve 2s infinite;
}
.floating-reserve:hover { transform: translateY(-3px); color: white; }

/* === PAGINATION === */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}
.pagination a { background: white; color: var(--dark); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.pagination a:hover { background: var(--primary); color: white; }
.pagination .current { background: var(--primary); color: white; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .blog-content { grid-template-columns: 1fr; }
    .blog-hero h1 { font-size: 1.8rem; }
    .booking-bar { flex-direction: column; margin: -20px 15px 30px; }
    .booking-bar .form-group { width: 100%; }
    .booking-bar input, .booking-bar select { width: 100%; }
    .header-nav a:not(.btn-reserve) { display: none; }
    .single-post-content { padding: 25px; }
    .blog-footer .footer-grid { grid-template-columns: 1fr; }
    .floating-reserve { bottom: 85px; right: 15px; padding: 12px 18px; font-size: 12px; }
}

/* === SEARCH === */
.search-form { display: flex; gap: 0; }
.search-form input {
    flex: 1;
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}
.search-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 14px;
}

/* === PROMO BAR === */
.promo-bar {
    background: linear-gradient(135deg, #0057b8, #0077be);
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
}
.promo-bar a {
    color: #FFD700;
    font-weight: 700;
    margin-left: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,215,0,0.4);
}
.promo-bar a:hover { color: #fff; }

/* === BREADCRUMBS === */
.breadcrumbs {
    background: #f0f4f8;
    padding: 12px 0;
    font-size: 13px;
    color: #888;
}
.breadcrumbs a { color: #0077be; }
.breadcrumbs a:hover { color: #e67e22; }
.breadcrumbs span { color: #555; }

/* === EXIT POPUP === */
.exit-popup { display:none; position:fixed; inset:0; z-index:99999; }
.exit-popup.active { display:flex; align-items:center; justify-content:center; padding:20px; }
.exit-popup-overlay { position:absolute; inset:0; background:rgba(0,0,0,0.6); backdrop-filter:blur(4px); }

.exit-popup-content {    position:relative; background:white; border-radius:20px; padding:50px 40px;    max-width:480px; width:90%; text-align:center; box-shadow:0 20px 60px rgba(0,0,0,0.3);    animation: popIn 0.3s ease; margin:0 auto; z-index:1;}
@keyframes popIn { from { transform:scale(0.8); opacity:0; } to { transform:scale(1); opacity:1; } }
.exit-popup-close {
    position:absolute; top:15px; right:20px; background:none; border:none;
    font-size:28px; color:#999; cursor:pointer;
}
.exit-popup-content h2 { font-size:1.6rem; color:#1a1a2e; margin-bottom:12px; }
.exit-popup-content p { color:#666; margin-bottom:24px; line-height:1.7; }
.exit-popup-btn {
    display:inline-block; background:linear-gradient(135deg,#e67e22,#f39c12);
    color:white; padding:15px 35px; border-radius:50px; font-weight:700;
    font-size:15px; text-transform:uppercase; letter-spacing:1px;
    box-shadow:0 6px 20px rgba(230,126,34,0.4); transition:all 0.3s;
}
.exit-popup-btn:hover { transform:translateY(-2px); box-shadow:0 10px 30px rgba(230,126,34,0.5); color:white; }
.exit-popup-wa {
    display:block; margin-top:16px; color:#25d366; font-weight:600; font-size:14px;
}
.exit-popup-wa:hover { color:#128c7e; }

@media (max-width: 768px) {
    .promo-bar { font-size: 12px; padding: 8px 15px; }
    .promo-bar a { display: block; margin: 5px 0 0; }
    
.exit-popup-content {    position:relative; background:white; border-radius:20px; padding:50px 40px;    max-width:480px; width:90%; text-align:center; box-shadow:0 20px 60px rgba(0,0,0,0.3);    animation: popIn 0.3s ease; margin:0 auto; z-index:1;}

/* FIX: Exit popup centering */
.exit-popup { display:none !important; }
.exit-popup.active {
    display:flex !important;
    position:fixed;
    inset:0;
    z-index:99999;
    align-items:center;
    justify-content:center;
    padding:20px;
}
.exit-popup-overlay {
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.6);
    backdrop-filter:blur(4px);
    z-index:1;
}
.exit-popup-content {
    position:relative;
    z-index:2;
    background:white;
    border-radius:20px;
    padding:50px 40px;
    max-width:480px;
    width:90%;
    text-align:center;
    box-shadow:0 20px 60px rgba(0,0,0,0.3);
    animation: popIn 0.3s ease;
}
