/*
Theme Name: Chronolix Estates - Thailand Real Estate Hub
Author: PBN Creative
Description: A premium, trust-focused real estate theme for Thailand properties. Designed for expats and investors.
Version: 1.0.0
*/

:root {
    /* Chronolix Estates - Luxury Thai Palette */
    --primary: #0f766e;      /* Deep Teal - Stability and Trust */
    --accent: #d97706;       /* Amber/Gold - Premium Feel */
    --bg-main: #ffffff;
    --bg-alt: #f1f5f9;
    --bg-dark: #0f172a;
    --text-main: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    
    --container-width: 1200px;
    --content-width: 800px;
    --radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 80px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
.site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--bg-dark);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--primary);
    position: relative;
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.main-nav a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 10rem 0;
    background: radial-gradient(circle at top right, #f0fdfa, #ffffff);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--bg-dark);
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-search {
    background: var(--white);
    padding: 0.5rem;
    border-radius: 100px;
    display: flex;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    max-width: 500px;
}

.hero-search input {
    flex-grow: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    outline: none;
    border-radius: 100px;
}

.btn-search {
    background: var(--primary);
    color: #fff;
    padding: 0 2rem;
    border: none;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
}

/* Emoji Composition */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.emoji-house-wrap {
    position: relative;
    width: 400px;
    height: 400px;
    background: rgba(15, 118, 110, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-main {
    font-size: 12rem;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.emoji-badge {
    position: absolute;
    top: 15%;
    right: 15%;
    font-size: 4rem;
    z-index: 3;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Sections */
.section-padding { padding: 8rem 0; }

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--bg-dark);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Property Cards */
.prop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.prop-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.prop-img {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.prop-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.prop-card:hover .prop-img img {
    transform: scale(1.1);
}

.prop-icon-header {
    height: 180px;
    position: relative;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    border-bottom: 1px solid var(--border);
}

.prop-badge {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    background: var(--primary);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.prop-body { padding: 1.5rem; }

.prop-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.prop-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bg-dark);
}

.prop-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

/* Post Content */
.post-header {
    padding: 8rem 0 6rem;
    background: var(--bg-alt);
    text-align: center;
}

.post-meta {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.post-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    max-width: 900px;
    margin: 0 auto;
    color: var(--bg-dark);
}

.post-main { padding: 6rem 0; }

.post-content-body {
    max-width: var(--content-width);
    margin: 0 auto;
    font-size: 1.15rem;
}

.post-content-body h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 3.5rem 0 1.5rem;
    color: var(--bg-dark);
}

.post-content-body p { margin-bottom: 2rem; }

/* Checklist Style for Chronolix */
.post-content-body ul {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: var(--radius);
    list-style: none;
    margin: 3rem 0;
    border-left: 6px solid var(--primary);
}

.post-content-body li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-content-body li::before {
    content: '✅';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Footer */
.site-footer {
    background: var(--bg-dark);
    color: #fff;
    padding: 8rem 0 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 6rem;
    margin-bottom: 6rem;
}

.footer-brand .logo { color: #fff; margin-bottom: 1.5rem; }

.footer-desc {
    color: #94a3b8;
    line-height: 1.8;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    margin-bottom: 1.2rem;
}

.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    padding-top: 4rem;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 0.9rem;
}

/* Pagination */
.pagination-container {
    margin-top: 6rem;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.8rem;
}

.pagination-list a, .pagination-list span {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    font-weight: 700;
}

.pagination-list a:hover, .pagination-list .is-active span {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Mobile */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin: 0 auto 3rem; }
    .hero-search { margin: 0 auto; }
    .prop-grid, .footer-grid { grid-template-columns: 1fr; }
    .header-inner { flex-direction: column; gap: 2rem; }
}
