/* Side Details Styles */
:root {
    --primary-color: #c8a97e;
    --secondary-color: #1a1a1a;
    --text-color: #333;
    --light-text: #fff;
    --background: #fff;
    --section-bg: #f9f9f9;
    --gold-gradient: linear-gradient(135deg, #c8a97e 0%, #dfc5a0 50%, #c8a97e 100%);
    --gold-gradient-hover: linear-gradient(135deg, #dfc5a0 0%, #c8a97e 50%, #dfc5a0 100%);
    --luxury-shadow: 0 10px 30px rgba(200, 169, 126, 0.2);
    --transition: all 0.3s ease;
}

/* Hero Section */
.side-hero {
    position: relative;
    height: 90vh;
    width: 100%;
    overflow: hidden;
    background: url(image/jp_phl_11.jpg) center/cover no-repeat;
    margin-bottom: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.side-hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text);
    padding: 0 2rem;
}

.side-hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.side-hero p {
    font-size: 2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.cta-button {
    background: var(--gold-gradient);
    color: var(--light-text);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--luxury-shadow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(200, 169, 126, 0.3);
}

.secondary-button {
    background: transparent;
    color: var(--primary-color);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.secondary-button:hover {
    color: var(--light-text);
    box-shadow: inset 300px 0 0 0 var(--primary-color);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.secondary-button i {
    margin-right: 12px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.secondary-button:hover i {
    transform: rotate(15deg);
}

/* Overview Section */
.overview-section {
    padding: 8rem 0;
    background: var(--background);
}

.overview-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.overview-text h2 {
    color: var(--secondary-color);
    font-size: 3rem;
    margin-bottom: 2.5rem;
    font-family: 'Cormorant Garamond', serif;
    position: relative;
    display: inline-block;
}

.overview-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--primary-color);
}

.overview-text p {
    color: var(--text-color);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.overview-meta {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
}

.meta-item i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: var(--section-bg);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold-gradient);
}

.features-section h2 {
    text-align: center;
    color: var(--secondary-color);
    font-size: 3rem;
    margin-bottom: 4rem;
    font-family: 'Cormorant Garamond', serif;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feature-item {
    background: var(--background);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--luxury-shadow);
    transition: all 0.4s ease;
    border: 1px solid rgba(200, 169, 126, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(200, 169, 126, 0.2);
}

.feature-item i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.feature-item h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

.feature-item p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Schedule Visit Section */
.schedule-section {
    padding: 8rem 0;
    background: var(--section-bg);
    position: relative;
}

.schedule-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold-gradient);
}

.schedule-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--background);
    border-radius: 20px;
    box-shadow: var(--luxury-shadow);
    position: relative;
    overflow: hidden;
}

.schedule-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
}

.schedule-text {
    text-align: center;
    margin-bottom: 3rem;
}

.schedule-text h2 {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.schedule-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--gold-gradient);
}

.schedule-text p {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.schedule-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

/* Button Styles */
.primary-button,
.secondary-button,
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 5%;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 20px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    z-index: 1;
}

.primary-button,
.cta-button {
    background: var(--gold-gradient);
    color: var(--light-text);
    border: none;
    box-shadow: var(--luxury-shadow);
}

.primary-button::before,
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.6s;
    z-index: -1;
}

.primary-button:hover::before,
.cta-button:hover::before {
    left: 100%;
}

.primary-button:hover,
.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(200, 169, 126, 0.3);
    background: var(--gold-gradient-hover);
}

.secondary-button {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: inset 0 0 0 0 var(--primary-color);
}

.secondary-button:hover {
    color: var(--light-text);
    box-shadow: inset 300px 0 0 0 var(--primary-color);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.secondary-button i {
    margin-right: 12px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.secondary-button:hover i {
    transform: rotate(15deg);
}

/* Gallery Section */
.gallery-section {
    padding: 8rem 0;
    background: var(--background);
}

.gallery-section h2 {
    text-align: center;
    color: var(--secondary-color);
    font-size: 3rem;
    margin-bottom: 4rem;
    font-family: 'Cormorant Garamond', serif;
    position: relative;
}

.gallery-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--gold-gradient);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--luxury-shadow);
    transition: var(--transition);
    cursor: pointer;
    background: #f5f5f5;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.gallery-item.loaded::before {
    opacity: 0;
}

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

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(200, 169, 126, 0.3);
}

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

.gallery-item.loaded img {
    opacity: 1;
}

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

/* Loading message styles */
#debug-message {
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--primary-color);
    font-family: 'Inter', sans-serif;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(200, 169, 126, 0.1);
}

#gallery-loading {
    text-align: center;
    grid-column: 1/-1;
    padding: 2rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Responsive Gallery */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .schedule-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .schedule-text {
        padding-right: 0;
    }
    
    .schedule-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .side-hero h1 {
        font-size: 3.5rem;
    }
    
    .side-hero p {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .overview-meta {
        flex-direction: column;
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .schedule-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }

    .primary-button,
    .secondary-button,
    .cta-button {
        width: 100%;
        min-width: unset;
        padding: 1.2rem 2rem;
    }

    .schedule-text h2 {
        font-size: 2.8rem;
    }

    .schedule-content {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .side-hero h1 {
        font-size: 2.8rem;
    }
    
    .side-hero p {
        font-size: 1.2rem;
    }
    
    .overview-text h2,
    .features-section h2,
    .gallery-section h2,
    .schedule-text h2 {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 2rem 1.5rem;
    }

    .primary-button,
    .secondary-button,
    .cta-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        letter-spacing: 1px;
    }
}

