/*
Theme Name: Regency Realty v2
Theme URI: https://regencyrealty.lt
Author: Regency Realty
Author URI: https://regencyrealty.lt
Description: Custom high-end real estate theme for Lithuanian market. Zero-dependency, performance-focused.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: regencyrealty
*/

/* ============================================
   CSS VARIABLES (Design Tokens)
   ============================================ */
:root {
    /* Colors */
    --color-bg: #f5f4f2;
    --color-accent: #76675c;
    --color-text: #2c2c2c;
    --color-text-light: #666;
    --color-white: #ffffff;
    --color-black: #000000;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    /* Font Sizes (Fluid Typography) */
    --text-xs: clamp(0.75rem, 2vw, 0.875rem);
    --text-sm: clamp(0.875rem, 2.5vw, 1rem);
    --text-base: clamp(1rem, 3vw, 1.125rem);
    --text-lg: clamp(1.125rem, 3.5vw, 1.25rem);
    --text-xl: clamp(1.25rem, 4vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 5vw, 2rem);
    --text-3xl: clamp(2rem, 6vw, 3rem);
    --text-4xl: clamp(2.5rem, 7vw, 4rem);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;

    /* Layout */
    --container-max: 1600px;
    --container-padding: min(5%, 2rem);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove default focus outline and add custom accent color */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Remove blue tap highlight on mobile */
* {
    -webkit-tap-highlight-color: rgba(118, 103, 92, 0.2);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
}

p {
    margin-bottom: var(--space-sm);
}

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

a:hover {
    color: var(--color-text);
}

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

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.section {
    padding-block: var(--space-2xl);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }

    .hide-desktop {
        display: none;
    }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: #b4b0a8;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* WordPress admin bar compatibility */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 0; /* Logo touches edges */
    gap: var(--space-lg);
    min-height: clamp(60px, 8vw, 120px); /* Fluid: 60-120px responsive */
}

.site-branding {
    display: flex;
    align-items: center;
    height: 100%; /* Fill full header height */
}

.site-branding img {
    max-height: clamp(60px, 8vw, 120px); /* Fluid: matches header height */
    width: auto;
    object-fit: contain; /* Maintain aspect ratio */
}

/* WordPress Custom Logo Support - Header */
.custom-logo-link {
    display: block;
    height: 100%; /* Allow logo to use full height */
}

.site-branding .custom-logo {
    max-height: clamp(60px, 8vw, 120px); /* Fluid: matches header height */
    width: auto;
    object-fit: contain; /* Maintain aspect ratio */
}

/* Mobile Menu Toggle (Checkbox Hack) */
.menu-checkbox {
    display: none;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--space-xs);
}

.menu-icon {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-text);
    position: relative;
    transition: background var(--transition-base);
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-text);
    position: absolute;
    left: 0;
    transition: transform var(--transition-base);
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    top: 8px;
}

/* Animate hamburger to X */
.menu-checkbox:checked~.menu-toggle .menu-icon {
    background: transparent;
}

.menu-checkbox:checked~.menu-toggle .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-checkbox:checked~.menu-toggle .menu-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Navigation */
.main-nav {
    display: none;
}

.menu-checkbox:checked~.main-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #d4d0c8;
    box-shadow: var(--shadow-md);
    padding: var(--space-md);
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.nav-menu a {
    display: block;
    font-size: var(--text-sm);
    padding: clamp(0.5rem, 1vw, 0.75rem);  /* 8-12px responsive */
    color: var(--color-text);
    text-transform: uppercase;
}

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

/* Dropdown */
.nav-menu .sub-menu {
    list-style: none;
    padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
    margin-top: var(--space-xs);
    margin-left: calc(var(--space-xs) * -1);
    margin-right: calc(var(--space-xs) * -1);
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    display: none;
    /* Hidden by default on mobile */
}

/* Show submenu when parent has 'open' class */
.nav-menu .menu-item-has-children.open>.sub-menu {
    display: block;
}

/* Chevron indicator for items with children */
.nav-menu .menu-item-has-children>a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform var(--transition-base);
    vertical-align: middle;
}

/* Rotate chevron when open */
.nav-menu .menu-item-has-children.open>a::after {
    transform: rotate(180deg);
}

/* Language Switcher */
.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--space-md);
    font-size: var(--text-sm);
}

.language-switcher a {
    text-decoration: none;
    color: var(--color-text);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.language-switcher a:hover {
    color: var(--color-accent);
    background: rgba(0, 0, 0, 0.05);
}

.language-switcher a.active {
    font-weight: 700;
    color: var(--color-accent);
}

.language-switcher .separator {
    color: var(--color-text-muted);
}

.language-switcher .disabled {
    color: var(--color-text-muted);
    cursor: not-allowed;
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
        /* Hide hamburger on desktop */
    }

    .main-nav {
        display: flex !important;
        position: static;
        box-shadow: none;
        padding: 0;
        align-items: center;
        gap: var(--space-lg);
    }

    .nav-menu {
        flex-direction: row;
        align-items: center;
    }

    .nav-menu .menu-item-has-children {
        position: relative;
    }

    /* Desktop: chevron points down by default, right when hovering */
    .nav-menu .menu-item-has-children>a::after {
        border-top: 4px solid currentColor;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-bottom: 0;
    }

    .nav-menu .sub-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        background: #d4d0c8;
        box-shadow: var(--shadow-md);
        padding: var(--space-sm);
        min-width: 350px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all var(--transition-base);
    }

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

    .language-switcher {
        margin-top: 0;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-accent);
    color: var(--color-white);
    padding-block: var(--space-2xl);
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    height: calc(100dvh - 120px); /* Subtract header max height */
    /* Dynamic Viewport Height for mobile */
    min-height: 600px;
    display: flex;
    align-items: flex-start; /* VERTICAL alignment - align to top */
    justify-content: center; /* HORIZONTAL alignment - keep centered */
    overflow: hidden;
}

