/* San Carlos Guest Portal - Shared Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: #212121;
    line-height: 1.6;
    background: #fcfcfc;
    padding-bottom: 70px;
}

/* Header */
.portal-header {
    background: #1863DC;
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.property-logo {
    font-size: 1.5rem;
}

.property-name {
    font-size: 1.1rem;
    font-weight: 400;
}

.header-icons {
    display: flex;
    gap: 1rem;
    font-size: 1.3rem;
}

.header-icons a {
    color: white;
    cursor: pointer;
    transition: opacity 0.2s;
}

.header-icons a:hover {
    opacity: 0.8;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.language-switcher:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-switcher .flag {
    font-size: 1.1rem;
}

/* Main View - Card Grid */
.main-view {
    display: block;
}

.main-view.hidden {
    display: none;
}

.cards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.info-card {
    background: white;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.info-card:hover {
    box-shadow: 0 4px 12px rgba(24, 99, 220, 0.15);
    transform: translateY(-2px);
    border-color: #1863DC;
}

.info-card i {
    font-size: 3rem;
    color: #3B8CCB;
    margin-bottom: 1rem;
    display: block;
}

.info-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #212121;
}

/* Detail View */
.detail-view {
    display: none;
    background: white;
    min-height: calc(100vh - 140px);
}

.detail-view.active {
    display: block;
}

.detail-header {
    background: #f4f4f4;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #ebebeb;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-button {
    background: none;
    border: none;
    color: #1863DC;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.detail-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: #212121;
}

.detail-content {
    padding: 2rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h3 {
    color: #1863DC;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.detail-section p {
    color: #212121;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.detail-section ul {
    list-style: none;
    padding: 0;
}

.detail-section li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #ebebeb;
    display: flex;
    align-items: baseline;
}

.detail-section li:last-child {
    border-bottom: none;
}

.detail-section strong {
    color: #1863DC;
    font-weight: 500;
    /* min-width is page-specific (140px for EN, 160px for ES) */
}

.note-box {
    background: #e8f2ff;
    border-left: 4px solid #1863DC;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.note-box i {
    color: #1863DC;
    margin-right: 0.5rem;
}

/* Collapsible sections */
details.collapsible-section {
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

details.collapsible-section summary {
    background: #f9fafb;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1863DC;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

details.collapsible-section summary:hover {
    background: #f3f4f6;
}

details.collapsible-section summary::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

details.collapsible-section[open] summary::after {
    transform: rotate(180deg);
}

details.collapsible-section .collapsible-content {
    padding: 1.5rem;
    background: white;
}

details.collapsible-section summary::-webkit-details-marker {
    display: none;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 100;
    border-top: 1px solid #ebebeb;
}

.nav-item {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    color: #666;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    font-family: inherit;
}

.nav-item i {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.nav-item span {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item.active {
    color: #1863DC;
}

/* Explore Area Recommendation Cards */
.recommendation-card {
    background: #f8f9fa;
    border-left: 4px solid #1863DC;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.recommendation-card h4 {
    color: #1863DC;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.recommendation-card p {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.recommendation-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.recommendation-list li {
    padding: 0.5rem 0;
    border-bottom: none;
    color: #212121;
    display: flex;
    align-items: center;
}

.recommendation-list li:before {
    content: "✓";
    color: #3B8CCB;
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.full-guide-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #1863DC;
    border: 2px solid #1863DC;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.full-guide-button:hover {
    background: #1863DC;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 99, 220, 0.3);
}

.full-guide-button i {
    margin-left: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-card {
        padding: 2rem 1rem;
    }

    .info-card i {
        font-size: 2.5rem;
    }

    .info-card h3 {
        font-size: 1rem;
    }

    .header-icons {
        gap: 0.75rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .property-name {
        font-size: 0.95rem;
    }
}