/* Highlights Section */
.highlights-section {
    padding: 6rem 0;
    background: var(--background);
}

.highlights-section h2 {
    text-align: center;
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-family: 'Cormorant Garamond', serif;
}

.highlights-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.highlights-list li {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.highlights-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    margin-right: 1rem;
}

.highlights-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for the 4-column grid */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
} 

/* Map Styles */
.property-map {
    height: 400px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Luxury Brochure Section Styles */
.brochure-section {
    padding: 40px 0;
    background: linear-gradient(to right, #f9f5eb, #f5f0e5, #f9f5eb);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.brochure-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.brochure-content {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid rgba(163, 131, 71, 0.2);
}

.brochure-icon {
    flex: 0 0 80px;
    height: 80px;
    background: linear-gradient(135deg, #a38347, #d4b978);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 30px;
    box-shadow: 0 5px 15px rgba(163, 131, 71, 0.3);
    border: 2px solid white;
}

.brochure-icon i {
    font-size: 32px;
    color: white;
}

.brochure-text {
    flex: 1;
    min-width: 0; /* Prevents text overflow */
}

.brochure-text h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.brochure-text p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

.btn-luxury-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a38347, #d4b978);
    color: white !important;
    padding: 15px 30px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(163, 131, 71, 0.3);
    white-space: nowrap;
    margin-left: 30px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    min-width: 200px;
    max-width: 100%;
}

.btn-luxury-download span {
    margin-right: 10px;
    pointer-events: none;
}

.btn-luxury-download i {
    font-size: 18px;
    pointer-events: none;
}

.btn-luxury-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(163, 131, 71, 0.4);
    background: linear-gradient(135deg, #8b6f3d, #c5aa69);
}

.btn-luxury-download:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(163, 131, 71, 0.3);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .brochure-content {
        padding: 25px;
    }
    
    .brochure-text h3 {
        font-size: 24px;
    }
    
    .btn-luxury-download {
        padding: 14px 28px;
        font-size: 15px;
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .brochure-section {
        padding: 30px 0;
    }
    
    .brochure-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .brochure-icon {
        margin: 0 auto 20px;
    }
    
    .brochure-text {
        margin-bottom: 20px;
    }
    
    .btn-luxury-download {
        margin: 0 auto;
        padding: 12px 24px;
        font-size: 15px;
        min-width: 160px;
        width: auto;
        max-width: 90%;
    }
    
    .btn-luxury-download span {
        margin-right: 8px;
    }
    
    .btn-luxury-download i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .brochure-section {
        padding: 20px 0;
    }
    
    .brochure-content {
        padding: 15px;
    }
    
    .brochure-icon {
        width: 60px;
        height: 60px;
    }
    
    .brochure-icon i {
        font-size: 24px;
    }
    
    .brochure-text h3 {
        font-size: 20px;
    }
    
    .brochure-text p {
        font-size: 14px;
    }
    
    .btn-luxury-download {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 140px;
        border-radius: 40px;
    }
    
    .btn-luxury-download span {
        margin-right: 6px;
    }
    
    .btn-luxury-download i {
        font-size: 14px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .btn-luxury-download:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(163, 131, 71, 0.3);
    }
    
    .btn-luxury-download:active {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(163, 131, 71, 0.3);
        background: linear-gradient(135deg, #8b6f3d, #c5aa69);
    }
}

.map-error {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
    color: #666;
    font-style: italic;
}

.location-info {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #555;
}

.map-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    color: #333;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.map-btn i {
    margin-right: 8px;
}

.map-btn:hover {
    background-color: #f0f0f0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* PDF Actions in Brochure Section */
.brochure-content .pdf-actions {
    display: flex;
    gap: 1.5rem;
    margin-left: 2rem;
}

.brochure-content .btn-download,
.brochure-content .btn-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--luxury-shadow);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.brochure-content .btn-download {
    background: linear-gradient(135deg, #a38347, #d4b978);
    color: white;
}

.brochure-content .btn-preview {
    background: transparent;
    color: #a38347;
    border: 2px solid #a38347;
}

.brochure-content .btn-download:hover,
.brochure-content .btn-preview:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(163, 131, 71, 0.4);
}

.brochure-content .btn-download:hover {
    background: linear-gradient(135deg, #8b6f3d, #c5aa69);
}

.brochure-content .btn-preview:hover {
    background: rgba(163, 131, 71, 0.1);
}

.brochure-content .btn-download i,
.brochure-content .btn-preview i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Responsive styles for PDF buttons */
@media (max-width: 1024px) {
    .brochure-content .pdf-actions {
        margin-left: 1rem;
    }
    
    .brochure-content .btn-download,
    .brochure-content .btn-preview {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .brochure-content .pdf-actions {
        margin: 1.5rem 0 0 0;
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }
    
    .brochure-content .btn-download,
    .brochure-content .btn-preview {
        width: 100%;
        justify-content: center;
    }
}