@media (max-width: 767px) {
    .hero-section {
        height: calc(100dvh - 60px); /* Mobile header actual height */
        min-height: auto; /* Remove 600px constraint */
    }
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Darken video slightly */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Top-aligned instead of centered */
    padding-top: 2.4rem; /* Controlled gap from header (20% reduced) */
}

.hero-main-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem); /* 28-40px responsive */
    color: var(--color-white);
    margin-bottom: var(--space-md);
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase; /* All caps */
}

.hero-cta-title {
    color: var(--color-white);
    text-align: center;
    margin-bottom: var(--space-md);
    font-size: clamp(1rem, 3vw, 1.25rem); /* Smaller: 16-20px instead of 20-24px */
    font-style: italic;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Mobile: Scale down hero content to fit on screen */
@media (max-width: 767px) {
    .hero-content {
        transform: scale(0.85); /* 15% reduction for small mobile screens */
        transform-origin: top center;
        padding-top: 2.5rem; /* Push content down 20% */
        padding-inline: var(--space-sm); /* Reduced from space-md to give title more width */
    }

    .hero-section .glass-form,
    .glass-form-wrapper .glass-form {
        padding-top: var(--space-md) !important; /* 24px instead of 32px */
        padding-bottom: 0.25rem !important; /* Minimal bottom spacing */
    }

    .hero-main-title {
        font-size: 19px; /* Reduced to fit on fewer lines */
        margin-bottom: var(--space-sm); /* Reduced from var(--space-md) */
    }

    .hero-cta-title {
        margin-bottom: var(--space-xs); /* Reduced from var(--space-md) */
    }

    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form textarea {
        font-size: 16px !important; /* Larger text, prevents zoom */
    }

    /* Reduce acceptance checkbox margins on mobile to prevent form overflow */
    .hero-section .wpcf7-acceptance {
        margin: var(--space-xs) 0 var(--space-xs) 0 !important;
    }

    .hero-section .wpcf7-form p:has(.wpcf7-acceptance) {
        margin-bottom: var(--space-xs) !important;
    }
}

/* Glass Form */
.glass-form-wrapper {
    max-width: 360px;
    width: 100%;
    margin: 0 auto; /* Ensure centering */
}

.glass-form {
    background: rgba(255, 255, 255, 0.15);
    /* Translucent white */
    backdrop-filter: blur(12px);
    /* The "Glass" effect */
    -webkit-backdrop-filter: blur(12px);
    /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.form-row {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    outline: none;
    transition: all var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: var(--color-white);
    box-shadow: 0 0 0 2px var(--color-accent);
}

.contact-form textarea {
    resize: vertical;
}

/* Hero Form: Wider on Desktop for 3-Field Layout */
@media (min-width: 1024px) {
    .hero-content {
        padding-top: calc(2.4rem + 100px); /* Original 2.4rem + 100px down */
    }

    .hero-content .glass-form-wrapper {
        max-width: 600px;
    }
}

/* Hero Form: 3-Field Horizontal Layout (Desktop Only) */
@media (min-width: 1024px) {
    /* Target the triple-field row wrapper in hero form only */
    .hero-content .glass-form-wrapper .form-row--triple {
        display: flex;
        flex-direction: row !important; /* Override column from base .form-row */
        gap: var(--space-sm);
    }

    /* Make each div wrapper inside equal width */
    .hero-content .glass-form-wrapper .form-row--triple > div {
        flex: 1;
        min-width: 0; /* Prevent flex item overflow */
    }

    /* CRITICAL FIX: Override global .wpcf7-form .form-row p styles */
    .hero-content .glass-form-wrapper .form-row--triple > div > p {
        display: block !important; /* Override display: flex from line 2043 */
        width: auto; /* Let it shrink to parent div's flexed width */
        margin: 0;
        padding: 0;
    }

    /* Ensure inputs fill their parent */
    .hero-content .glass-form-wrapper .form-row--triple input {
        width: 100%;
    }
}

/* Custom Checkbox */
.form-consent {
    margin-bottom: var(--space-md);
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: var(--color-white);
    font-size: var(--text-xs);
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    flex-shrink: 0;
    position: relative;
}

.custom-checkbox input:checked~.checkmark {
    background-color: var(--color-accent);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

.consent-text a {
    color: var(--color-white);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    text-align: center;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background-color: #5d5148;
    /* Darker accent */
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: var(--space-md);
    /* Logo should be original color */
}

/* WordPress Custom Logo Support - Footer */
.footer-logo .custom-logo {
    max-width: 150px;
    margin-bottom: var(--space-md);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-phone,
.footer-email {
    color: var(--color-white);
    font-size: var(--text-lg);
}

.footer-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
    color: var(--color-white);
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-menu a {
    color: var(--color-white);
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.footer-menu a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--space-md);
    text-align: center;
}

.copyright {
    font-size: var(--text-sm);
    opacity: 0.8;
    margin: 0;
}

/* ============================================
   CATEGORY GRID
   ============================================ */
.category-section {
    background-color: var(--color-white);
    min-height: 100dvh; /* Full viewport height */
    padding: min(2rem, 3%); /* Responsive padding - CSSKNOWLEDGE.md #1 */
    display: flex;
    align-items: center; /* Vertically center grid */
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.5rem, 1vw, 1rem); /* Smaller fluid gap - max 16px */
    width: 100%;
    margin: 0 auto;
}

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

@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card Design */
.category-card {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    /* Standard rectangle */
    overflow: hidden;
    border-radius: var(--radius-sm);
    transition: transform var(--transition-base);
}

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

.category-card__image-wrapper {
    width: 100%;
    height: 100%;
}

.category-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover .category-card__image {
    transform: scale(1.05);
}

/* Text Overlay Box - Based on User Design */
.category-card__content {
    position: absolute;
    bottom: 20%;
    /* Offset from bottom */
    left: 0;
    /* Aligned to left edge */
    background-color: var(--color-accent);
    /* Solid accent color */
    padding: 1.5rem 2rem 1.5rem 1.5rem;
    /* Padding */
    max-width: 85%;
    /* Don't span full width */
    z-index: 2;
    transition: background-color var(--transition-fast);
}

.category-card:hover .category-card__content {
    background-color: #5d5148;
    /* Darker accent on hover */
}

.category-card__title {
    color: var(--color-white);
    font-size: var(--text-lg);
    font-weight: 700;
    text-transform: uppercase;
    /* All Caps */
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.category-card__subtitle {
    margin: 0.4rem 0 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-sm);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.2px;
}

/* ============================================
   PROPERTY ARCHIVE & CARDS
   ============================================ */
.property-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

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

@media (min-width: 1024px) {
    .property-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.property-card {
    background: var(--color-white);
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-base);
}

.property-card:hover {
    box-shadow: var(--shadow-md);
}

.property-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.property-card__link:hover {
    color: inherit;
}

/* Card Image */
.property-card__image-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: #f0f0f0;
}

.property-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.property-card:hover .property-card__image {
    transform: scale(1.03);
}

.property-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: var(--text-sm);
}

