/* Noble Directory - Single Entry Page */
:root {
    --nd-primary: #24243a;
    --nd-accent: #f68637;
    --nd-accent-light: #fff4ec;
    --nd-text: #24243a;
    --nd-text-light: #666;
    --nd-border: #e5e5e5;
    --nd-white: #ffffff;
    --nd-radius: 12px;
    --nd-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.nd-single-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px 60px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Breadcrumb */
.nd-breadcrumb {
    font-size: 13px;
    color: var(--nd-text-light);
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.nd-breadcrumb a { color: var(--nd-accent); text-decoration: none; }
.nd-breadcrumb a:hover { text-decoration: underline; }

/* Hero */
.nd-single-hero {
    position: relative; border-radius: var(--nd-radius);
    overflow: hidden; margin-bottom: 32px;
    min-height: 360px; display: flex; align-items: flex-end;
}
.nd-hero-img-wrap {
    position: absolute; inset: 0;
}
.nd-hero-img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.nd-hero-placeholder {
    width: 100%; height: 100%; min-height: 360px;
    display: flex; align-items: center; justify-content: center;
    font-size: 100px;
    background: linear-gradient(135deg, #2e2e50, #24243a);
}
.nd-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(36,36,58,0.92) 0%, rgba(36,36,58,0.3) 60%, transparent 100%);
}
.nd-hero-content {
    position: relative; z-index: 2;
    padding: 40px 32px 32px;
    color: white; width: 100%;
}
.nd-single-badge {
    display: inline-block;
    background: var(--nd-accent); color: white;
    font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: 0.6px;
    margin-bottom: 12px;
}
.nd-single-title {
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 800; margin: 0 0 8px; color: white; line-height: 1.2;
}
.nd-single-subtitle {
    font-size: 16px; opacity: 0.85; margin: 0; color: white;
}

/* Body layout */
.nd-single-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

/* Main content */
.nd-single-main {}
.nd-single-main h2 {
    font-size: 20px; font-weight: 700;
    color: var(--nd-primary);
    border-left: 4px solid var(--nd-accent);
    padding-left: 12px; margin: 28px 0 14px;
}
.nd-single-main h2:first-child { margin-top: 0; }

/* Quote */
.nd-single-quote {
    position: relative;
    background: var(--nd-accent-light);
    border-left: 4px solid var(--nd-accent);
    border-radius: 0 var(--nd-radius) var(--nd-radius) 0;
    padding: 20px 24px 20px 48px;
    margin: 0 0 28px;
    font-size: 16px; font-style: italic;
    color: var(--nd-primary); line-height: 1.7;
}
.nd-quote-mark {
    position: absolute; left: 14px; top: 10px;
    font-size: 48px; color: var(--nd-accent); line-height: 1; opacity: 0.5;
}

.nd-single-content, .nd-detail-section {
    background: var(--nd-white);
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--nd-shadow);
    font-size: 15px; line-height: 1.8; color: #444;
}

/* Gallery */
.nd-gallery-section {
    background: var(--nd-white);
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius);
    padding: 24px; margin-bottom: 20px;
}
.nd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px; margin-top: 16px;
}
.nd-gallery-item img {
    width: 100%; height: 140px; object-fit: cover;
    border-radius: 8px; display: block;
    transition: transform 0.2s;
}
.nd-gallery-item:hover img { transform: scale(1.03); }

/* Video */
.nd-video-section {
    background: var(--nd-white); border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius); padding: 24px; margin-bottom: 20px;
}
.nd-video-wrap {
    position: relative; padding-bottom: 56.25%;
    height: 0; overflow: hidden; border-radius: 8px; margin-top: 16px;
}
.nd-video-wrap iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

/* Map */
.nd-map-section {
    background: var(--nd-white); border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius); padding: 24px; margin-bottom: 20px;
}
.nd-map-btn {
    display: inline-block; margin-top: 12px;
    background: var(--nd-primary); color: white;
    padding: 10px 20px; border-radius: 8px;
    text-decoration: none; font-size: 14px; font-weight: 600;
    transition: background 0.2s;
}
.nd-map-btn:hover { background: var(--nd-accent); color: white; }

/* Sidebar */
.nd-single-sidebar { position: sticky; top: 100px; }

.nd-info-card {
    background: var(--nd-white);
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius);
    box-shadow: var(--nd-shadow);
    overflow: hidden; margin-bottom: 16px;
}
.nd-info-title {
    background: var(--nd-primary); color: white;
    font-size: 14px; font-weight: 700;
    padding: 14px 18px; margin: 0;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.nd-info-row {
    display: flex; gap: 8px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--nd-border);
    font-size: 14px;
}
.nd-info-row:last-child { border-bottom: none; }
.nd-info-label {
    color: var(--nd-text-light); min-width: 110px; flex-shrink: 0;
}
.nd-info-value { color: var(--nd-text); font-weight: 500; }

.nd-ref-btn, .nd-back-btn {
    display: block; text-align: center;
    padding: 12px; border-radius: 8px;
    font-size: 14px; font-weight: 600;
    text-decoration: none; margin-bottom: 12px;
    transition: all 0.2s;
}
.nd-ref-btn {
    background: var(--nd-accent); color: white;
}
.nd-ref-btn:hover { background: #e0762a; color: white; }
.nd-back-btn {
    background: transparent; border: 1px solid var(--nd-border);
    color: var(--nd-text-light);
}
.nd-back-btn:hover { border-color: var(--nd-primary); color: var(--nd-primary); }

/* Responsive */
@media (max-width: 768px) {
    .nd-single-body { grid-template-columns: 1fr; }
    .nd-single-sidebar { position: static; }
    .nd-hero-content { padding: 24px 20px 20px; }
}
