/* Host Profile & Gallery Styles for 8weeks Fujimi LP */

/* Host Introduction Section */
.section-host {
    background: #f8f8f8;
    padding: 60px 0;
}

.host-profile {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.host-image {
    position: relative;
}

.host-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.host-photo-placeholder {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: #f8f6f3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #e8e3dc;
    text-align: center;
    margin: 0 auto;
}

.host-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #FF5A5F;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.host-info h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #222222;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.host-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.host-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7b71;
    font-size: 0.9rem;
}

.host-stats .stat-number {
    font-weight: 600;
    color: #2c3e34;
    font-size: 1.1rem;
}

.host-story {
    line-height: 1.7;
}

.host-intro-text {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: #2c3e34;
    font-weight: 500;
    line-height: 1.6;
}

.host-detail {
    margin-bottom: 20px;
    color: #4a5c52;
    font-size: 1rem;
    line-height: 1.7;
}

.superhost-info {
    background: #f8f6f3;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #4a5c52;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 20px;
}

/* Gallery Section */
.section-gallery {
    background: #f8f8f8;
    padding: 60px 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

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

.property-video {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border-radius: 12px;
    box-shadow: var(--shadow-elevated);
}

.video-placeholder {
    width: 100%;
    max-width: 800px;
    height: 450px;
    background: var(--off-white);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid var(--accent-gray);
    margin: 0 auto;
}

.video-caption {
    margin-top: var(--space-sm);
    font-style: italic;
    color: var(--tertiary-gray);
}

.photo-gallery {
    margin-top: var(--space-lg);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    padding: 25px;
    max-width: 1200px;
    margin: 20px auto 0;
    width: 100%;
    box-sizing: border-box;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

.gallery-item.featured img {
    height: 400px;
}

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


.gallery-placeholder {
    width: 100%;
    height: 250px;
    background: var(--off-white);
    border: 2px solid var(--accent-gray);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--secondary-gray);
}

.gallery-placeholder.featured-placeholder {
    height: 400px;
}

.gallery-placeholder h4 {
    margin-top: var(--space-sm);
    font-size: 1.1rem;
    font-weight: var(--font-semibold);
}

.gallery-placeholder p {
    margin-top: var(--space-xs);
    font-size: 0.9rem;
    color: var(--tertiary-gray);
}

.property-placeholder {
    width: 100%;
    height: 200px;
    background: var(--off-white);
    border: 2px solid var(--accent-gray);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Property Gallery Tabs */
.property-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.property-tab {
    padding: 12px 24px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #4a5c52;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-family: inherit;
}

.property-tab:hover,
.property-tab.active {
    background: #222222;
    color: #ffffff;
    border-color: #222222;
}

.property-gallery {
    display: none;
}

.property-gallery.active {
    display: block;
}

/* Pinterest-style Tile Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 10px;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
}

.gallery img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    display: block;
}

.gallery img:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Specific grid positioning for natural tile layout */
.gallery img:nth-child(1) {
    grid-row: span 25;  /* Large featured image */
}

.gallery img:nth-child(2) {
    grid-row: span 15;  /* Medium image */
}

.gallery img:nth-child(3) {
    grid-row: span 20;  /* Medium-large image */
}

.gallery img:nth-child(4) {
    grid-row: span 12;  /* Small image */
}

.gallery img:nth-child(5) {
    grid-row: span 18;  /* Medium image */
}

.gallery img:nth-child(6) {
    grid-row: span 14;  /* Small-medium image */
}

/* Additional images with varied heights */
.gallery img:nth-child(7) {
    grid-row: span 22;
}

.gallery img:nth-child(8) {
    grid-row: span 16;
}

.gallery img:nth-child(9) {
    grid-row: span 13;
}

.gallery img:nth-child(10) {
    grid-row: span 19;
}

.gallery img:nth-child(11) {
    grid-row: span 15;
}

.gallery img:nth-child(12) {
    grid-row: span 17;
}

/* Ensure minimum 2 columns on desktop */
@media (min-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        min-height: 100vh;
    }
}

@media (min-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

/* Tablet responsive */
@media (max-width: 768px) and (min-width: 481px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px;
        gap: 10px;
    }
    
    /* Adjust span values for tablet */
    .gallery img:nth-child(1) { grid-row: span 20; }
    .gallery img:nth-child(2) { grid-row: span 12; }
    .gallery img:nth-child(3) { grid-row: span 16; }
    .gallery img:nth-child(4) { grid-row: span 10; }
    .gallery img:nth-child(5) { grid-row: span 14; }
    .gallery img:nth-child(6) { grid-row: span 11; }
}

/* Mobile responsive - single column */
@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 8px;
        grid-auto-rows: auto;
    }
    
    .gallery img {
        grid-row: auto !important;
        aspect-ratio: 4/3;
        height: auto;
    }
}

