/**
 * Philterry Houses - Frontend Styles
 * Version: 1.0.0
 */

/* Main Section */
.philterry-houses-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.philterry-houses-header {
    font-size: 2.5em;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
    text-align: left;
    padding-left: 0;
}

/* Houses Container */
.philterry-houses-container {
    position: relative;
    width: 100%;
    min-height: 600px;
}

/* Individual House Item */
.philterry-house-item {
    display: none;
    width: 100%;
    gap: 0;
    align-items: flex-start;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.philterry-house-item.active {
    display: flex;
    opacity: 1;
}

/* Left Column - Gallery (45%) */
.philterry-gallery-column {
    width: 45%;
    padding-right: 20px;
}

.philterry-main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.philterry-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gallery Navigation Arrows */
.philterry-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 3em;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.philterry-gallery-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.philterry-gallery-prev {
    left: 10px;
}

.philterry-gallery-next {
    right: 10px;
}

/* Film Strip Thumbnails */
.philterry-thumbnails-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 20px;
    background: #222;
    padding: 15px 10px;
    border-radius: 8px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.philterry-thumbnails-container::-webkit-scrollbar {
    height: 8px;
}

.philterry-thumbnails-container::-webkit-scrollbar-track {
    background: #111;
    border-radius: 4px;
}

.philterry-thumbnails-container::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.philterry-thumbnails-container::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.philterry-thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 75px;
    border: 3px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.2s ease;
    position: relative;
    background: #000;
}

.philterry-thumbnail::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px dotted rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.philterry-thumbnail:hover {
    transform: scale(1.05);
    border-color: #999;
}

.philterry-thumbnail.active {
    border-color: #007cba;
    box-shadow: 0 0 10px rgba(0, 124, 186, 0.5);
}

.philterry-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* House Location */
.philterry-house-location {
    text-align: left;
    padding: 15px 0;
    border-top: 2px solid #ddd;
    margin-top: 10px;
}

.philterry-street-address {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.philterry-district {
    font-size: 1em;
    color: #666;
    font-style: italic;
}

/* Middle Column - Separator (10%) */
.philterry-separator-column {
    width: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.philterry-separator-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

/* Right Column - Content (45%) */
.philterry-content-column {
    width: 45%;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
}

.philterry-house-content {
    flex: 1;
}

.philterry-house-title {
    font-size: 2em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

.philterry-house-description {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.philterry-house-description p {
    margin-bottom: 15px;
}

.philterry-house-description p:last-child {
    margin-bottom: 0;
}

/* House Navigation Arrow */
.philterry-house-arrow {
    align-self: flex-end;
    background: #007cba;
    color: white;
    border: none;
    font-size: 3em;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
    margin-top: 20px;
}

.philterry-house-arrow:hover {
    background: #005a87;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 124, 186, 0.5);
}

.philterry-house-arrow:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .philterry-houses-header {
        font-size: 2em;
    }

    .philterry-gallery-column {
        width: 50%;
    }

    .philterry-separator-column {
        width: 0%;
        display: none;
    }

    .philterry-content-column {
        width: 50%;
    }

    .philterry-house-title {
        font-size: 1.6em;
    }

    .philterry-house-description {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .philterry-house-item.active {
        flex-direction: column;
    }

    .philterry-gallery-column,
    .philterry-content-column {
        width: 100%;
        padding: 0;
    }

    .philterry-separator-column {
        display: none;
    }

    .philterry-gallery-column {
        margin-bottom: 30px;
    }

    .philterry-houses-header {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .philterry-house-title {
        font-size: 1.5em;
    }

    .philterry-gallery-arrow {
        font-size: 2.5em;
        width: 40px;
        height: 40px;
    }

    .philterry-house-arrow {
        font-size: 2.5em;
        width: 50px;
        height: 50px;
    }

    .philterry-thumbnail {
        width: 80px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .philterry-houses-header {
        font-size: 1.5em;
    }

    .philterry-house-title {
        font-size: 1.3em;
    }

    .philterry-house-description {
        font-size: 0.95em;
    }

    .philterry-thumbnail {
        width: 70px;
        height: 52px;
    }

    .philterry-gallery-arrow {
        font-size: 2em;
        width: 35px;
        height: 35px;
    }
}

/* Loading State */
.philterry-houses-container.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Accessibility */
.philterry-gallery-arrow:focus,
.philterry-house-arrow:focus {
    outline: 3px solid #007cba;
    outline-offset: 2px;
}