/* Status Tags */
.property-card__tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-text);
    color: var(--color-white);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
    z-index: 2;
}

.property-card__tag--naujiena {
    background-color: #27ae60;
}

.property-card__tag--rezervuota {
    background-color: #f39c12;
}

.property-card__tag--parduota {
    background-color: #c0392b;
}

/* Card Content */
.property-card__content {
    padding: var(--space-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.property-card__title {
    font-size: var(--text-base);
    margin-bottom: var(--space-xs);
    line-height: 1.4;
    font-family: var(--font-heading);
}

.property-card__price {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-accent);
    margin-top: auto;
}

.property-card__specs {
    margin-top: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

/* Pagination */
.pagination-wrapper .nav-links {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
}

.pagination-wrapper .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

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

/* ============================================
   SINGLE PROPERTY LAYOUT (New Design)
   ============================================ */

/* Gallery Strip - Full Width */
.single-property .property-gallery-wrapper {
    margin-bottom: 0;
}

.single-property .property-gallery {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Height determined by gallery items aspect-ratio */
}

.single-property .property-gallery::-webkit-scrollbar {
    display: none;
}

.single-property .gallery-item {
    scroll-snap-align: start;
    flex: 0 0 33.333%;
    min-width: 300px;
    aspect-ratio: 6 / 5;
    overflow: hidden;
}

.single-property .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-property .gallery-nav {
    display: none; /* Hide dots for strip layout */
}

.single-property .property-gallery-placeholder {
    aspect-ratio: 6 / 5;
}

.single-property .property-gallery-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .single-property .gallery-item {
        flex: 0 0 100%;
        min-width: 100%;
        /* aspect-ratio: 6 / 5 inherited from desktop */
    }
}

/* 2-Column Layout: Main Content | Sidebar */
.single-property-layout {
    display: grid;
    gap: var(--space-xl);
    align-items: start;
    margin-top: var(--space-lg);
    padding-bottom: 48px;
}

@media (min-width: 1024px) {
    .single-property-layout {
        grid-template-columns: 1fr 320px;
    }
}

/* Main Content Column */
.single-property-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Header: Title & Price Row */
.single-property-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid #e0e0e0;
}

.single-property-header__info {
    flex: 1;
}

.single-property-header__title {
    font-size: var(--text-2xl);
    margin: 0 0 var(--space-xs) 0;
    line-height: 1.2;
}

.property-address {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-text-light);
    font-size: var(--text-sm);
    margin: 0;
}

.property-address svg {
    flex-shrink: 0;
    color: var(--color-accent);
}

.single-property-header__price-area {
    text-align: right;
    flex-shrink: 0;
}

.property-price-large {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.2;
}

.property-price-large .price-amount {
    display: inline-block;
}

.property-price-large .price-vat {
    font-size: var(--text-base);
    margin-left: var(--space-xs);
    font-weight: 600;
}

.property-sold-label {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-white);
    background-color: #8d8177;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 767px) {
    .single-property-header {
        flex-direction: column;
        gap: var(--space-md);
    }

    .single-property-header__price-area {
        text-align: left;
    }
}

/* Row 2: Specs + Description Grid */
.single-property-content {
    display: grid;
    gap: var(--space-xl);
    align-items: start;
}

@media (min-width: 768px) {
    .single-property-content {
        grid-template-columns: 280px 1fr;
    }
}

/* Column 1: Quick Specs */
.single-property-specs {
    /* No additional styling needed */
}

.single-property-specs .specs-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.single-property-specs__status {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.single-property-specs__status.status--naujiena {
    background: #5d5148;
    color: var(--color-white);
}

.single-property-specs__status.status--rezervuota {
    background: #76675c;
    color: var(--color-white);
}

.single-property-specs__status.status--parduota {
    background: #8d8177;
    color: var(--color-white);
}

.single-property-specs__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-property-specs__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: var(--text-sm);
}

.single-property-specs__item:last-child {
    border-bottom: none;
}

.single-property-specs__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-accent);
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: none;
}

.spec-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 6px 0;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    white-space: nowrap;
}

.spec-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-accent);
}

.spec-icon svg {
    width: 100%;
    height: 100%;
}

.spec-value {
    padding: 6px 0;
    font-size: var(--text-sm);
    color: var(--color-text-light);
    text-align: right;
}

/* Column 2: Description */
.single-property-description h2 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
}

.single-property-description .entry-content {
    font-size: var(--text-base);
    line-height: 1.7;
}

.single-property-description .entry-content p {
    margin-bottom: var(--space-md);
}

/* Video in Description */
.single-property-video {
    margin-top: var(--space-xl);
}