/* Alternative masonry-style approach using columns (fallback) */
.gallery-masonry {
    column-count: 3;
    column-gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.gallery-masonry img {
    width: 100%;
    margin-bottom: 12px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    break-inside: avoid;
    display: block;
}

.gallery-masonry img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .gallery-masonry {
        column-count: 2;
        padding: 16px;
        column-gap: 10px;
    }
    
    .gallery-masonry img {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .gallery-masonry {
        column-count: 1;
        padding: 12px;
    }
    
    .gallery-masonry img {
        margin-bottom: 8px;
        aspect-ratio: 4/3;
    }
}

/* Compact Gallery */
.gallery-container {
    max-width: 1200px;
    margin: 32px auto 0;
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
    margin-bottom: 0;
    width: 100%;
}

.photo-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: transform 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.photo-grid img:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.compact-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    align-items: stretch;
    width: 100%;
}

.compact-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: #f8f8f8;
    transition: all 0.2s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compact-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    will-change: auto;
    display: block;
    border-radius: 8px;
}

.compact-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.image-placeholder {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.compact-gallery-item.more-photos {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222222;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    padding: 20px;
    aspect-ratio: 4/3;
}

.view-all-button {
    text-align: center;
    width: 100%;
}

.view-all-button button {
    padding: 12px 24px;
    font-size: 16px;
    color: #f44;
    border: 1px solid #f44;
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 24px auto 0;
    display: block;
}

.view-all-button button:hover {
    background: #f44;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
}

.gallery-button-container {
    text-align: center;
    margin-top: 24px;
    width: 100%;
}

.view-all-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #ffffff;
    border: 1px solid #FF5A5F;
    border-radius: 8px;
    color: #FF5A5F;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.view-all-btn:hover {
    background: #FF5A5F;
    color: #ffffff;
    border-color: #FF5A5F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 90, 95, 0.3);
}

.gallery-placeholder-message {
    text-align: center;
    padding: 40px 24px;
    color: #4a5c52;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-top: 24px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    width: 100%;
    max-width: 1400px;
    padding: var(--space-md);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--pure-white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: var(--space-md);
    right: var(--space-md);
}

.lightbox-prev {
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-image-container {
    text-align: center;
    margin-bottom: var(--space-md);
}

#lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    transition: opacity 0.2s ease;
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
}


.lightbox-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0;
    justify-content: center;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.lightbox-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    border: 2px solid transparent;
}

.lightbox-thumbnail.active {
    opacity: 1;
    border-color: var(--pure-white);
}

.lightbox-thumbnail:hover {
    opacity: 0.8;
}

.lightbox-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 900px) {
    .gallery-container {
        padding: 20px;
        margin: 20px auto 0;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        padding: 16px;
        margin: 16px auto 0;
    }
    
    .section-host {
        padding: 40px 0;
    }
    
    .host-profile {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        max-width: 95%;
        padding: 30px 20px;
    }
    
    .host-photo-placeholder {
        width: 240px;
        height: 240px;
        margin: 0 auto;
    }
    
    .host-info h3 {
        font-size: 2.5rem;
    }
    
    .host-stats {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }
    
    .host-story {
        padding: 24px;
    }
    
    .section-gallery {
        padding: 40px 0;
    }
    
    .compact-gallery-grid {
        gap: 10px;
    }
    
    .gallery-container {
        padding: 12px;
    }
    
    
    .photo-gallery {
        padding: 20px;
        margin: 15px auto 0;
        max-width: calc(100% - 32px);
    }
    
    .property-tab {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .section-host {
        padding: 30px 0;
    }
    
    .host-profile {
        max-width: 100%;
        gap: 32px;
        padding: 25px 15px;
    }
    
    .host-photo-placeholder {
        width: 200px;
        height: 200px;
    }
    
    .host-info h3 {
        font-size: 2rem;
    }
    
    .host-story {
        padding: 20px;
    }
    
    .section-gallery {
        padding: 30px 0;
    }
    
    .property-tabs {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .property-tab {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 14px 24px;
    }
    
    .compact-gallery-grid {
        gap: 10px;
    }
    
    .gallery-container {
        padding: 12px;
    }
    
    
    .photo-gallery {
        padding: 18px;
        margin: 12px auto 0;
        max-width: calc(100% - 24px);
    }
    
    .compact-gallery-item img {
        image-rendering: auto;
    }
    
    .view-all-btn {
        padding: 16px 24px;
        font-size: 1rem;
    }
    
    .gallery-placeholder-message {
        padding: 40px 20px;
    }
    
    .lightbox-thumbnails {
        justify-content: flex-start;
        gap: 6px;
    }
    
    #lightbox-image {
        max-height: 60vh;
    }
}

/* =======================================
   Pinterest風Masonryギャラリー
   ======================================= */

.section-gallery {
    background: #f9f9f9;
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    font-weight: 300;
}

/* ギャラリーフィルター */
.gallery-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* カテゴリードロップダウン */
.category-dropdown {
    position: relative;
    display: inline-block;
}

.category-dropdown-btn {
    background: white;
    border: 2px solid #e0e0e0;
    color: #333;
    padding: 12px 20px;
    border-radius: 25px;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 160px;
    justify-content: space-between;
}

.category-dropdown-btn:hover {
    border-color: #2c3e34;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 62, 52, 0.15);
}

.dropdown-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.category-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.category-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.category-dropdown.open .category-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #333;
    pointer-events: auto;
    user-select: none;
}

