/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #1a5490;
    --secondary-color: #2980b9;
    --accent-color: #3498db;
    --text-dark: #000000;
    --text-light: #555;
    --background: #ffffff;
    --white: #ffffff;
    --border: #d0d0d0;
    --shadow: rgba(0, 0, 0, 0.1);
    --repo-badge: #4169e1;
    --repo-text: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
}

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

/* Header */
header {
    background: var(--header-bg);
    color: var(--white);
    padding: 2.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Subtle accent line at bottom */
header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 20%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.3) 80%,
        transparent 100%
    );
}

header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

header .header-left {
    flex: 1;
}

header .header-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

header h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .phone-text {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 0.25rem;
}

header .hours-text {
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 0.25rem;
    font-style: italic;
}

header .phone-link {
    color: var(--white);
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    padding-bottom: 2px;
}

header .phone-link:hover {
    border-bottom-color: var(--white);
    transform: translateY(-1px);
}

header .header-logo {
    max-height: 110px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

header .header-logo:hover {
    transform: scale(1.05);
}

header .dealer-text {
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.95;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Clean up button styling */
header .dealer-blog-btn {
    margin-top: 0.5rem;
    padding: 0.6rem 1.25rem;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

header .dealer-blog-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hero Section with Gallery */
.hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #000;
}

.hero-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot:hover,
.dot.active {
    background: rgba(255, 255, 255, 1);
}

/* Welcome Section */
.welcome-section {
    background: #f8f9fa;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

.welcome-message {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.welcome-message h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.welcome-message p {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Live Inventory Button */
.live-inventory-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(26, 84, 144, 0.3);
    transition: all 0.3s ease;
}

.live-inventory-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(26, 84, 144, 0.4);
}

.live-indicator {
    width: 12px;
    height: 12px;
    background: #27ae60;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.live-indicator::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid rgba(39, 174, 96, 0.5);
    border-radius: 50%;
    animation: ripple 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Main Content */
main {
    padding: 2rem 0;
}

/* Filters Section */
.filters {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid #000000;
}

.filters h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.filter-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: center;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.filter-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    background-color: var(--white);
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-group select:hover {
    border-color: var(--secondary-color);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Inventory Section */
.inventory-count {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.inventory-count span {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Buildings Grid */
.buildings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.building-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.building-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(26, 84, 144, 0.2);
    border-color: var(--accent-color);
}

/* Status Banner */
.status-banner {
    position: absolute;
    top: 30px;
    right: -35px;
    width: 150px;
    text-align: center;
    padding: 0.5rem 0;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(45deg);
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.status-banner.pending {
    background: #FFD700;
    color: #333;
}

.status-banner.sold {
    background: #e74c3c;
    color: var(--white);
}

.building-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

/* Building Image Gallery */
.building-image-gallery {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    pointer-events: none;
}

.gallery-image.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
    pointer-events: auto;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s ease;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-nav.prev {
    left: 5px;
}

.gallery-nav.next {
    right: 5px;
}

.gallery-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.gallery-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.gallery-indicators .indicator.active {
    background: rgba(255, 255, 255, 1);
}

.repo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--repo-badge);
    color: var(--repo-text);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.building-info {
    padding: 1.5rem;
    background: #ffffff;
}

.building-type {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.building-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.building-size {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.building-details {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 1rem;
}

.building-detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.building-detail-item .label {
    color: var(--text-light);
}

.building-detail-item .value {
    color: var(--text-dark);
    font-weight: 600;
}

.building-serial {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--background);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
}

/* Repo Price Styles */
.strikethrough {
    text-decoration: line-through;
    text-decoration-color: #e74c3c;
    text-decoration-thickness: 2px;
    opacity: 0.6;
}

.repo-price-note {
    color: var(--repo-text);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    text-align: right;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 0 0.5rem 0;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.share-btn:nth-child(1):hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.share-btn:nth-child(2):hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.share-btn:nth-child(3):hover {
    background: #25d366;
    border-color: #25d366;
    color: white;
}

/* RTO Button and Tooltip */
.rto-button {
    width: 100%;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    background: var(--button-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rto-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 84, 144, 0.3);
}

/* Inquire Button */
.inquire-btn {
    width: 60%;
    padding: 0.75rem 1rem;
    margin: 0.75rem auto;
    display: block;
    background: #28a745;
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.25);
}

.inquire-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(40, 167, 69, 0.35);
}

.rto-tooltip {
    display: none;
    background: #f8f9fa;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rto-tooltip.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rto-option {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.rto-option:last-of-type {
    border-bottom: none;
}

.rto-term {
    font-weight: 600;
    color: var(--text-dark);
}

.rto-price {
    color: var(--primary-color);
    font-weight: 700;
}

.rto-note {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Graceland Features Section */
.graceland-features {
    background: var(--white);
    padding: 5rem 0;
    border-bottom: 1px solid var(--border);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 4rem;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

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

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 0;
    text-align: left;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 24px rgba(26, 84, 144, 0.12);
    border-left-color: var(--secondary-color);
}

.feature-number {
    font-size: 3rem;
    font-weight: 700;
    color: #dc3545;
    line-height: 1;
    margin-bottom: 1rem;
    font-family: Arial, sans-serif;
}

.feature-number::before {
    content: '✓';
}

.feature-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* About Graceland Section */
.about-graceland {
    background: var(--white);
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.tagline {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 2rem;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(26, 84, 144, 0.25);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Footer */
footer {
    background: var(--footer-bg, var(--text-dark));
    color: var(--white);
    padding: 3rem 0 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    opacity: 0.95;
}

.footer-address {
    opacity: 0.8;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-contact {
    margin: 0.5rem 0;
    opacity: 0.9;
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s ease;
}

.footer-contact a:hover {
    border-bottom-color: var(--white);
}

.footer-hours {
    margin-top: 0.5rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.hours-day {
    font-weight: 600;
}

.hours-time {
    opacity: 0.85;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-dealer {
    font-size: 0.85rem;
    opacity: 0.7;
    font-style: italic;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

.social-link.facebook:hover {
    background: #1877f2;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.twitter:hover {
    background: #000000;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .header-content {
        flex-direction: column;
        text-align: center;
    }

    header .header-left {
        order: 2;
    }

    header .header-right {
        order: 1;
        margin-bottom: 1rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Hero gallery - reduce height on tablets */
    .hero {
        height: 300px;
    }

    /* Gallery navigation buttons - better touch targets */
    .gallery-prev,
    .gallery-next {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .gallery-dots .dot {
        width: 12px;
        height: 12px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: row;
        gap: 1rem;
    }

    .filter-group {
        grid-template-columns: 1fr;
    }

    .buildings-grid {
        grid-template-columns: 1fr;
    }

    /* Modal improvements for tablets */
    .modal-content {
        max-width: 600px;
        margin: 0 auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
}

/* Tablet landscape / Small tablets */
@media (max-width: 640px) {
    .hero {
        height: 275px;
    }

    .buildings-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .header-logo {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    header h1 {
        font-size: 1.75rem;
    }

    /* Hero gallery - smaller height on phones */
    .hero {
        height: 250px;
    }

    /* Gallery navigation - larger touch targets for phones */
    .gallery-prev,
    .gallery-next {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    .gallery-prev {
        left: 5px;
    }

    .gallery-next {
        right: 5px;
    }

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

    .graceland-features,
    .about-graceland {
        padding: 2.5rem 0;
    }

    .feature-card h3 {
        font-size: 1.25rem;
    }

    .about-text h2 {
        font-size: 1.75rem;
    }

    .about-stats {
        flex-direction: column;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .filters {
        padding: 1.5rem;
    }

    /* Ensure filter inputs are touch-friendly */
    .filter-group select,
    .filter-group input {
        min-height: 44px;
        font-size: 16px;
    }

    .building-info {
        padding: 1rem;
    }

    /* Building card - ensure images scale properly */
    .building-image {
        max-height: 250px;
    }

    /* CTA buttons - ensure they're touch-friendly */
    .cta-button,
    .secondary-button {
        min-height: 44px;
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    /* Modal improvements for phones */
    .modal {
        padding: 0.5rem;
    }

    .modal-content {
        max-width: 100%;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    /* Form inputs - prevent zoom on iOS */
    input,
    select,
    textarea {
        font-size: 16px;
    }
}

/* ====================================
   COLOR SCHEMES - Comprehensive Theming
   ==================================== */

/* Rustic Earth - Fresh pine to deep forest */
[data-color-scheme="rustic-earth"] {
    --primary-color: #3D7A40;
    --secondary-color: #2C5F2D;
    --accent-color: #5A9F5D;
    --header-bg: linear-gradient(135deg, #3D7A40 0%, #2C5F2D 100%);
    --footer-bg: #2C5F2D;
    --button-color: #3D7A40;
}

/* Modern Ranch - Warm barn red to deep burgundy */
[data-color-scheme="modern-ranch"] {
    --primary-color: #8B3236;
    --secondary-color: #7C2529;
    --accent-color: #A54245;
    --header-bg: linear-gradient(135deg, #8B3236 0%, #7C2529 100%);
    --footer-bg: #7C2529;
    --button-color: #8B3236;
}

/* Desert Timber - Warm sand to rich wood */
[data-color-scheme="desert-timber"] {
    --primary-color: #C19A6B;
    --secondary-color: #8B7355;
    --accent-color: #D4A76A;
    --header-bg: linear-gradient(135deg, #C19A6B 0%, #8B7355 100%);
    --footer-bg: #8B7355;
    --button-color: #C19A6B;
}

/* Slate Blue - Cool gray to deep slate */
[data-color-scheme="slate-blue"] {
    --primary-color: #4A5568;
    --secondary-color: #2D3748;
    --accent-color: #5A6C7D;
    --header-bg: linear-gradient(135deg, #4A5568 0%, #2D3748 100%);
    --footer-bg: #2D3748;
    --button-color: #4A5568;
}

/* Forest Sage - Soft sage to forest green */
[data-color-scheme="forest-sage"] {
    --primary-color: #6B8E6F;
    --secondary-color: #4A6B4E;
    --accent-color: #7FA283;
    --header-bg: linear-gradient(135deg, #6B8E6F 0%, #4A6B4E 100%);
    --footer-bg: #4A6B4E;
    --button-color: #6B8E6F;
}

/* Navy Steel - Steel blue to deep navy */
[data-color-scheme="navy-steel"] {
    --primary-color: #2C5282;
    --secondary-color: #1A365D;
    --accent-color: #3A6EA5;
    --header-bg: linear-gradient(135deg, #2C5282 0%, #1A365D 100%);
    --footer-bg: #1A365D;
    --button-color: #2C5282;
}

/* Autumn Oak - Burnt sienna to rich oak */
[data-color-scheme="autumn-oak"] {
    --primary-color: #A0522D;
    --secondary-color: #6B4423;
    --accent-color: #BC6C3C;
    --header-bg: linear-gradient(135deg, #A0522D 0%, #6B4423 100%);
    --footer-bg: #6B4423;
    --button-color: #A0522D;
}

/* Pewter Charcoal - Soft pewter to charcoal */
[data-color-scheme="pewter-charcoal"] {
    --primary-color: #6C757D;
    --secondary-color: #495057;
    --accent-color: #7D8896;
    --header-bg: linear-gradient(135deg, #6C757D 0%, #495057 100%);
    --footer-bg: #495057;
    --button-color: #6C757D;
}

/* Classic Blue - Professional royal blue */
[data-color-scheme="classic-blue"] {
    --primary-color: #1E40AF;
    --secondary-color: #1E3A8A;
    --accent-color: #3B82F6;
    --header-bg: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%);
    --footer-bg: #1E3A8A;
    --button-color: #1E40AF;
}

/* Crimson Red - Bold crimson to dark red */
[data-color-scheme="crimson-red"] {
    --primary-color: #B91C1C;
    --secondary-color: #7F1D1D;
    --accent-color: #DC2626;
    --header-bg: linear-gradient(135deg, #B91C1C 0%, #7F1D1D 100%);
    --footer-bg: #7F1D1D;
    --button-color: #B91C1C;
}

/* Olive Green - Natural olive to deep green */
[data-color-scheme="olive-green"] {
    --primary-color: #65A30D;
    --secondary-color: #4D7C0F;
    --accent-color: #84CC16;
    --header-bg: linear-gradient(135deg, #65A30D 0%, #4D7C0F 100%);
    --footer-bg: #4D7C0F;
    --button-color: #65A30D;
}

/* Royal Purple - Regal violet to deep purple */
[data-color-scheme="royal-purple"] {
    --primary-color: #7C3AED;
    --secondary-color: #5B21B6;
    --accent-color: #8B5CF6;
    --header-bg: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    --footer-bg: #5B21B6;
    --button-color: #7C3AED;
}

/* Sunset Orange - Warm orange to burnt sienna */
[data-color-scheme="sunset-orange"] {
    --primary-color: #EA580C;
    --secondary-color: #9A3412;
    --accent-color: #F97316;
    --header-bg: linear-gradient(135deg, #EA580C 0%, #9A3412 100%);
    --footer-bg: #9A3412;
    --button-color: #EA580C;
}

/* Lead Inquiry Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

/* ========================================
   Graceland-specific Header Layout
   Buttons in horizontal row at bottom
   ======================================== */
body[data-manufacturer="graceland"] header .header-content {
    flex-wrap: wrap;
    justify-content: center;
}

body[data-manufacturer="graceland"] header .header-left,
body[data-manufacturer="graceland"] header .header-center,
body[data-manufacturer="graceland"] header .header-right {
    flex: none;
}

body[data-manufacturer="graceland"] header .header-left {
    flex: 1;
    text-align: left;
}

body[data-manufacturer="graceland"] header .header-center {
    flex: 0 0 auto;
}

body[data-manufacturer="graceland"] header .header-right {
    flex: 1;
    text-align: right;
    display: none; /* Hide the original right section */
}

/* Create button row at bottom using ::after pseudo-element won't work,
   so we'll restructure via JavaScript - but for CSS-only approach,
   we position buttons absolutely at bottom */

body[data-manufacturer="graceland"] header {
    padding-bottom: 4rem; /* Make room for button row */
}

body[data-manufacturer="graceland"] .header-buttons-row {
    position: absolute;
    bottom: 0.75rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0; /* No gap - buttons touch */
    padding: 0 2rem;
    flex-wrap: nowrap;
}

body[data-manufacturer="graceland"] .header-buttons-row .dealer-blog-btn {
    margin-top: 0;
    display: inline-flex !important;
    align-items: center;
    border-radius: 0; /* Square corners */
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

/* Button colors based on header background - default (other colors) */
body[data-manufacturer="graceland"] .header-buttons-row .dealer-blog-btn {
    background: white;
    color: black;
    border: 2px solid #bf050b;
    border-right: none;
}

body[data-manufacturer="graceland"] .header-buttons-row .dealer-blog-btn:last-child {
    border-right: 2px solid #bf050b;
}

body[data-manufacturer="graceland"] .header-buttons-row .dealer-blog-btn:hover {
    background: #f0f0f0;
    transform: none;
    box-shadow: none;
}

/* Black header background - red buttons with white text */
body[data-manufacturer="graceland"].header-bg-black .header-buttons-row .dealer-blog-btn {
    background: #bf050b;
    color: white;
    border: none;
    border-right: 1px solid rgba(255,255,255,0.2);
}

body[data-manufacturer="graceland"].header-bg-black .header-buttons-row .dealer-blog-btn:last-child {
    border-right: none;
}

body[data-manufacturer="graceland"].header-bg-black .header-buttons-row .dealer-blog-btn:hover {
    background: #a00408;
}

/* Red header background - black buttons with white text */
body[data-manufacturer="graceland"].header-bg-red .header-buttons-row .dealer-blog-btn {
    background: black;
    color: white;
    border: none;
    border-right: 1px solid rgba(255,255,255,0.2);
}

body[data-manufacturer="graceland"].header-bg-red .header-buttons-row .dealer-blog-btn:last-child {
    border-right: none;
}

body[data-manufacturer="graceland"].header-bg-red .header-buttons-row .dealer-blog-btn:hover {
    background: #222;
}

/* Responsive adjustments for Graceland header */
@media (max-width: 768px) {
    body[data-manufacturer="graceland"] header {
        padding-bottom: 6rem;
    }

    body[data-manufacturer="graceland"] .header-buttons-row {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    body[data-manufacturer="graceland"] .header-buttons-row .dealer-blog-btn {
        width: 80%;
        justify-content: center;
        border: 2px solid #bf050b;
        border-bottom: none;
    }

    body[data-manufacturer="graceland"] .header-buttons-row .dealer-blog-btn:last-child {
        border-bottom: 2px solid #bf050b;
        border-right: 2px solid #bf050b;
    }

    body[data-manufacturer="graceland"].header-bg-black .header-buttons-row .dealer-blog-btn,
    body[data-manufacturer="graceland"].header-bg-red .header-buttons-row .dealer-blog-btn {
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    body[data-manufacturer="graceland"].header-bg-black .header-buttons-row .dealer-blog-btn:last-child,
    body[data-manufacturer="graceland"].header-bg-red .header-buttons-row .dealer-blog-btn:last-child {
        border-bottom: none;
    }
}

/* ========================================
   Mobile Hamburger Menu Styles
   ======================================== */

/* Hamburger button - hidden by default on desktop */
.hamburger-menu {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: space-around;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animation when menu is open */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile slide-out menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    max-width: 80vw;
    height: 100vh;
    background: #1a1a2e;
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.mobile-menu-links {
    padding: 1rem 0;
}

.mobile-menu-links a {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
}

.mobile-menu-links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-links a:last-child {
    border-bottom: none;
}

/* Show hamburger and hide header buttons row on mobile */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    /* Mobile menu stays hidden until activated via JavaScript */
    .mobile-menu.active {
        display: block;
    }

    /* Hide the header buttons row on mobile - use hamburger menu instead */
    body[data-manufacturer="graceland"] .header-buttons-row {
        display: none !important;
    }

    /* Reset header padding since we're hiding the button row */
    body[data-manufacturer="graceland"] header {
        padding-bottom: 2.5rem;
    }

    /* Ensure header has relative positioning for hamburger */
    header {
        position: relative;
    }
}
