/* 
 * Styles for Single Service Property — Modern Redesign
 */

@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&family=Titillium+Web:wght@300;400;600;700&display=swap');

/* ─────────────────────────────────────────
   CSS Variables
───────────────────────────────────────── */
:root {
    --brand-dark:   #173B28;
    --brand-mid:    #314C3E;
    --brand-accent: #004438;
    --brand-light:  #e8f0ec;
    --text-primary: #1a1a1a;
    --text-muted:   #6b7280;
    --border:       #e5e7eb;
    --white:        #ffffff;
    --shadow-sm:    0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:    0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg:    0 12px 40px rgba(0,0,0,0.12);
    --radius-sm:    6px;
    --radius-md:    12px;
    --radius-lg:    20px;
    --transition:   all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────
   Page Wrapper
───────────────────────────────────────── */
.single-main {
    max-width: 1300px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

.service-single-page {
    padding: 48px 0 80px;
    font-family: 'Kanit', 'Titillium Web', sans-serif;
    color: var(--text-primary);
    background-color: #f5f7f6;
}

.service-single-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* ─────────────────────────────────────────
   Header
───────────────────────────────────────── */
.service-header {
    margin-bottom: 36px;
}

.service-breadcrumbs {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.service-breadcrumbs a {
    color: var(--brand-mid);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.service-breadcrumbs a:hover {
    color: var(--brand-dark);
}

.service-breadcrumbs .separator {
    margin: 0 8px;
    opacity: 0.4;
}

.service-title-wrap {
    position: relative;
}

.service-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--brand-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align:left;
}

/* ─────────────────────────────────────────
   Taglines / Tags
───────────────────────────────────────── */
.service-taglines {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.service-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--white);
    color: var(--brand-mid);
    border: 1px solid var(--brand-light);
    padding: 6px 14px;
    border-radius: var(--radius-lg);
    font-size: 0.825rem;
    font-weight: 500;
    cursor: default;
    user-select: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-tag:hover {
    background-color: var(--brand-light);
    border-color: var(--brand-mid);
}

.service-tag .material-symbols-outlined {
    font-size: 16px;
    color: var(--brand-accent);
}

/* ─────────────────────────────────────────
   Excerpt
───────────────────────────────────────── */
.service-excerpt {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 720px;
    font-weight: 300;
    margin-bottom:30px;
}

/* ─────────────────────────────────────────
   Gallery
───────────────────────────────────────── */
.service-gallery-section {
    margin-bottom: 44px;
}

.service-gallery-section .splide {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

/* Splide arrow overrides */
.splide__arrow {
    background: rgba(23, 59, 40, 0.75) !important;
    opacity: 1 !important;
    width: 44px !important;
    height: 44px !important;
    transition: var(--transition) !important;
}

.splide__arrow:hover {
    background: var(--brand-dark) !important;
    transform: scale(1.08) !important;
}

.splide__arrow svg {
    fill: #fff !important;
}

.splide__pagination__page.is-active {
    background: var(--brand-mid) !important;
    transform: scale(1.3) !important;
}

/* ─────────────────────────────────────────
   Content Layout
───────────────────────────────────────── */
.service-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    margin-top:60px!important;
}

.service-main-content {
    flex: 1 1 62%;
    min-width: 0;
}

.service-sidebar {
    flex: 1 1 30%;
    min-width: 300px;
}

/* ─────────────────────────────────────────
   Section Card Base
───────────────────────────────────────── */
.service-map-section,
.service-amenities-section,
.service-details-section,
.service-floorplans-section {
    background: var(--white);
    padding: 36px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.service-map-section h2,
.service-amenities-section h2,
.service-details-section h2,
.service-floorplans-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--brand-dark);
    padding-bottom: 14px;
    border-bottom: 2px solid var(--brand-light);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-map-section h2::before,
.service-amenities-section h2::before,
.service-details-section h2::before,
.service-floorplans-section h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.2em;
    background: var(--brand-mid);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────
   Amenities
───────────────────────────────────────── */
.service-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 16px 10px;
    transition: var(--transition);
}

.amenity-item:hover {
    transform: translateY(-2px);
}

.amenity-icon {
    font-size: 32px;
    color: #4CAF50; /* A soft green color for icons, matching the reference image's vibe */
    display: flex;
    align-items: center;
    justify-content: center;
}

.amenity-text {
    font-size: 0.95rem;
    color: var(--brand-dark);
    font-weight: 500;
    line-height: 1.4;
}

/* ─────────────────────────────────────────
   Detail Items
───────────────────────────────────────── */
.service-details-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-item {
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    transition: var(--transition);
}

.detail-item:hover {
    border-color: var(--brand-light);
    box-shadow: 0 2px 10px rgba(49,76,62,0.08);
}

.detail-item h3 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-mid);
    margin-bottom: 8px;
}