.single-property-video h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: var(--radius-sm);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Column 3: Sidebar with Form */
.single-property-sidebar {
    position: sticky;
    top: 100px;
}

.single-property-sidebar .glass-form-wrapper {
    max-width: 100%;
}

.single-property-sidebar .glass-form {
    background: rgba(180, 176, 168, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Agent Card in Sidebar */
.agent-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.agent-card__photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.agent-card__info {
    display: flex;
    flex-direction: column;
}

.agent-card__name {
    font-weight: 700;
    font-size: var(--text-base);
    color: var(--color-text);
}

.agent-card__title {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

/* Row 3: Amenities Section */
.single-property-amenities {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.single-property-amenities h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.single-property-amenities__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xs) var(--space-lg);
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-property-amenities__item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--color-accent);
}

.single-property-amenities__check {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-accent);
}

@media (max-width: 767px) {
    .single-property-amenities__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .single-property-amenities__list {
        grid-template-columns: 1fr;
    }
}

/* Legacy support - keep for other pages if needed */
.section-block {
    margin-bottom: var(--space-xl);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-container {
    display: grid;
    gap: var(--space-xl);
}

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

/* Contact Info */
.contact-list {
    list-style: none;
    font-size: var(--text-base);
    margin-bottom: var(--space-lg);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid #eee;
}

.contact-list .icon {
    font-size: 1.2em;
}

.contact-list a {
    color: var(--color-text);
    text-decoration: none;
}

.contact-list a:hover {
    color: var(--color-accent);
}

/* Map */
.map-wrapper {
    background: #eee;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: #f9f9f9;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
}

/* ============================================
   BLOG / NEWS
   ============================================ */

/* Blog Archive Section */
.blog-archive-section {
    padding-block: var(--space-lg);
}

.blog-header {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.blog-header__title {
    font-size: var(--text-2xl);
    margin: 0;
}

/* Archive Grid */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

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

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.blog-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.03);
}

.blog-card__content {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.blog-card__title a {
    color: var(--color-text);
}

.blog-card__title a:hover {
    color: var(--color-accent);
}

.blog-card__excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__link {
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--color-accent);
    margin-top: auto;
}

/* Single Post */
.single-post-container {
    padding-block: var(--space-lg);
}

.container-narrow {
    max-width: 800px;
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.post-header {
    text-align: center;
    padding-bottom: var(--space-lg);
}

.post-content.section {
    padding-top: 0;
}

.post-meta {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-cat::before {
    content: "•";
    margin-inline: 8px;
}

.post-title {
    font-size: var(--text-3xl);
    margin-bottom: 0;
}

.post-featured-image {
    margin-bottom: var(--space-lg);
}

.post-featured-image img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.entry-content {
    font-size: var(--text-lg);
    /* Larger font for reading */
    line-height: 1.8;
    color: #333;
}

.entry-content p {
    margin-bottom: var(--space-md);
}

.entry-content h2 {
    font-size: var(--text-2xl);
    margin-top: var(--space-lg);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: var(--space-md);
    margin-top: var(--space-xl);
}

/* ============================================
   HOMEPAGE: ABOUT SECTION
   ============================================ */
.about-section {
    background-color: var(--color-bg);
    padding-block: var(--space-xl);
}

.container-wide {
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: var(--space-md);
}

/* Stacked layout: intro text on top, partner cards below */
.about-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    align-items: stretch;
}

.about-content-card {
    background-color: var(--color-white);
    padding: var(--space-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

@media (min-width: 1024px) {
    .about-content-card {
        padding: var(--space-2xl) clamp(3rem, 5vw, 5rem);
    }
}

.about-text-wrapper h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-lg);
    font-family: var(--font-heading);
    color: var(--color-accent);
}

.about-text p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
    font-size: var(--text-base);
}

/* Partner cards — compact columns below the intro text; any number of
   brokers wraps onto new rows and stays centered */
.about-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
}

.partner-card {
    flex: 0 1 344px; /* 2 cards + gap = 720px; 3 per row from ~1100px */
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.partner-photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background-color: var(--color-bg);
}

.partner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.partner-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: 0.05em;
    color: var(--color-accent);
}

.partner-info {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.partner-name {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--text-xl, 1.5rem);
    color: var(--color-accent);
}

.partner-title {
    margin: 0;
    font-weight: 600;
}

.partner-spec {
    margin: 0;
    line-height: 1.5;
}

