/* =========================
   基本
========================= */

.property-page {
    background: #f6f3ee;
    padding: 160px 20px 100px;
}

.property-container {
    max-width: 1100px;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    margin-bottom: 60px;
    font-weight: bold;
}

.page-title span {
    color: #c9a86a;
    letter-spacing: 5px;
    font-weight: bold;
}

.page-title h1 {
    font-size: 42px;
    margin: 15px 0 0;
}


/* =========================
   検索フォーム
========================= */

.property-search {
    max-width: 1100px;
    margin: 0 auto 50px;
    display: flex;
    gap: 14px;
}

.property-search input,
.property-search select {
    flex: 1;
    min-width: 170px;

    padding: 14px 48px 14px 18px;

    border: 1px solid #ddd;
    border-radius: 999px;

    font-size: 15px;

    background-color: #fff;

    box-sizing: border-box;
}

.property-search input {
    min-width: 240px;
}

.property-search select {
    appearance: none;
    -webkit-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
}

.property-search button,
.property-search a {
    border: none;

    background: #0f5b6b;
    color: #fff;

    padding: 14px 28px;

    border-radius: 999px;

    font-weight: bold;
    text-decoration: none;

    white-space: nowrap;
    cursor: pointer;

    box-sizing: border-box;
}

.property-search a {
    background: #999;
}


/* =========================
   物件一覧
========================= */

.property-list {
    display: grid;
    gap: 30px;
}

.property-card {
    display: grid;
    grid-template-columns: 360px 1fr;

    width: 100%;

    background: #fff;
    border-radius: 24px;
    overflow: hidden;

    box-shadow: 0 18px 45px rgba(0, 0, 0, .07);

    text-decoration: none;
    color: inherit;
}


/* 画像を入れる専用エリア */

.property-image-area {
    width: 100%;
    min-width: 0;

    background: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}


/* 実際の画像 */

.property-image {
    width: 100%;
    height: 380px;

    object-fit: contain;
    object-position: center;

    display: block;

    background: #fff;
}


/* 文字エリア */

.property-body {
    width: 100%;

    padding: 40px;

    box-sizing: border-box;

    background: #fff;
}

.property-body h2 {
    font-size: 28px;
    line-height: 1.5;

    margin: 0 0 20px;
}

.price {
    font-size: 42px;
    line-height: 1.3;

    font-weight: bold;
    color: #0f5b6b;

    margin: 0 0 35px;
}


/* =========================
   画像なし
========================= */

.property-no-image {
    display: flex;

    width: 100%;
    min-height: 380px;

    justify-content: center;
    align-items: center;

    background: #eef2f2;

    color: #6f7f82;

    font-weight: 700;
}


/* =========================
   詳細ページ
========================= */

.property-detail-card {
    display: flex;

    gap: 50px;

    align-items: flex-start;

    width: 100%;

    background: #fff;

    padding: 40px;

    border-radius: 25px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);

    box-sizing: border-box;
}

.property-detail-image {
    width: 45%;
    min-width: 0;
}

.property-detail-body {
    width: 55%;
    min-width: 0;
}


/* 詳細メイン画像 */

.main-rental-image {
    width: 100%;
    height: 450px;

    object-fit: contain;
    object-position: center;

    background: #fff;

    border-radius: 20px;

    display: block;
}


/* =========================
   サムネイル
========================= */

.rental-thumbs {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 14px;
}

.rental-thumbs img {
    width: 90px;
    height: 70px;

    object-fit: cover;
    object-position: center;

    border-radius: 10px;

    cursor: pointer;

    opacity: 0.75;

    transition: 0.3s;

    display: block;
}

.rental-thumbs img:hover {
    opacity: 1;

    transform: translateY(-3px);
}


/* =========================
   詳細情報
========================= */

.property-detail-list {
    display: grid;

    grid-template-columns: 140px 1fr;

    border-top: 1px solid #ddd;

    margin: 0;
}

.property-detail-list dt,
.property-detail-list dd {
    padding: 18px;

    border-bottom: 1px solid #ddd;

    margin: 0;

    box-sizing: border-box;
}

.property-detail-list dt {
    background: #f7f7f7;

    font-weight: bold;
}


/* =========================
   詳細グリッド
========================= */

.property-detail-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px 80px;
}

.property-detail-grid div {
    display: flex;

    gap: 16px;
}

.property-detail-grid span {
    color: #0f5b6b;

    font-weight: bold;

    min-width: 90px;
}

.property-detail-grid p {
    margin: 0;
}


/* =========================
   説明文
========================= */

.property-description {
    margin-top: 40px;

    padding: 28px;

    background: #f8f5ef;

    border-radius: 18px;

    line-height: 2;
}

.property-description h3 {
    margin: 0 0 16px;

    color: #0f5b6b;

    font-size: 22px;
}


/* =========================
   設備
========================= */

.rental-facilities {
    width: 100%;

    margin: 40px 0;

    padding: 30px 36px;

    background: #f8f5ef;

    border-radius: 22px;

    box-sizing: border-box;
}