.detail-content {
    font-size: 0.975rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 300;
}
.detail-content p {
    margin-bottom:0!important;
}
.detail-content ul {
    padding-left: 18px;
    margin: 0;
}

.detail-content ul li {
    margin-bottom: 6px;
}

/* ─────────────────────────────────────────
   Floor Plan Selector
───────────────────────────────────────── */
.service-floorplan-selector {
    margin-bottom: 24px;
}

.floorplan-dropdown {
    width: 100%;
    max-width: 380px;
    padding: 11px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-primary);
    background-color: #f9fafb;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23314C3E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.floorplan-dropdown:focus {
    border-color: var(--brand-mid);
    box-shadow: 0 0 0 3px rgba(49,76,62,0.12);
    background-color: var(--white);
}

/* ─────────────────────────────────────────
   Floor Plan Gallery (Single Column)
───────────────────────────────────────── */
.service-floorplan-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    background: #f0f0f0;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ─────────────────────────────────────────
   Google Map
───────────────────────────────────────── */
.service-map-container {
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.service-map-container iframe {
    width: 100% !important;
    max-width: 100%;
    display: block;
}

/* ─────────────────────────────────────────
   Sidebar / Contact Widget
───────────────────────────────────────── */
.service-sidebar {
    flex: 1 1 30%;
    min-width: 300px;
    position: sticky;
    top: 24px;
    align-self: flex-start;
}

.service-contact-widget {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    overflow: hidden;
}

/* Top accent band */
.service-contact-widget::before {
    content: '';
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--brand-dark), var(--brand-mid));
}

.service-contact-widget-inner {
    padding: 28px;
}

.service-contact-widget h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--brand-dark);
    text-align: center;
    letter-spacing: -0.01em;
}

.service-contact-widget > p,
.service-contact-widget-inner > p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 22px;
    text-align: center;
    font-weight: 300;
    line-height: 1.6;
}

.service-contact-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, var(--brand-mid), var(--brand-dark));
    color: var(--white) !important;
    text-align: center;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    margin-bottom: 22px;
    transition: var(--transition);
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(23,59,40,0.3);
}

.service-contact-btn:hover {
    background: linear-gradient(135deg, var(--brand-dark), #0d2a1c);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(23,59,40,0.4);
}

.service-contact-btn:active {
    transform: translateY(0);
}

.service-agent-info {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
}

.service-agent-info p {
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
}

.service-agent-info strong {
    color: var(--brand-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.service-agent-info a {
    color: var(--brand-mid);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.service-agent-info a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

/* ─────────────────────────────────────────
   Fade-in animation for section content
───────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.service-header,
.service-gallery-section,
.service-map-section,
.service-amenities-section,
.service-details-section,
.service-floorplans-section,
.service-contact-widget {
    animation: fadeUp 0.5s ease both;
}

.service-gallery-section   { animation-delay: 0.05s; }
.service-details-section   { animation-delay: 0.08s; }
.service-floorplans-section{ animation-delay: 0.1s; }
.service-amenities-section { animation-delay: 0.12s; }
.service-map-section       { animation-delay: 0.15s; }
.service-contact-widget    { animation-delay: 0.2s; }

/* ─────────────────────────────────────────
   Responsive
───────────────────────────────────────── */
@media (max-width: 900px) {
    .service-details-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .service-single-page {
        padding: 32px 0 60px;
    }

    .service-content-wrapper {
        flex-direction: column;
    }

    .service-sidebar {
        width: 100%;
        min-width: unset;
    }

    .service-title {
        font-size: 1.75rem;
    }

    .service-amenities-section,
    .service-details-section,
    .service-floorplans-section {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .service-amenities-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 12px;
    }
}