.partner-contacts {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.partner-contacts a {
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    word-break: break-word;
}

.partner-contacts a:hover {
    text-decoration: underline;
}

/* Ensure button is visible */
.about-actions {
    margin-top: 2rem;
}

.about-actions .btn {
    padding-inline: 40px;
}

/* ============================================
   SECONDARY CONTACT FORM SECTION
   ============================================ */
.contact-form-section {
    background-color: var(--color-white);
    padding-block: var(--space-xl);
    text-align: center;
}

.contact-form-section .section-title {
    font-size: var(--text-2xl);
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
}

.contact-form-section .glass-form-wrapper {
    margin-inline: auto;
}

/* Override glass effect for lighter background on contact pages */
.contact-form-section .glass-form {
    background: rgba(230, 230, 230, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.contact-section-secondary h3 {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.secondary-form-wrapper {
    margin: 0 auto;
}

/* ============================================
   CONTACT PAGE (KONTAKTAI)
   ============================================ */

/* Contact Hero Section */
.contact-hero-section {
    background-color: var(--color-bg);
    padding-block: var(--space-2xl);
    text-align: center;
}

.contact-hero-content {
    max-width: 800px;
    margin-inline: auto;
}

.contact-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
}

.contact-hero-text {
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: var(--space-xl);
}

.contact-hero-text p {
    margin-bottom: var(--space-sm);
}

/* Contact Info Cards */
.contact-info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-inline: auto;
}

@media (min-width: 640px) {
    .contact-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
    text-decoration: none;
    color: var(--color-text);
    min-height: 100px;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.contact-card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
}

.contact-card-value {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}

.contact-card:hover .contact-card-value {
    color: var(--color-accent);
}

/* Scroll to Form Button */
.btn-scroll-to-form {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 16px 32px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--text-lg);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-scroll-to-form:hover {
    background-color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-scroll-to-form svg {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}

/* ============================================
   SINGLE PROPERTY PAGE
   ============================================ */
.property-cta-wrapper {
    margin-top: 20px;
}

.property-map-placeholder {
    background: #eee;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
}

.property-enquiry {
    background: #f9f9f9;
    padding: 30px;
    border-radius: var(--radius-sm);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-map-iframe {
    border: 0;
}

/* ============================================
   CONTACT FORM 7 STYLING (Glass Theme)
   ============================================ */

/* 1. Reset CF7 Defaults - AGGRESSIVE */
.wpcf7-form p {
    margin: 0 !important;
    padding: 0 !important;
}

.wpcf7-form br {
    display: none !important;
    /* CF7 adds br between fields */
}

.wpcf7-form fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

/* 2. Form Row Layout */
.wpcf7-form .form-row {
    margin-bottom: var(--space-sm);
}

.wpcf7-form .form-row p {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* 3. Input Wrapper */
.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* 4. Inputs & Textareas */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--color-text) !important;
    outline: none !important;
    transition: all var(--transition-fast) !important;
    font-family: inherit !important;
    font-size: inherit !important;
    box-sizing: border-box !important;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
    background: var(--color-white) !important;
    box-shadow: 0 0 0 2px var(--color-accent) !important;
}

.wpcf7-form textarea {
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    resize: vertical !important;
}

/* 5. Checkbox (Consent) - Fix Structure */
.wpcf7-form p:has(.wpcf7-acceptance) {
    margin-bottom: var(--space-md) !important;
}

.wpcf7-acceptance {
    margin: var(--space-sm) 0 var(--space-md) 0 !important;
    /* Extra margin before button */
}

.wpcf7-acceptance .wpcf7-list-item {
    margin: 0 !important;
}

.wpcf7-acceptance .wpcf7-list-item label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    font-size: var(--text-xs) !important;
    color: var(--color-white) !important;
    cursor: pointer !important;
}

.wpcf7-acceptance input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 2px 0 0 0 !important;
    flex-shrink: 0 !important;
    accent-color: var(--color-accent) !important;
    cursor: pointer !important;
}

.wpcf7-acceptance .wpcf7-list-item-label {
    flex: 1 !important;
    line-height: 1.4 !important;
}

/* 6. Link Visibility */
.wpcf7-acceptance a {
    color: var(--color-white) !important;
    text-decoration: underline !important;
}

.wpcf7-acceptance a:hover {
    opacity: 0.8 !important;
}

/* Context-Specific Overrides for Forms on Light Backgrounds */

/* Homepage Secondary Form - Light background */
.contact-form-section .wpcf7-acceptance {
    text-align: left !important;
}

.contact-form-section .wpcf7-acceptance label {
    color: var(--color-text) !important;
}

.contact-form-section .wpcf7-acceptance a {
    color: var(--color-accent) !important;
}

/* Property Page Sidebar Form - Light background */
.single-property-sidebar .wpcf7-acceptance {
    text-align: left !important;
}

.single-property-sidebar .wpcf7-acceptance label {
    color: var(--color-text) !important;
}

.single-property-sidebar .wpcf7-acceptance a {
    color: var(--color-accent) !important;
}

/* 7. Submit Button */
.wpcf7-form input[type="submit"] {
    display: block !important;
    width: 100% !important;
    padding: 12px 24px !important; /* Symmetric padding for proper height */
    min-height: 48px; /* Touch-friendly height */
    line-height: 1.5; /* Vertical text centering */
    border: none !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer !important;
    font-weight: 700 !important;
    text-align: center !important;
    transition: all var(--transition-base) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    background-color: var(--color-accent) !important;
    color: var(--color-white) !important;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #5d5148 !important;
    transform: translateY(-1px) !important;
}

/* Disabled Submit Button State */
.wpcf7-form input[type="submit"]:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.wpcf7-form input[type="submit"]:disabled:hover {
    background-color: var(--color-accent) !important;
    transform: none !important;
}

/* Acceptance Required Hint */
.acceptance-hint {
    display: none;
    font-size: var(--text-xs);
    color: #e74c3c;
    margin-top: 6px;
    padding-left: 28px;
}

.acceptance-hint.visible {
    display: block;
}

/* Hero section (dark background) - light validation colors */
.hero-section .acceptance-hint,
.glass-form .acceptance-hint,
.hero-section .wpcf7-not-valid-tip,
.glass-form .wpcf7-not-valid-tip {
    color: #ffb3b3 !important;
}

/* Light background forms */
.contact-form-section .acceptance-hint,
.single-property-sidebar .acceptance-hint {
    color: #c0392b;
}

/* 8. Validation Messages */
.wpcf7-not-valid-tip {
    font-size: var(--text-xs) !important;
    color: #ff4d4d !important;
    margin-top: 4px !important;
}

.wpcf7-response-output {
    border-radius: var(--radius-sm) !important;
    font-size: var(--text-sm) !important;
    padding: var(--space-sm) !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.9) !important;
    margin: 0 !important; /* Remove gap below submit button */
}

/* ============================================
   PROPERTY ARCHIVE & GRID
   ============================================ */

/* Archive Header */
.archive-header {
    text-align: center;
    margin-top: var(--space-xl);    /* Add breathing room below site header */
    margin-bottom: var(--space-lg);
    padding-block: 0;
}

.property-archive-section {
    padding-block: 0;
}

.archive-title {
    font-size: var(--text-3xl);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-lg);
}

@media (min-width: 1024px) {
    .archive-title--category {
        white-space: nowrap;
    }
}

