/*
Theme Name: RENO ESTATE
Theme URI: http://example.com/renoestate
Author: Antigravity
Author URI: http://example.com
Description: A premium real estate and renovation theme built with Tailwind CSS.
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: renoestate
Tags: real-estate, renovation, tailwind, clean, modern
*/

/* Variables */
:root {
    --primary-green: #4a5d50;
    --accent-sand: #d4c4b7;
    --accent-orange: #e69d76;
    --bg-ivory: #fdfcf8;
    --bg-warm-gray: #f3f2ee;
}

/* Global Styles */
body {
    font-family: 'Zen Maru Gothic', sans-serif;
    color: #4a4a4a;
    background-color: var(--bg-ivory);
    overflow-x: hidden;
}

h1,
h2,
h3,
.serif-font {
    font-family: 'Noto Serif JP', serif;
}

/* Navigation */
.nav-link {
    position: relative;
    color: #666;
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: var(--primary-green);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Buttons */
.btn-natural {
    background-color: var(--primary-green);
    color: white;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 93, 80, 0.2);
    display: inline-block;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-natural:hover {
    background-color: #3b4a40;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 93, 80, 0.3);
}

.btn-accent {
    background-color: var(--accent-orange);
    color: white;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 157, 118, 0.2);
    display: inline-block;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-accent:hover {
    background-color: #d68c66;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 157, 118, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 50px;
    transition: all 0.3s ease;
    background: white;
    display: inline-block;
}

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

/* Broker & Ad Buttons */
.btn-broker {
    background-color: #fff;
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 1rem;
}

.btn-broker:hover {
    background-color: var(--accent-orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 157, 118, 0.3);
}

.btn-ad {
    background-color: #fff;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 1rem;
}

.btn-ad:hover {
    background-color: var(--primary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 93, 80, 0.2);
}

/* Hero Section */
.hero-container {
    position: relative;
    height: 90vh;
    width: 96%;
    margin: 2vh auto;
    border-radius: 30px;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-slideshow li {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeZoom 18s linear infinite;
}

@keyframes fadeZoom {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    10% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    43% {
        opacity: 0;
        transform: scale(1.05);
    }

    100% {
        opacity: 0;
    }
}

/* Cards & Grid Items */
.property-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: none;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

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

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

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

.property-card.sold-out img {
    filter: grayscale(100%);
    opacity: 0.6;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.4s;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Forms & Filtering */
.filter-box {
    background: var(--bg-warm-gray);
    border-radius: 20px;
    padding: 2rem;
}

.form-input {
    width: 100%;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(74, 93, 80, 0.1);
}

/* ==========================================================================
   CF7 Custom Forms (Assessment & Recruitment)
   ========================================================================== */

/* Structure & Typography */
.form-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Add top margin to all section titles EXCEPT the very first one in the form */
.wpcf7 form > div:not(:first-child) .form-section-title {
    margin-top: 3rem;
}

.form-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.required-badge {
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.any-badge {
    background: #9ca3af;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.form-section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--accent-sand);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.file-input {
    width: 100%;
    padding: 0.5rem;
    background: white;
    border: 1px dashed #ddd;
    border-radius: 10px;
    cursor: pointer;
}

.rule-box {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 10px;
    height: 200px;
    overflow-y: scroll;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
}

/* form grids fix */
.grid>.wpcf7-form-control-wrap {
    grid-column: 1 / -1;
    width: 100%;
    display: block;
}

/* CF7 Radio Box Styling */
.wpcf7-radio {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.wpcf7-radio .wpcf7-list-item {
    margin: 0 !important;
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 200px;
}

.wpcf7-radio label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    height: 100%;
}

.wpcf7-radio label:hover {
    background-color: #f9f9f9;
}

.wpcf7-radio input[type="radio"],
.wpcf7-checkbox input[type="checkbox"] {
    margin-right: 1rem;
    accent-color: var(--primary-green);
    width: 18px;
    height: 18px;
}

.wpcf7-radio input:checked+.wpcf7-list-item-label {
    color: var(--primary-green);
    font-weight: bold;
}

/* Checkbox specific simple styling */
.wpcf7-checkbox .wpcf7-list-item {
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
}
.wpcf7-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}
.wpcf7-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: var(--primary-green);
    width: 16px;
    height: 16px;
}

.form-select {
    width: 100%;
    border: 1px solid #ddd;
    padding: 0.8rem 1rem;
    border-radius: 50px;
    background: white;
    font-size: 0.9rem;
    color: #666;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

.form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(74, 93, 80, 0.1);
}

/* Hide Turnstile Banner */
.cf-turnstile {
    display: none !important;
}

/* Property Selection (Broker) */
.property-select-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.property-select-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.property-select-card.selected {
    border-color: var(--primary-green);
    box-shadow: 0 8px 25px rgba(74, 93, 80, 0.15);
}

.property-select-card.selected .check-icon {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.property-select-card.selected .check-icon i {
    opacity: 1;
}

.check-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background: white;
    flex-shrink: 0;
}

.submit-area {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.submit-area.visible {
    opacity: 1;
    max-height: 200px;
}

/* Spec Grids */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.spec-item {
    background: #f9f9f9;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    color: #666;
    text-align: center;
}

.spec-label {
    display: block;
    font-size: 0.65rem;
    color: #999;
    margin-bottom: 2px;
}

/* Detail Pages */
.detail-table th {
    background: var(--bg-warm-gray);
    width: 30%;
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-weight: bold;
    color: var(--primary-green);
}

.detail-table td {
    width: 70%;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.feature-tag {
    background: #e8f5e9;
    color: var(--primary-green);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.material-tag {
    background: #f3f2ee;
    color: #666;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 8px;
    margin-bottom: 8px;
    display: inline-block;
}

.main-image {
    border-radius: 30px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .main-image {
        height: 500px;
    }
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sub-image {
    border-radius: 15px;
    overflow: hidden;
    height: 100px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.sub-image:hover {
    opacity: 0.8;
}

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

/* Gallery Slider Styles */
.property-gallery-container {
    margin-bottom: 2rem;
}

.main-image-slider {
    border-radius: 30px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    position: relative;
}

@media (min-width: 768px) {
    .main-image-slider {
        height: 500px;
    }
}

.main-image-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-image-slider .swiper-button-next,
.main-image-slider .swiper-button-prev {
    opacity: 0;
    transition: all 0.3s ease;
    background-color: var(--primary-green);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.main-image-slider .swiper-button-next:after,
.main-image-slider .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.main-image-slider:hover .swiper-button-next,
.main-image-slider:hover .swiper-button-prev {
    opacity: 1;
}

.main-image-slider .swiper-button-next:hover,
.main-image-slider .swiper-button-prev:hover {
    background-color: white;
    transform: scale(1.1);
}

.thumb-slider {
    height: 80px;
}

@media (min-width: 768px) {
    .thumb-slider {
        height: 100px;
    }
}

.thumb-slider .swiper-slide {
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.thumb-slider .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid var(--primary-green);
}

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

/* News Section */
.news-item {
    background: white;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
    padding: 1.5rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
}

.news-item:hover {
    background-color: #fcfcfc;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.category-label {
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 4px;
    display: inline-block;
    min-width: 90px;
    text-align: center;
}

.cat-info {
    background-color: #e0f2f1;
    color: #00695c;
}

.cat-event {
    background-color: #fff3e0;
    color: #e65100;
}

.cat-press {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.tab-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #666;
    transition: all 0.3s;
    background: white;
    border: 1px solid #eee;
    cursor: pointer;
    outline: none;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

/* Misc Utilities */
.pdf-icon {
    color: #ef4444;
    font-size: 0.9em;
    margin-right: 0.25rem;
}

.pdf-size {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-left: 0.5rem;
    font-weight: normal;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#map {
    height: 500px;
    width: 100%;
    border-radius: 30px;
}

/* Recruit Section */
.recruit-bg {
    background-image: url('images/recruit-bg.jpg');
    background-size: cover;
    background-position: center;
}

.recruit-card {
    background: white;
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.recruit-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
}

/* Company Section */
.company-table th {
    width: 30%;
    background: var(--bg-warm-gray);
    color: var(--primary-green);
    font-weight: bold;
    padding: 1.5rem;
    text-align: left;
    border-radius: 10px 0 0 10px;
}

.company-table td {
    width: 70%;
    padding: 1.5rem;
    border-bottom: 1px solid #f3f2ee;
}

.company-table tr {
    margin-bottom: 10px;
    display: table-row;
}

@media (max-width: 768px) {

    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
        border-radius: 0;
    }

    .company-table th {
        padding: 1rem 1.5rem 0.5rem;
    }

    .company-table td {
        padding: 0.5rem 1.5rem 1rem;
    }
}

.map-frame {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

/* Sticky CTA */
.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    z-index: 40;
    display: none;
}

@media (max-width: 768px) {
    .fixed-cta {
        display: block;
    }
}

/* Sell Page Specifics */
.sell-bg {
    background-image: url('https://images.unsplash.com/photo-1595878715977-2a8f8741498e?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
}

.sell-overlay {
    background: linear-gradient(to right, rgba(74, 93, 80, 0.9), rgba(74, 93, 80, 0.7));
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 20px;
    background: var(--accent-orange);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(230, 157, 118, 0.4);
}

.company-bg {
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
}

/* Gallery Detail Specifics */
.work-header-img {
    height: 60vh;
    width: 100%;
    object-fit: cover;
    border-radius: 0 0 50px 50px;
}

.point-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

.data-row {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.data-label {
    width: 30%;
    font-weight: bold;
    color: var(--primary-green);
}

.data-value {
    width: 70%;
}

.photo-zoom {
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
}

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

.photo-zoom:hover img {
    transform: scale(1.05);
}

.photo-zoom::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.photo-zoom:hover::after {
    opacity: 1;
}

/* Recruit Detail Specifics */
.recruit-table th {
    background: var(--bg-warm-gray);
    width: 30%;
    text-align: left;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    font-weight: bold;
    color: var(--primary-green);
    vertical-align: top;
}

.recruit-table td {
    width: 70%;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.8;
}

.flow-step {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #ddd;
    padding-bottom: 2rem;
}

.flow-step:last-child {
    border-left: none;
    padding-bottom: 0;
}

.flow-step::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--accent-orange);
    border-radius: 50%;
}

@media (max-width: 768px) {

    .recruit-table th,
    .recruit-table td {
        display: block;
        width: 100%;
    }

    .recruit-table th {
        padding-bottom: 0.5rem;
    }
}