.rental-facilities h3 {
    margin: 0 0 18px;

    color: #0f5b6b;

    font-size: 24px;
}

.rental-facilities p {
    margin: 0;

    line-height: 2;

    font-size: 16px;
}


/* =========================
   ポイント
========================= */

.point-box {
    background: #f8f8f8;

    padding: 30px;

    border-radius: 16px;

    margin-top: 40px;
}

.point-box h2 {
    color: #0f5b6b;

    font-size: 28px;

    margin: 0 0 15px;
}


/* =========================
   お問い合わせ
========================= */

.contact-link {
    display: inline-block;

    background: #0f5b6b;
    color: #fff;

    padding: 16px 30px;

    border-radius: 999px;

    text-decoration: none;

    font-weight: bold;
}


/* =========================
   スライダー
========================= */

.slider-wrapper {
    position: relative;

    margin-bottom: 40px;
}

.property-slider {
    display: flex;

    overflow-x: auto;

    scroll-snap-type: x mandatory;

    scroll-behavior: smooth;

    scrollbar-width: none;
}

.property-slider::-webkit-scrollbar {
    display: none;
}

.slide {
    min-width: 100%;

    scroll-snap-align: start;
}

.slide img {
    width: 100%;
    height: 520px;

    object-fit: contain;
    object-position: center;

    background: #fff;

    border-radius: 24px;

    display: block;
}

.slider-btn {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 46px;
    height: 46px;

    border-radius: 50%;

    border: none;

    background: rgba(15, 91, 107, 0.9);

    color: #fff;

    font-size: 34px;

    cursor: pointer;

    z-index: 2;
}

.slider-btn.prev {
    left: 18px;
}

.slider-btn.next {
    right: 18px;
}


/* =========================
   売買詳細
========================= */

.sale-detail-card {
    display: block;

    max-width: 1100px;

    margin: 0 auto 80px;

    padding: 50px;
}

.sale-detail-card .price {
    font-size: 46px;

    margin-bottom: 25px;
}

.sale-detail-card > p {
    font-size: 18px;

    line-height: 1.8;
}

.sale-detail-card .property-detail-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 22px 50px;

    margin: 35px 0;
}

.sale-detail-card .property-detail-grid div {
    display: flex;

    gap: 14px;

    align-items: center;
}

.sale-detail-card .point-box {
    margin-top: 35px;

    padding: 32px;

    background: #f8f5ef;

    border-radius: 22px;
}

.sale-detail-card .contact-link {
    margin-top: 30px;
}


/* =========================
   ページネーション
========================= */

.pagination-area {
    margin-top: 50px;

    display: flex;

    justify-content: center;
    align-items: center;

    gap: 10px;
}

.page-btn,
.page-number {
    min-width: 46px;
    height: 46px;

    padding: 0 16px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    background: #fff;

    border: 1px solid #ddd;

    border-radius: 12px;

    color: #333;

    text-decoration: none;

    font-weight: bold;
}

.page-number.active {
    background: #0f5b6b;

    color: #fff;

    border-color: #0f5b6b;
}

.page-btn.disabled {
    color: #aaa;

    pointer-events: none;
}


/* ======================================================
   タブレット
====================================================== */

@media (max-width: 1024px) {

    .property-page {
        padding: 140px 20px 90px;
    }

    .property-card {
        grid-template-columns: 320px 1fr;
    }

    .property-body {
        padding: 32px;
    }

    .property-body h2 {
        font-size: 25px;
    }

    .price {
        font-size: 36px;
    }

    .property-detail-card {
        gap: 35px;

        padding: 32px;
    }

    .main-rental-image {
        height: 400px;
    }
}


/* ======================================================
   スマホ
====================================================== */