.archive-description {
    font-size: var(--text-lg);
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* Property Archive Section - Full-Width */
.property-archive-section {
    background-color: var(--color-bg);
    padding: min(2rem, 3%);
}

.property-archive-section .archive-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-xl);
}

/* Property Grid - 2 Columns */
.property-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2vw, 2rem);
    margin-bottom: var(--space-xl);
}

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

/* Property Card - Horizontal Layout */
.property-card {
    background: #f5f4f2;
    border: none;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
}

.property-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.property-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Mobile: Photo Top, Info Bottom */
@media (max-width: 767px) {
    .property-card__link {
        flex-direction: column;
    }

    .property-card__image-wrapper {
        order: 1;
    }

    .property-card__content {
        order: 2;
    }
}

/* Desktop: Info Left, Photo Right */
@media (min-width: 768px) {
    .property-card__link {
        flex-direction: row;
        /* Height determined by image aspect-ratio */
    }

    .property-card__content {
        flex: 0 0 35%;
        order: 1;
    }

    .property-card__image-wrapper {
        flex: 0 0 65%;
        order: 2;
    }
}

/* Card Content (Info Section) */
.property-card__content {
    background: #b4b0a8;
    color: var(--color-text);
    padding: min(var(--space-xl), 5%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.property-card__title {
    font-size: var(--text-lg);
    font-family: var(--font-heading);
    margin: 0 0 var(--space-sm) 0;
    line-height: 1.3;
}

.property-card__address {
    font-size: var(--text-sm);
    opacity: 0.9;
    margin-bottom: var(--space-md);
}

.property-card__price {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.property-card__specs {
    font-size: var(--text-sm);
    opacity: 0.9;
    margin-bottom: var(--space-sm);
}

.property-card__spec-item {
    display: inline-block;
    margin-right: var(--space-sm);
}

.property-card__button {
    display: inline-block;
    margin-top: auto;
    padding: 10px 20px;
    background: transparent;
    color: var(--color-accent);
    font-size: var(--text-sm);
    font-weight: 700;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-base);
}

.property-card:hover .property-card__button {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateX(4px);
}

/* Card Image Section */
.property-card__image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.property-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-base);
}

.property-card:hover .property-card__image {
    transform: scale(1.05);
}

.property-card__placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
    color: var(--color-text-light);
    font-size: var(--text-sm);
}

/* Status Tags */
.property-card__tag {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--color-white);
    color: var(--color-text);
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.property-card__tag--naujiena {
    background: #5d5148;
    color: var(--color-white);
}

.property-card__tag--rezervuota {
    background: #76675c;
    color: var(--color-white);
}

.property-card__tag--parduota {
    background: #8d8177;
    color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--color-text-light);
}

