/* ============================================
   Tomball Commercial Plaza
   Tomball Plaza Property Site
   ============================================ */

:root {
    --color-teal: #2e6e6a;
    --color-teal-light: #5bb5b5;
    --color-teal-dark: #247170;
    --color-header-dark: #2a3a47;
    --color-accent-red: #d32f2f;
    --color-text: #333;
    --color-text-light: #666;
    --color-border: #ddd;
    --color-bg-light: #f0f0f0;
    --color-white: #fff;
    --font-main: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1200px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

header, .top-bar {
    margin: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-white);
}

a {
    color: var(--color-teal);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul li {
    position: relative;
    padding-left: 1.25em;
    margin-bottom: 0.5em;
}

ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-text);
    font-weight: bold;
}

/* Skip Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-teal);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 10px;
}

/* Top Contact Bar - phone and email centered as a pair with gap */
.top-bar {
    background: #2c2c2c;
    padding: 0.65rem 2rem;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14rem;
}

.top-bar .top-contact {
    color: #5bb5b5;
    font-size: 0.95rem;
    font-weight: 400;
    text-decoration: none;
}

.top-bar .top-contact:hover {
    text-decoration: underline;
}

/* Main Header - logo centered with subtle diagonal pattern */
.main-header {
    margin: 0;
    background: #2e6e6a;
    background-image: 
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.03) 2px,
            rgba(255,255,255,0.03) 4px
        );
    padding: 1rem;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-link {
    text-decoration: none;
}

.logo {
    text-align: center;
    padding: 0.4rem 1.25rem;
    border: 2px solid #fff;
    border-radius: 8px;
}

.logo-main {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.08em;
    font-family: Georgia, 'Times New Roman', serif;
    text-transform: uppercase;
}

.logo-lines {
    display: block;
    font-size: 0.65rem;
    color: #fff;
    letter-spacing: 0.35em;
    margin-top: 0.2rem;
    text-transform: uppercase;
    font-family: var(--font-main);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 42vh;
    min-height: 280px;
    overflow: hidden;
}

.slide-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.slide-view.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

.slide-cell {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    height: 100%;
}

.slide-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Share Bar - white background, buttons in one row, centered on right half */
.share-bar {
    background: #fff;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: flex-end;
}

.share-buttons-wrapper {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #5bb5b5;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.share-btn svg {
    flex-shrink: 0;
}

.share-btn:hover {
    opacity: 0.9;
}

.share-btn.location {
    background: #d32f2f;
    text-decoration: none;
}

.share-btn.location:hover {
    text-decoration: none;
}

/* Property Intro - centered title + subtitle on white */
.property-intro {
    background: #fff;
    padding: 1rem 1.5rem 1.5rem;
    text-align: center;
}

.property-intro h1 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.property-intro p {
    margin: 0;
    font-size: 1rem;
    color: #666;
}

/* Content Wrapper */
.content-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* Availability Table */
.table-container {
    overflow-x: auto;
    margin-bottom: 2.5rem;
    border: 1px solid var(--color-border);
}

.availability-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.availability-table th,
.availability-table td {
    padding: 1rem 1.25rem;
    text-align: center;
    border: 1px solid var(--color-border);
}

.availability-table th {
    background: var(--color-bg-light);
    font-weight: 600;
    color: var(--color-text);
}

.availability-table td {
    background: var(--color-white);
}

/* Property Sections */
.property-section {
    margin-bottom: 3rem;
}

.property-section h2 {
    color: var(--color-teal);
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 1.25rem;
    padding-bottom: 0.25rem;
}

.overview-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.property-section p {
    margin: 0 0 0.5rem;
}

/* Transport Table */
.transport-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--color-border);
}

.transport-table th,
.transport-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.transport-table th {
    background: var(--color-bg-light);
    font-weight: 600;
}

.transport-icon {
    color: var(--color-teal);
    font-size: 1.25rem;
}

/* Map Section */
.map-section {
    padding: 0;
}

.map-container {
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.map-container iframe {
    display: block;
}

/* Gallery */
.gallery-section .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.8;
}

.lightbox-close:hover {
    opacity: 1;
}

/* Footer */
.main-footer {
    background: #2a3a47;
    color: var(--color-white);
    text-align: left;
    padding: 1.25rem 1.5rem;
}

.main-footer p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.5rem 1rem;
    }

    .share-buttons-wrapper {
        width: 100%;
    }

    .nav-container {
        flex-direction: column;
    }

    .property-intro h1 {
        font-size: 1.25rem;
    }

    .property-intro p {
        font-size: 0.95rem;
    }

    .availability-table th,
    .availability-table td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .content-wrapper {
        padding: 2rem 1rem;
    }
}

/* Print Styles */
@media print {
    .top-bar,
    .share-bar,
    .lightbox {
        display: none !important;
    }

    .main-header {
        padding: 0.5rem 1rem;
    }

    body {
        padding-top: 0;
    }

    .map-container iframe {
        min-height: 400px;
    }
}
