/*
Theme Name: VillaMax - Villa Kiralama Teması
Theme URI: https://villamax.com
Author: VillaMax Team
Author URI: https://villamax.com
Description: Türkiye'nin en profesyonel villa kiralama WordPress teması. Kiralık villa, otel ve yat kiralama siteleri için özel tasarlanmış, modern ve SEO uyumlu tema.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: villamax
Tags: villa-kiralama, rental, booking, real-estate, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===== CSS Variables ===== */
:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --secondary: #FF6B35;
    --accent: #00D4AA;
    --dark: #0A1628;
    --dark-light: #1A2744;
    --gray: #64748B;
    --gray-light: #E2E8F0;
    --white: #FFFFFF;
    --gradient-hero: linear-gradient(135deg, #0A1628 0%, #1E3A5F 50%, #2D5A87 100%);
    --gradient-cta: linear-gradient(135deg, #FF6B35 0%, #FF8F65 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.16);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

ul, ol {
    list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 64px; }
h2 { font-size: 42px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

/* ===== Container ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--gray-light);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-cta {
    background: var(--gradient-cta);
    color: var(--white);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,107,53,0.4);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 12px 48px;
    box-shadow: var(--shadow-md);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-cta);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
}

.logo-text span {
    color: var(--secondary);
}

/* ===== Navigation ===== */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-navigation a {
    color: var(--dark);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 8px 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.main-navigation a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children > a::before {
    content: ' ▾';
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    flex-direction: column;
    gap: 0;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    margin: 0;
}

.sub-menu a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

.sub-menu a:hover {
    background: var(--gray-light);
}

.sub-menu a::after {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-hero);
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px 48px 80px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: 10%;
    animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    top: 30%;
    left: -50px;
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 30px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.2);
    animation: fadeInUp 0.8s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-title span {
    color: var(--secondary);
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 520px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-stats {
    display: flex;
    gap: 48px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

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

/* ===== Search Box ===== */
.search-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.search-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.search-tab {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--gray-light);
    color: var(--gray);
    border: none;
    font-family: inherit;
}

.search-tab.active {
    background: var(--primary);
    color: var(--white);
}

.search-tab:hover:not(.active) {
    background: #D1D5DB;
}

.search-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.field-group {
    position: relative;
}

.field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.field-input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.field-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,102,255,0.1);
}

.field-input::placeholder {
    color: var(--gray);
}

.field-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    margin-top: 12px;
}

.search-btn {
    width: 100%;
    padding: 18px;
    background: var(--gradient-cta);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    font-family: inherit;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,107,53,0.4);
}

/* ===== Trust Section ===== */
.trust-section {
    background: var(--white);
    padding: 24px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    border-bottom: 1px solid var(--gray-light);
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray);
    font-size: 14px;
}

.trust-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #E8F4FF 0%, #F0F7FF 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
}

/* ===== Sections ===== */
.section {
    padding: 80px 48px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 16px;
    max-width: 500px;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    transition: gap 0.3s ease;
}

.view-all:hover {
    gap: 12px;
}

/* ===== Regions Grid ===== */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.region-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

.region-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.region-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.region-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,22,40,0.9) 0%, rgba(10,22,40,0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.region-name {
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    font-family: 'Poppins', sans-serif;
}

.region-count {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

/* ===== Villa Types ===== */
.villa-types-section {
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.type-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.type-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.type-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #E8F4FF 0%, #F0F7FF 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: all 0.3s ease;
}

.type-card:hover .type-icon {
    background: var(--primary);
    transform: scale(1.1);
}

.type-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--dark);
}

/* ===== Villa Cards ===== */
.villas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.villa-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid var(--gray-light);
}

.villa-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.villa-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.villa-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.villa-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
}

.villa-badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.badge-discount {
    background: var(--secondary);
    color: var(--white);
}

.badge-new {
    background: var(--accent);
    color: var(--white);
}

.badge-featured {
    background: var(--primary);
    color: var(--white);
}

.villa-favorite {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 18px;
}

.villa-favorite:hover {
    background: var(--secondary);
    color: var(--white);
    transform: scale(1.1);
}

.villa-info {
    padding: 24px;
}

.villa-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 8px;
}