/* Pagination */
.pagination-wrapper {
    margin-top: var(--space-xl);
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: var(--space-xs);
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-numbers {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    min-width: 40px;
    text-align: center;
    background: var(--color-white);
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.page-numbers:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

.page-numbers.current {
    background: var(--color-accent);
    color: var(--color-white);
    font-weight: 700;
}

.page-numbers.dots {
    background: transparent;
    cursor: default;
}

.page-numbers.dots:hover {
    background: transparent;
    color: var(--color-text);
}

/* ============================================
   LIGHTBOX GALLERY
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(50, 50, 50, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox.active .lightbox__image {
    opacity: 1;
    transform: scale(1);
}

.lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.lightbox__close svg {
    width: 28px;
    height: 28px;
    stroke: white;
    stroke-width: 2.5;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.05);
}

.lightbox__nav svg {
    width: 28px;
    height: 28px;
    stroke: white;
    stroke-width: 2.5;
}

.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }

.lightbox__counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    color: white;
    font-size: var(--text-sm);
    font-weight: 500;
}

@media (max-width: 767px) {
    .lightbox__prev,
    .lightbox__next {
        display: none;
    }

    .lightbox__close {
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }

    .lightbox__close svg {
        width: 22px;
        height: 22px;
    }

    .lightbox__counter {
        bottom: 16px;
    }
}

/* Gallery item interaction */
.gallery-item {
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.2s ease, filter 0.2s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* Gallery Strip Navigation Arrows */
.property-gallery-wrapper {
    position: relative;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    z-index: 10;
    opacity: 0;
}

.property-gallery-wrapper:hover .gallery-arrow {
    opacity: 1;
}

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

.gallery-arrow svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.gallery-arrow--prev { left: 16px; }
.gallery-arrow--next { right: 16px; }

.gallery-arrow.hidden {
    opacity: 0 !important;
    pointer-events: none;
}

@media (max-width: 767px) {
    .gallery-arrow {
        width: 40px;
        height: 40px;
        opacity: 1;
    }

    .gallery-arrow svg {
        width: 20px;
        height: 20px;
    }

    .gallery-arrow--prev { left: 8px; }
    .gallery-arrow--next { right: 8px; }
}
/* ====================================
   GLOBAL POPUP (ALL PAGES)
   ==================================== */

.homepage-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(50, 50, 50, 0.5);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.homepage-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.homepage-popup-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    max-width: min(800px, 70vw);
    max-height: min(800px, 70vh);
    width: auto;
    height: auto;
    overflow: hidden;
    padding: 0;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popupScale 0.3s ease;
}

@keyframes popupScale {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-banner-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-banner-wrapper a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage-popup-banner {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.homepage-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.homepage-popup-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.homepage-popup-close::before,
.homepage-popup-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #ffffff;
    transform: rotate(45deg);
}

.homepage-popup-close::after {
    transform: rotate(-45deg);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .homepage-popup-content {
        max-width: 85vw;
        max-height: 85vh;
    }
}

/* ============================================
   PAGE TEMPLATE (Generic Pages)
   ============================================ */
.page-section {
    padding: var(--space-2xl) 0;
    min-height: 60vh;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: var(--space-xl);
    text-align: center;
}

.page-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 400;
    color: var(--color-text);
}

.page-body {
    font-size: var(--text-base);
    line-height: 1.8;
}

.page-body h2,
.page-body h3,
.page-body h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.page-body h2 {
    font-size: var(--text-2xl);
}

.page-body h3 {
    font-size: var(--text-xl);
}

.page-body h4 {
    font-size: var(--text-lg);
}

.page-body p {
    margin-bottom: var(--space-md);
}

.page-body ul,
.page-body ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.page-body li {
    margin-bottom: var(--space-xs);
}

.page-body a {
    color: var(--color-accent);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.page-body a:hover {
    color: var(--color-text);
}

/* ============================================
   COMMERCIAL LANDING PAGE (page-komercines-patalpos.php)
   Scoped sub-brand palette: navy + gold (matches supplied icons).
   ============================================ */
.lp-page {
    --lp-navy: #0c2251;
    --lp-navy-700: #0a1c44;
    --lp-gold: #e77b0f;
    --lp-gold-600: #c2670c;
    --lp-line: #dcdce1;
    --lp-cream: #f8f3ea;
    --lp-max: var(--container-max); /* full-width, matches the site-wide .container */
    /* Larger type scale for the landing only (~+30% over the site-wide scale):
       every piece of LP copy reads bigger without affecting the rest of the site. */
    --text-xs: clamp(0.975rem, 2.6vw, 1.14rem);
    --text-sm: clamp(1.14rem, 3.25vw, 1.3rem);
    --text-base: clamp(1.3rem, 3.9vw, 1.46rem);
    --text-lg: clamp(1.46rem, 4.55vw, 1.63rem);
    --text-xl: clamp(1.63rem, 5.2vw, 1.95rem);
    --text-2xl: clamp(1.95rem, 6.5vw, 2.6rem);
    --text-3xl: clamp(2.6rem, 7.8vw, 3.9rem);
    --text-4xl: clamp(3.25rem, 9.1vw, 5.2rem);
    background: #fff;
    color: var(--color-text);
}

.lp-container {
    max-width: var(--lp-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* Hero + header as one full-width section.
   Logo sits top-left; the building photo is a full-bleed background on the
   right (fading into white) on desktop, and is hidden on mobile so the copy
   sits on clean white (no text/photo overlap). */
.lp-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #fff;
}

/* Logo + copy: constrained to the site-wide full-width container */
.lp-hero__inner {
    position: relative;
    z-index: 1;
    max-width: var(--lp-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
    padding-block: clamp(1.5rem, 3vw, 2.25rem) var(--space-xl);
    display: flex;
    flex-direction: column;
}

.lp-logo {
    display: inline-flex;
    margin-bottom: clamp(1.5rem, 5vw, 3rem);
}

.lp-logo img {
    height: clamp(64px, 18vw, 120px);
    width: auto;
    max-width: 100%; /* wide horizontal lockup: never run off a narrow screen */
    display: block;
}

.lp-hero__title {
    font-family: var(--font-heading);
    color: var(--lp-navy);
    font-size: clamp(1.8rem, 4.5vw, 2.93rem); /* 10% smaller than before */
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.lp-hero__text {
    color: var(--lp-navy);
    font-size: var(--text-base);
    margin: 0;
}

/* Building photo — full-bleed background layer (positioned per breakpoint) */
.lp-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.lp-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile: drop the building photo entirely — logo + copy sit on clean white,
   so the text can never overlap the image. Hero is sized by its content. */
@media (max-width: 991px) {
    .lp-hero__media {
        display: none;
    }

    .lp-hero__text {
        max-width: 42ch;
    }
}

/* Desktop: photo bleeds full-height to the right viewport edge, fading left into white */
@media (min-width: 992px) {
    .lp-hero__inner {
        min-height: clamp(460px, 56vh, 680px);
        padding-bottom: clamp(3rem, 8vh, 6rem);
    }

    /* ~2x the logo here — it clears the photo, whose left edge fades to white */
    .lp-logo img {
        height: clamp(110px, 11vw, 168px);
    }

    .lp-hero__copy {
        max-width: 31rem;
        margin-block: auto;
    }

    .lp-hero__media {
        inset: 0 0 0 auto;
        width: min(58%, 1040px);
    }

    .lp-hero__media img {
        object-position: left center;
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26%);
        mask-image: linear-gradient(to right, transparent 0, #000 26%);
    }
}

/* Card */
.lp-formsec {
    padding: var(--space-xl) 0;
}

.lp-card {
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-md);
}

.lp-card__title {
    font-family: var(--font-heading);
    color: var(--lp-navy);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-xs);
}

.lp-card__intro {
    color: var(--color-text-light);
    max-width: 62ch;
    margin-bottom: var(--space-lg);
}

/* Fields */
.lp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: var(--space-md);
}

.lp-field label {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--lp-navy);
}

.lp-field input,
.lp-field select,
.lp-field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--lp-line);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text);
    background: #fff;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.lp-field input::placeholder,
.lp-field textarea::placeholder {
    color: #9a9a9a;
}

.lp-field input:focus,
.lp-field select:focus,
.lp-field textarea:focus {
    outline: none;
    border-color: var(--lp-navy);
    box-shadow: 0 0 0 3px rgba(12, 34, 81, 0.12);
}

.lp-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230c2251' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.2rem;
}

.lp-field textarea {
    resize: vertical;
    min-height: 110px;
}

.lp-field--tall {
    flex: 1;
}

.lp-field--tall textarea {
    height: 100%;
}

/* Form layout */
.lp-form__grid {
    display: grid;
    gap: var(--space-md) var(--space-lg);
}

.lp-form__col {
    display: flex;
    flex-direction: column;
}

.lp-form__col .lp-field:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .lp-form__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.lp-form__footer {
    margin-top: var(--space-lg);
    display: grid;
    gap: var(--space-md);
}