.category-option * {
    pointer-events: none;
}

.category-option:hover {
    background: #f5f5f5;
    color: #2c3e34;
}

.category-option.active {
    background: #2c3e34;
    color: white;
}

.category-option:first-child {
    border-radius: 10px 10px 0 0;
}

.category-option:last-child {
    border-radius: 0 0 10px 10px;
}

.filter-btn {
    background: white;
    border: 2px solid #e0e0e0;
    color: #333;
    padding: 12px 20px;
    border-radius: 25px;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: #2c3e34;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 62, 52, 0.15);
}

.filter-btn.active {
    background: #2c3e34;
    color: white;
    border-color: #2c3e34;
}

.filter-icon {
    width: 16px;
    height: 16px;
}


/* Masonryグリッド */
.masonry-gallery {
    column-count: 3;
    column-gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 0;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 15px;
    display: inline-block;
    width: 100%;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.masonry-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* マソンリーカード */
.masonry-card {
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: block;
    line-height: 0;
    padding: 0;
    margin: 0;
}

.masonry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: -1;
}

.masonry-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* カード画像 */
.card-image {
    position: relative;
    overflow: hidden;
    background: transparent;
    border-radius: 16px;
    line-height: 0;
}

.card-image img {
    display: block;
    transition: transform 0.3s ease;
    background: transparent;
}

.masonry-card:hover .card-image img {
    transform: scale(1.05);
}

/* カードサイズバリエーション - Pinterest風ランダムサイズ */
.masonry-item.small .card-image {
    height: 200px;
}

.masonry-item.medium .card-image {
    height: 280px;
}

.masonry-item.tall .card-image {
    height: 400px;
}

.masonry-item .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* プロパティバッジ */
.property-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(44, 62, 52, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.property-badge.quriu {
    background: rgba(33, 150, 243, 0.9);
}

.property-badge.studio {
    background: rgba(255, 152, 0, 0.9);
}

.property-badge.fujimi {
    background: rgba(156, 39, 176, 0.9);
}

/* カードコンテンツは完全に削除済み - キャプション枠なし */

/* ローディング状態 */
.gallery-loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2c3e34;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* もっと見るボタン */
.gallery-load-more {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: white;
    border: 2px solid #2c3e34;
    color: #2c3e34;
    padding: 15px 30px;
    border-radius: 25px;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.load-more-btn:hover {
    background: #2c3e34;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 62, 52, 0.2);
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* Enhanced Lightbox */
.enhanced-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.enhanced-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-container {
    position: relative;
    width: 95%;
    height: 90%;
    max-width: 1400px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.lightbox-content {
    display: flex;
    height: 100%;
}

.lightbox-main {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    overflow: hidden;
}

#lightbox-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.lightbox-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 30px;
    pointer-events: none;
}

.nav-btn {
    pointer-events: all;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.lightbox-sidebar {
    width: 350px;
    background: white;
    padding: 30px;
    overflow-y: auto;
    border-left: 1px solid #e0e0e0;
}

.lightbox-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e34;
    margin-bottom: 20px;
}

.photo-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.photo-counter {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.lightbox-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.lightbox-thumbnail {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.lightbox-thumbnail:hover {
    border-color: #2c3e34;
}

.lightbox-thumbnail.active {
    border-color: #2c3e34;
    opacity: 1;
}

.lightbox-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .masonry-gallery {
        column-count: 2;
        column-gap: 12px;
        padding: 0 15px;
    }

    .masonry-item {
        margin-bottom: 12px;
    }
    
    /* モバイル用のサイズ調整 */
    .masonry-item.small .card-image {
        height: 160px;
    }
    
    .masonry-item.medium .card-image {
        height: 220px;
    }
    
    .masonry-item.tall .card-image {
        height: 320px;
    }
    
    /* モバイルでも画像の自然なサイズを維持 */
}

    .gallery-filters {
        gap: 8px;
        padding: 0 15px;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .lightbox-container {
        width: 98%;
        height: 95%;
    }

    .lightbox-content {
        flex-direction: column;
    }

    .lightbox-sidebar {
        width: 100%;
        height: 200px;
        padding: 20px;
    }

    .lightbox-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .gallery-filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .category-dropdown-btn {
        min-width: 140px;
        font-size: 0.8rem;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .masonry-gallery {
        column-count: 1;
        column-gap: 0;
    }
    
    .masonry-item {
        margin-bottom: 10px;
    }

    .section-gallery {
        padding: 60px 0;
    }

    .gallery-filters {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .filter-btn {
        width: 200px;
        justify-content: center;
    }
}

/* Host Hobbies Section */
.host-hobbies {
    margin-top: 24px;
}

.host-hobbies h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.hobby-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hobby-tag {
    display: inline-block;
    background: #f0f7ff;
    color: #1e40af;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e0f2fe;
    transition: all 0.2s ease;
}

.hobby-tag:hover {
    background: #dbeafe;
    border-color: #bfdbfe;
}