.villa-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.4;
    font-family: 'Poppins', sans-serif;
}

.villa-features {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-light);
}

.feature {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray);
    font-size: 13px;
}

.villa-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.villa-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-star {
    color: #FFC107;
}

.rating-score {
    font-weight: 700;
    color: var(--dark);
}

.rating-count {
    color: var(--gray);
    font-size: 13px;
}

.villa-price {
    text-align: right;
}

.price-old {
    font-size: 13px;
    color: var(--gray);
    text-decoration: line-through;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.price-period {
    font-size: 13px;
    color: var(--gray);
    font-weight: 400;
}

/* ===== App Section ===== */
.app-section {
    background: var(--gradient-hero);
    padding: 100px 48px;
    position: relative;
    overflow: hidden;
}

.app-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
}

.app-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.app-text {
    color: var(--white);
}

.app-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.app-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.7;
}

.app-buttons {
    display: flex;
    gap: 16px;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    color: var(--white);
    transition: all 0.3s ease;
}

.app-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.app-btn-icon {
    font-size: 28px;
}

.app-btn-text {
    text-align: left;
}

.app-btn-small {
    font-size: 11px;
    opacity: 0.8;
}

.app-btn-large {
    font-size: 16px;
    font-weight: 600;
}

.app-mockup {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 24px;
}

.phone-logo {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.phone-tagline {
    font-size: 14px;
    opacity: 0.9;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 48px 40px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 64px;
}

.footer-brand .logo-text {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-desc {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

.footer-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 24px;
    font-family: 'Poppins', sans-serif;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

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

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-badge {
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

/* ===== Single Villa Page ===== */
.villa-single-header {
    padding: 140px 48px 60px;
    background: var(--gray-light);
}

.villa-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gallery-main {
    height: 500px;
}

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

.gallery-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
}

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

.villa-single-content {
    padding: 60px 48px;
}

.villa-single-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.villa-details h1 {
    font-size: 36px;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}

.villa-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    color: var(--gray);
}

.villa-description {
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 32px;
}

.villa-amenities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--gray-light);
    border-radius: var(--radius-md);
}

/* Booking Sidebar */
.booking-sidebar {
    position: sticky;
    top: 120px;
}

.booking-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-light);
}

.booking-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
}

.booking-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--gray);
}

.booking-form .field-group {
    margin-bottom: 16px;
}

.booking-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid var(--gray-light);
    margin-top: 16px;
    font-weight: 700;
}

/* ===== Archive / Listing Page ===== */
.archive-header {
    padding: 140px 48px 60px;
    background: var(--gradient-hero);
    color: var(--white);
    text-align: center;
}

.archive-title {
    font-size: 48px;
    margin-bottom: 16px;
}

.archive-subtitle {
    font-size: 18px;
    opacity: 0.9;
}

.archive-filters {
    padding: 24px 48px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.filters-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 12px 20px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.archive-content {
    padding: 48px;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 2px solid var(--gray-light);
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-title {
        font-size: 48px;
    }

    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .types-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .villas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .villa-single-grid {
        grid-template-columns: 1fr;
    }

    .booking-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 12px 24px;
    }

    .main-navigation {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-section {
        padding: 100px 24px 60px;
    }

    h1, .hero-title {
        font-size: 36px;
    }

    h2, .section-title {
        font-size: 32px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 24px;
    }

    .trust-section {
        padding: 24px;
        gap: 24px;
    }

    .regions-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .region-card.large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .app-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .app-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .villa-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-main {
        height: 300px;
    }

    .villa-amenities {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== WordPress Specific ===== */
.wp-block-image img {
    border-radius: var(--radius-md);
}

.alignwide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Comments */
.comments-area {
    max-width: 800px;
    margin: 48px auto;
    padding: 0 48px;
}

.comment-list {
    margin-bottom: 48px;
}

.comment {
    padding: 24px;
    background: var(--gray-light);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.comment-author {
    font-weight: 700;
    margin-bottom: 8px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-family: inherit;
    margin-bottom: 16px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* WooCommerce Compatibility */
.woocommerce .button,
.woocommerce-page .button {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 24px !important;
}

.woocommerce .button:hover,
.woocommerce-page .button:hover {
    background: var(--primary-dark) !important;
}