.lp-consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: var(--text-xs);
    color: var(--color-text-light);
    line-height: 1.5;
}

.lp-consent input {
    margin-top: 0.2rem;
    flex: 0 0 auto;
    accent-color: var(--lp-navy);
}

.lp-consent a {
    color: var(--lp-gold-600);
    text-decoration: underline;
}

@media (min-width: 768px) {
    .lp-form__footer .lp-btn--navy {
        justify-self: end;
        width: auto;
        min-width: 260px;
    }
}

.lp-form__msg {
    margin-top: var(--space-md);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
}

.lp-form__msg--success {
    background: #e8f5ea;
    color: #1d6b2b;
}

.lp-form__msg--error {
    background: #fdecec;
    color: #b3261e;
}

.lp-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Buttons */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--text-sm);
    line-height: 1;
    padding: 0.95rem 1.6rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.lp-btn--navy {
    background: var(--lp-navy);
    color: #fff;
    width: 100%;
}

.lp-btn--navy:hover {
    background: var(--lp-navy-700);
}

.lp-btn--navy:disabled {
    opacity: 0.6;
    cursor: default;
}

.lp-btn--gold-outline {
    background: transparent;
    border-color: var(--lp-gold);
    color: var(--lp-gold-600);
}

.lp-btn--gold-outline:hover {
    background: var(--lp-gold);
    color: #fff;
}

/* Process — "Kaip tai veikia" */
.lp-process {
    padding: var(--space-xl) 0;
}

.lp-process__title {
    text-align: center;
    font-family: var(--font-heading);
    color: var(--lp-navy);
    font-size: var(--text-xl); /* secondary section — smaller than the hero title */
    margin-bottom: var(--space-lg);
}

.lp-process__title::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    background: var(--lp-gold);
    margin: var(--space-sm) auto 0;
}

.lp-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.lp-step {
    position: relative;
    text-align: center;
}

.lp-step__num {
    position: relative;
    z-index: 1;
    width: 15px;
    height: 15px;
    margin: 0 auto 5px; /* ~3x smaller; tight gap down to the icon */
    border-radius: 50%;
    background: var(--lp-navy);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.lp-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 7px; /* centre on the smaller (15px) number */
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--lp-gold);
    z-index: 0;
}

.lp-step__icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
    margin: 0 auto 4px; /* tight gap down to the caption */
}

.lp-step__cap {
    display: block;
    font-size: clamp(0.6875rem, 1.8vw, 0.8125rem); /* +1px over the previous step */
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere; /* long words may wrap so the 4-up row never overflows */
    color: var(--lp-navy);
}

@media (max-width: 767px) {
    /* Compact single-row steps on mobile: keep all four across with a tight gap
       (the step itself is now small enough), and keep the connector line. */
    .lp-steps {
        gap: var(--space-xs);
    }
}

/* Desktop/tablet: step number +50% (mobile stays compact, per brief) */
@media (min-width: 768px) {
    .lp-step__num {
        width: 22px;
        height: 22px;
        font-size: 0.9375rem;
    }

    .lp-step:not(:last-child)::after {
        top: 11px; /* re-centre on the larger number */
    }
}

/* CTA banner */
.lp-cta {
    padding: var(--space-lg) 0;
}

.lp-cta__box {
    background: var(--lp-cream);
    border: 1px solid #ece2cf;
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 2rem);
    display: grid;
    gap: var(--space-md);
    align-items: center;
}

.lp-cta__icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.lp-cta__text h2 {
    font-family: var(--font-heading);
    color: var(--lp-navy);
    font-size: var(--text-xl);
    margin-bottom: 0.25rem;
}

.lp-cta__text p {
    color: var(--color-text-light);
    font-size: var(--text-sm);
    margin: 0;
}

@media (min-width: 768px) {
    .lp-cta__box {
        grid-template-columns: auto 1fr auto;
    }
}

/* Agent card */
.lp-agent {
    padding: var(--space-xl) 0 var(--space-2xl);
}

.lp-agent__card {
    display: grid;
    gap: var(--space-lg);
    align-items: center;
}

.lp-agent__photo img {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
}

.lp-agent__name {
    font-family: var(--font-heading);
    color: var(--lp-navy);
    font-size: var(--text-2xl);
    margin-bottom: 0.15rem;
}

.lp-agent__role {
    color: var(--lp-gold-600);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.lp-agent__contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.lp-agent__contacts li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--color-text);
}

.lp-agent__contacts svg {
    width: 20px;
    height: 20px;
    color: var(--lp-gold);
    flex: 0 0 auto;
}

.lp-agent__contacts a {
    color: var(--color-text);
}

.lp-agent__contacts a:hover {
    color: var(--lp-navy);
}

@media (min-width: 640px) {
    .lp-agent__card {
        grid-template-columns: auto 1fr;
        gap: var(--space-xl);
    }
}

/* Footer (slim navy bar) */
.lp-footer {
    background: var(--lp-navy);
    padding: var(--space-md) 0;
}

.lp-footer__inner {
    display: flex;
    justify-content: center;
}

.lp-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-md);
    justify-content: center;
}

.lp-footer__menu a {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-sm);
}

.lp-footer__menu a:hover {
    color: #fff;
}

/* Object submission modal */
.lp-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: var(--space-lg) var(--space-sm);
    background: rgba(12, 34, 81, 0.55);
    overflow-y: auto;
}

.lp-modal.active {
    display: flex;
}

.lp-modal__dialog {
    position: relative;
    width: 100%;
    max-width: var(--lp-max);
    margin: auto;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-lg);
}

.lp-modal__close {
    position: absolute;
    top: 0.6rem;
    right: 1rem;
    background: none;
    border: 0;
    font-size: 2rem;
    line-height: 1;
    color: var(--lp-navy);
    cursor: pointer;
}