@media (max-width: 768px) {

    .property-page {
        padding: 110px 16px 80px;
    }

    .property-container {
        width: 100%;
    }


    /* タイトル */

    .page-title {
        margin-bottom: 35px;
    }

    .page-title span {
        font-size: 13px;

        letter-spacing: 3px;
    }

    .page-title h1 {
        font-size: 30px;

        line-height: 1.4;
    }


    /* 検索 */

    .property-search {
        flex-direction: column;

        align-items: stretch;

        width: 100%;

        margin-bottom: 35px;
    }

    .property-search input,
    .property-search select,
    .property-search button,
    .property-search a {
        width: 100%;

        max-width: none;
        min-width: 0;

        margin: 0;

        box-sizing: border-box;
    }

    .property-search button,
    .property-search a {
        display: flex;

        justify-content: center;
        align-items: center;

        text-align: center;
    }


    /* =====================
       一覧カード
    ===================== */

    .property-card {
        display: flex;

        flex-direction: column;

        width: 100%;

        min-height: 0;

        margin-bottom: 22px;

        border-radius: 20px;
    }


    /* 一覧画像と文字を完全分離 */

    .property-card .property-image {
        width: 100%;

        height: 280px;
        min-height: 280px;
        max-height: 280px;

        object-fit: contain;
        object-position: center;

        background: #fff;

        display: block;

        flex: 0 0 280px;
    }


    /* 一覧本文 */

    .property-card .property-body {
        width: 100%;

        padding: 22px 20px 26px;

        box-sizing: border-box;

        position: static;
    }

    .property-card .property-body h2 {
        font-size: 21px;

        line-height: 1.5;

        margin: 0 0 14px;

        position: static;
    }

    .property-card .price {
        font-size: 31px;

        line-height: 1.25;

        margin: 0 0 22px;

        position: static;
    }

    .property-card .property-body p {
        font-size: 15px;

        line-height: 1.7;

        margin: 0 0 10px;

        position: static;
    }

    .property-card .property-spec {
        display: flex;

        flex-wrap: wrap;

        gap: 8px;

        margin-top: 18px;

        position: static;
    }

    .property-card .property-spec span {
        font-size: 14px;

        padding: 7px 13px;
    }


    /* 画像なし */

    .property-no-image {
        min-height: 280px;

        flex: 0 0 280px;
    }


    /* =====================
       詳細
    ===================== */

    .property-detail-card {
        flex-direction: column;

        gap: 25px;

        padding: 22px;

        border-radius: 20px;
    }

    .property-detail-image,
    .property-detail-body {
        width: 100%;
    }


    /* 詳細メイン画像 */

    .main-rental-image {
        width: 100%;

        height: auto;

        max-height: 360px;

        object-fit: contain;

        object-position: center;

        background: #fff;

        margin: 0;
    }


    /* サムネイル */

    .rental-thumbs {
        display: grid;

        grid-template-columns: repeat(3, 1fr);

        gap: 8px;

        margin-top: 12px;
    }

    .rental-thumbs img {
        width: 100%;

        height: 85px;

        object-fit: cover;

        margin: 0;
    }


    /* 詳細情報 */

    .property-detail-list {
        grid-template-columns: 1fr;
    }

    .property-detail-list dt {
        padding: 14px 16px 5px;
    }

    .property-detail-list dd {
        padding: 5px 16px 14px;
    }


    /* 詳細グリッド */

    .property-detail-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .property-detail-grid div {
        align-items: flex-start;
    }


    /* 説明 */

    .property-description {
        margin-top: 30px;

        padding: 22px;
    }

    .property-description h3 {
        font-size: 20px;
    }


    /* 設備 */

    .rental-facilities {
        margin: 30px 0;

        padding: 22px;
    }

    .rental-facilities h3 {
        font-size: 21px;
    }


    /* ポイント */

    .point-box {
        padding: 22px;

        margin-top: 30px;
    }

    .point-box h2 {
        font-size: 23px;
    }


    /* お問い合わせ */

    .contact-link {
        width: 100%;

        text-align: center;

        box-sizing: border-box;
    }


    /* スライダー */

    .slide img {
        height: 320px;
    }

    .slider-btn {
        width: 38px;
        height: 38px;

        font-size: 28px;
    }


    /* 売買詳細 */

    .sale-detail-card {
        padding: 28px 22px;
    }

    .sale-detail-card .price {
        font-size: 32px;
    }

    .sale-detail-card .property-detail-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .sale-detail-card .property-detail-grid div {
        align-items: flex-start;
    }
}


/* ======================================================
   小さいスマホ
====================================================== */

@media (max-width: 480px) {

    .property-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .page-title h1 {
        font-size: 27px;
    }

    .property-card .property-image {
        height: 250px;
        min-height: 250px;
        max-height: 250px;

        flex-basis: 250px;
    }

    .property-card .property-body {
        padding: 20px 18px 24px;
    }

    .property-card .property-body h2 {
        font-size: 20px;
    }

    .property-card .price {
        font-size: 29px;
    }

    .rental-thumbs img {
        height: 78px;
    }
}

/* =========================
   スマホ
========================= */

@media (max-width: 768px) {

    .property-card {
        display: flex;
        flex-direction: column;

        width: 100%;

        border-radius: 20px;
        overflow: hidden;
    }


    /* 画像専用エリア */

    .property-image-area {
        width: 100%;
        height: 280px;

        flex: 0 0 280px;

        background: #fff;

        display: flex;
        align-items: center;
        justify-content: center;

        overflow: hidden;
    }


    /* 画像 */

    .property-image {
        width: 100%;
        height: 100%;

        object-fit: contain;
        object-position: center;

        display: block;
    }


    /* 文字 */

    .property-body {
        width: 100%;

        padding: 24px 20px 28px;

        box-sizing: border-box;

        background: #fff;

        position: static;
    }

    .property-body h2 {
        margin: 0 0 15px;

        font-size: 21px;
        line-height: 1.5;
    }

    .price {
        margin: 0 0 22px;

        font-size: 31px;
        line-height: 1.3;
    }

    .property-body p {
        margin: 0 0 10px;

        line-height: 1.7;
    }

    .property-spec {
        display: flex;
        flex-wrap: wrap;

        gap: 8px;

        margin-top: 18px;
    }
}